SFP-AdobeForm-使用詳解_第1頁(yè)
SFP-AdobeForm-使用詳解_第2頁(yè)
SFP-AdobeForm-使用詳解_第3頁(yè)
SFP-AdobeForm-使用詳解_第4頁(yè)
SFP-AdobeForm-使用詳解_第5頁(yè)
已閱讀5頁(yè),還剩17頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、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 Code SE11 and give the Tab

2、le 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 the Adobe FormGo to Transact

3、ion 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 indicated below.Then as new row

4、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 created as indicated below

5、.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 Layout Tab and the Below Sc

6、reen 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 below.Then Activate the A

7、dobe 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 Program*&-DATA: fm_name TYP

8、E 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_mari TYPE zmari_tbl. Table T

9、ype 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.* ENDIF.*&- Get the name of th

10、e 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 15 ROWS.* Language and cou

11、ntry 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 = 2internal_error = 3.IF sy-subrc 0.* ENDIF.*&- Close the spool jobCALL FUNCTION FP_JOB_CLOSE* IMPORTING* E_RESULT =EXCEPTIONSusage_error = 1system_error = 2

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論