Variant 6
CALL CUSTOMER-FUNCTION func.
Effect
Calls the function module func . func must be a 3-character literal (e.g. '001')
In line with SAP's enhancement concept, function modules are delivered empty and must be implemented by the customer (the transactions used for this are SMOD at SAP and CMOD at the customer's).
The interface and call location are both defined by SAP.
The interface and call location are both defined by SAP.
The customer can use Transaction CMOD to activate the function module. The final name of the function module is compiled from EXIT_ , the name of the module pool where the function module is called, and the name func . For example, the statement " CALL CUSTOMER-FUNCTION '001' " in the module pool SAPMS38M calls the function module EXIT_SAPMS38M_001.
CALL DIALOG - Call a dialog module:
&ABAP_BASIC_FORM4& CALL DIALOG dial.
Additions
1. ... AND SKIP FIRST SCREEN
2. ... EXPORTING f1 FROM g1 ... fn FROM gn
3. ... IMPORTING f1 TO g1 ... fn TO gn
4. ... USING itab ... MODE mode .
Effect
Calls the dialog module dial ; dial can be a literal or a variable.
To edit dialog modules, select Tools -> ABAP/4 Workbench -> Development -> Programming environ. -> Dialog modules .
To edit dialog modules, select Tools -> ABAP/4 Workbench -> Development -> Programming environ. -> Dialog modules .
Addition 1
... AND SKIP FIRST SCREEN
Effect
Processes the first screen of the dialog module in the background, if all required entry fields have been filled.
Addition 2
... EXPORTING f1 FROM g1 ... fn FROM gn
Effect
Specifies all data objects (fields, field strings, internal tables) to be passed to the dialog module. If the names in the calling and called programs are identical, you can omit " FROM g1 ". Otherwise, fi refers to the field in the dialog module, while gi specifies the field in the calling program.
Addition 3
... IMPORTING f1 TO g1 ... fn TO gn
Effect
Specifies all data objects (fields, field strings, internal tables) to be returned from the dialog module. If the names in the calling and called programs are identical, you can omit " TO g1 ". Otherwise, fi refers to the field in the dialog module, while gi specifies the field in the calling program.
Examples
DATA: BEGIN OF ITAB,
LINE(72),
END OF ITAB,
TITLE LIKE SY-TITLE.
CALL DIALOG 'RS_EDIT_TABLE'
EXPORTING SOURCETAB FROM ITAB
TITLE
IMPORTING SOURCETAB TO ITAB.
Notes
- The system field SY-SUBRC is automatically exported and imported.
- The unknown export/import data in the dialog module is ignored.
- The data objects passed should have the same type or structure in the calling program and the dialog module.
RELATED POST
sap internet transaction server introduction
sap internet transaction architecture
SAP internet transaction application components
sap internet transaction architecture
SAP internet transaction application components
No comments :
Post a Comment