webdynpro Smartform To Pfd Converting

  • 1,899 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,899
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
114
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Webdynpro 에서 smartform 을 pdf 파일로 변환하기 Skill cut [email_address] Copyright © 2006 by BNE Solution Consulting INC. ALL RIGHTS RESERVED. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means - electronic, mechanical, photocopying, recording, or otherwise- without the permission of BNE Solution Consulting. This document provides an outline of a presentation and is incomplete without the accompanying oral commentary and discussion.
  • 2. Agenda
    • UI element and property 설정
    • 구현 code
    • 결과화면
    Index
  • 3. Document Control 산출물명 Phase 명 Task 명 Stage Task Module 검토일자 승인자 승인일자 검토자
    • 최초작성
    정세훈 Ver1.0 1 변경사유 작성자 작성일자 버전 순번
  • 4. I. UI element and property 설정
  • 5. I. UI element and property 설정 Procedure 1. UI element 를 그린다 . 참고사항 Related Link 목적
    • interactiveform 을 그리고 porperty 설정한다 .
    메뉴
  • 6. I. UI element and property 설정 Procedure 1. Context 를 정의한다 . Node 는 cardinality 1..1 Attibute 의 type 은 xstring 으로 설정한다 . 참고사항 Related Link 목적
    • interactiveform 을 그리고 porperty 설정한다 .
    메뉴
  • 7. I. UI element and property 설정 Procedure Context 를 binding 한다 . Datasource 에는 node 를 Pdfsource 에는 attibutes 를 binding 한다 . 참고사항 Related Link 목적
    • interactiveform 을 그리고 porperty 설정한다 .
    메뉴
  • 8. II. 구현 code
  • 9. II. 구현 code Procedure Wddoinit() 에 code 를 삽입한다 . Data 를 선언하고 smartform 을 읽어온다 . 참고사항 Related Link 목적
    • 해당 기능을 구현한다 .
    "data 선언 DATA: fm_name TYPE rs38l_fnam. DATA: control_parameters TYPE ssfctrlop. DATA: output_options TYPE ssfcompop. DATA: job_output_info TYPE ssfcrescl. DATA: otf_tab TYPE TABLE OF itcoo. DATA: pdf_fsize TYPE i. DATA: pdf_table TYPE rcl_bag_tline. DATA : datasource TYPE xstring. "smart form 을 호출한다 . CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = 'ZDMFORM003' IMPORTING fm_name = fm_name EXCEPTIONS no_form = 1 no_function_module = 2 OTHERS = 3. 메뉴
  • 10. II. 구현 code Procedure Smartform 파리미터를 채워서 Smartform 을 실행한다 . 참고사항 Related Link 목적
    • 해당 기능을 구현한다 .
    "smart form 에 넘길 데이터 가공 APPEND if_st TO if_tab. "smartforms 옵션 세팅 control_parameters-no_dialog = 'X'. control_parameters-langu = '3'. control_parameters-getotf = 'X'. output_options-tdnoprev = 'X'. CLEAR job_output_info. CALL FUNCTION fm_name EXPORTING control_parameters = control_parameters output_options = output_options IMPORTING job_output_info = job_output_info TABLES if_tab = if_tab EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. 메뉴
  • 11. II. 구현 code Procedure Smartform 을 pdf 로 변환한다 . 참고사항 Related Link 목적
    • 해당 기능을 구현한다 .
    otf_tab[] = job_output_info-otfdata[]. "pdf 로 변환 CALL FUNCTION 'CONVERT_OTF' EXPORTING format = 'PDF' IMPORTING bin_filesize = pdf_fsize bin_file = datasource TABLES otf = otf_tab lines = pdf_table EXCEPTIONS err_max_linewidth = 1 err_format = 2 err_conv_not_possible = 3 OTHERS = 4. 메뉴
  • 12. II. 구현 code Procedure 변환한 데이터를 binding 한다 . 참고사항 Related Link 목적
    • 해당 기능을 구현한다 .
    "data binding. DATA: node_data_source TYPE REF TO if_wd_context_node, elem_data_source TYPE REF TO if_wd_context_element, stru_data_source TYPE if_safe_edu_print=>element_data_source . node_data_source = wd_context->get_child_node ( name = if_safe_edu_print=>wdctx_data_source ). elem_data_source = node_data_source->get_element( ). stru_data_source-safe = datasource. elem_data_source->set_static_attributes( EXPORTING static_attributes = stru_data_source ). 메뉴
  • 13. III. 결과화면
  • 14. III. 결과화면 Procedure 참고사항 Related Link 목적
    • 결과 화면
    메뉴