SFPAdobe使用详解

上传人:012****78 文档编号:141913122 上传时间:2020-08-14 格式:DOCX 页数:24 大小:1.43MB
返回 下载 相关 举报
SFPAdobe使用详解_第1页
第1页 / 共24页
SFPAdobe使用详解_第2页
第2页 / 共24页
SFPAdobe使用详解_第3页
第3页 / 共24页
SFPAdobe使用详解_第4页
第4页 / 共24页
SFPAdobe使用详解_第5页
第5页 / 共24页
点击查看更多>>
资源描述

《SFPAdobe使用详解》由会员分享,可在线阅读,更多相关《SFPAdobe使用详解(24页珍藏版)》请在金锄头文库上搜索。

1、SFP-AdobeForm-使用详解 作者: 日期:Steps to Create and Call the adobe form1)Create a Table Type for a Table2) Create the Interface for the Adobe Form3)Create the Adobe Form and design the layout4)Write a Program to Call the Adobe FormStep by Step Approach1)Create aTable Type for a TableGo to the Transaction

2、Code SE11 and give the Table Type name as ZMARI_TBLThen click Create and a popup will appear as shown below.Select the radio button Table Type and press enterEnter the Table Name MARI in the line type.Then save it as Local Object and activate it.Activate the Table Type.2) Create the Interface for th

3、e Adobe FormGo to Transaction code SFP and create the Interface for the ADOBE FORMEnter the Interface Name as ZSUR_ADOBE_INTR and click CreateGive the Description and click save.Give Description and press enterSave as Local ObjectThen the below screen will appear.Then Click Append Row icon as indica

4、ted below.Then as new row will inserted and assign the Table Type ZMARI_TBL value as shown below.Then activate it.Then go back and Give the Adobe Form name click Create.3) Create Adobe Form and design the layout in the Same Transaction Code SFPGive the Description and the Interface name, which just

5、created as indicated below.Then Save as Local Object.Then the below Screen will appear.Expand the import button and you can find the Table Parameter ZMARI.Then Drag and drop it to the Context as shown below.After Drag and Drop the Table type to Context, then below screen will appear.Then Click the L

6、ayout Tab and the Below Screen will appear.Drag and Drop the table type ZMARI to Design View Layout as indicated below.Then adjust the Table in the Top center of the layout as shown below.Select the Text from the Library and drop it the Layout Design View and give a description to the Table as shown

7、 below.Then Activate the Adobe form.4)4) Write a Program to Call the Adobe FormGo to Transaction code SE38 and Create a Test Program ZCALL_ADOBE_FORM.Save it as local Object.Then enter the Below Code.REPORT zcall_adobe_form.&-&*& Author : P Surjith Kumar*& Purpose : Call the Adobe form in the ABAP P

8、rogram*&-DATA: fm_name TYPE rs38l_fnam, CHAR 30 0 Name of Function Modulefp_docparams TYPE sfpdocparams, Structure SFPDOCPARAMS Short Description Form Parameters for Form Processingfp_outputparams TYPE sfpoutputparams, Structure SFPOUTPUTPARAMS Short Description Form Processing Output Parameterit_ma

9、ri TYPE zmari_tbl. Table Type ZMARI_TBL MARI Table Tyoe* Sets the output parameters and opens the spool jobCALL FUNCTION FP_JOB_OPEN & Form Processing: Call FormCHANGINGie_outputparams = fp_outputparamsEXCEPTIONScancel = 1usage_error = 2system_error = 3internal_error = 4OTHERS = 5.IF sy-subrc 0.* EN

10、DIF.*&- Get the name of the generated function moduleCALL FUNCTION FP_FUNCTION_MODULE_NAME & Form Processing GenerationEXPORTINGi_name = ZSUR_ADOBE_FORMIMPORTINGe_funcname = fm_name.IF sy-subrc 0.* ENDIF.*- Fetch the Data and store it in the Internal TableSELECT * FROM mari INTO TABLE it_mari UP TO

11、15 ROWS.* Language and country setting (here US as an example)fp_docparams-langu = E.fp_docparams-country = US.*&- Call the generated function moduleCALL FUNCTION fm_nameEXPORTING/1bcdwb/docparams = fp_docparamszmari = it_mari* IMPORTING* /1BCDWB/FORMOUTPUT =EXCEPTIONSusage_error = 1system_error = 2

12、internal_error = 3.IF sy-subrc 0.* ENDIF.*&- Close the spool jobCALL FUNCTION FP_JOB_CLOSE* IMPORTING* E_RESULT =EXCEPTIONSusage_error = 1system_error = 2internal_error = 3OTHERS = 4.IF sy-subrc 0.* ENDIF.Then activate and Execute (F8) it.Then the printer screen will appear.Click the Print PreviewThen the Output will shown as below.

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号