zbc480 99 unit2 demo1 intf p26
DESCRIPTION
SAP Adobe Forms course demoTRANSCRIPT
ZBC480_99_UNIT2_DEMO1_INTF p26
Set up configuration and favorites
Create an interface: TXN SE80 or SFPInterface: ZBC480_99_D1_INTF
Add Description: DemoPress Save
Save to your Package and Press Save
Save to your requestSelect the task next to your user id in the drop downPress the green check mark
1
ZBC480_99_UNIT2_DEMO1_INTF p26
Determine the type of the interfaceGo to the Properties tabSelect the ABAP Dictionary-Based Interface option
Choose the interface tab Double click on Import
Create Import parameters that will be passed from the application program to the Form at runtime.
On the Right side, Choose the white sheet of paper icon to append a new row.
Create the following Import parameters:structureinternal tableoptional parameter with company logo on a URLinvoice sending country variable
Opt PassParameter Name TYPE Type Name Flag Value DefaultIS_FLIGHT TYPE SPFLIIT_CONNECTIONS TYPE TY_CONNECTIONSIV_IMAGE_URL TYPE STRING X XIV_SENDING_COUNTRY TYPE ADRC-COUNTRY ‘US’
Press Save
Export parameters only added to interfaces that are compatible with Smart Forms. They are passed from the Form to the application program.
2
ZBC480_99_UNIT2_DEMO1_INTF p26
Double click on Global DataCreate Global data that cannot be accessed from outside of the interface.
Choose the white sheet of paper icon to append a new row.
Create the following Global Data:global constantglobal address variable using a defined text line
Variable Name Type Type Name Default Const
GC_COMPANY TYPE TEXT20 ‘Dupont’ XGT_ADDRESS TYPE TLINE_TAB
Press Save
Create the Initializing Code – This is the area where the data can be changed before entering the Form
Double click on Code Initialization
Create the following Input parameters: (Read Access)IS_FLIGHTIV_SENDING_COUNTRY
Create the following Output parameters: (Write Access)IV_IMAGE_URLGT_ADDRESS
Result
3
ZBC480_99_UNIT2_DEMO1_INTF p26
Add the following code
* set the image url if not provided by the ABAP app pgmIF iv_image_url IS INITIAL. iv_image_url = 'http://wts.wdf.sap.corp:1080/portal/Image/sap_logo.gif'.ENDIF.
* formated customer addressCALL FUNCTION 'CUSTOMER_ADDRESS_TO_ITF' EXPORTING is_customer = is_flight iv_sending_country = iv_sending_country IMPORTING et_address = gt_address.
Press Pretty PrinterPress the Syntax Error buttonPress SaveActivate the Interface
Check the interface for correctness
Using TXNs: SE80, SE38 or SA38Execute report: SAPBC480_CHECK
4
ZBC480_99_UNIT2_DEMO1_INTF p26
Enter Interface: ZBC480_99_D1_INTF
Result, the red Icons are ok, this is just a demoThis program is only part of the training environment
5