SAP Function Modules

EFG_FORM_CC_EXIT_BEFORE SAP Function module







EFG_FORM_CC_EXIT_BEFORE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name EFG_FORM_CC_EXIT_BEFORE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: EFG_FORM_TR_AND_CC
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EFG_FORM_CC_EXIT_BEFORE - EFG FORM CC EXIT BEFORE





CALL FUNCTION 'EFG_FORM_CC_EXIT_BEFORE' "
* EXPORTING
*   rfcdest =                   " rfcdest       Logical Destination (Specified in Function Call)
*   cc_sourceclient =           " symandt       R/3 System, Client Number from Logon
*   test =                      " flag          General Flag
*   clii =                      " cccliindep    Cross-Client Tables
*   appl =                      " ccappldata    Select application data also ('X')
*   modus =                     " ccmodus       Mode for client transport
*   runs_in_source =            " flag          General Flag
*   gt_e071 =                   " tr_objects    Objects
*   gt_e071k =                  " tr_keys       Table Keys
  IMPORTING
    rcod =                      " sysubrc       Return Value, Return Value After ABAP Statements
    e_trkorr =                  " trkorr        Order/Task
* TABLES
*   gen_tab =                   " e071          Change & Transport System: Object Entries of Requests/Tasks
*   e071_tab =                  " e071          Change & Transport System: Object Entries of Requests/Tasks
*   e071k_tab =                 " e071k         Change & Transport System: Key Entries of Requests/Tasks
    .  "  EFG_FORM_CC_EXIT_BEFORE

ABAP code example for Function Module EFG_FORM_CC_EXIT_BEFORE





The ABAP code below is a full code listing to execute function module EFG_FORM_CC_EXIT_BEFORE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_rcod  TYPE SYSUBRC ,
ld_e_trkorr  TYPE TRKORR ,
it_gen_tab  TYPE STANDARD TABLE OF E071,"TABLES PARAM
wa_gen_tab  LIKE LINE OF it_gen_tab ,
it_e071_tab  TYPE STANDARD TABLE OF E071,"TABLES PARAM
wa_e071_tab  LIKE LINE OF it_e071_tab ,
it_e071k_tab  TYPE STANDARD TABLE OF E071K,"TABLES PARAM
wa_e071k_tab  LIKE LINE OF it_e071k_tab .

DATA(ld_rfcdest) = 'Check type of data required'.
DATA(ld_cc_sourceclient) = 'Check type of data required'.
DATA(ld_test) = 'Check type of data required'.
DATA(ld_clii) = 'Check type of data required'.
DATA(ld_appl) = 'Check type of data required'.
DATA(ld_modus) = 'Check type of data required'.
DATA(ld_runs_in_source) = 'Check type of data required'.
DATA(ld_gt_e071) = 'Check type of data required'.
DATA(ld_gt_e071k) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_gen_tab to it_gen_tab.

"populate fields of struture and append to itab
append wa_e071_tab to it_e071_tab.

"populate fields of struture and append to itab
append wa_e071k_tab to it_e071k_tab. . CALL FUNCTION 'EFG_FORM_CC_EXIT_BEFORE' * EXPORTING * rfcdest = ld_rfcdest * cc_sourceclient = ld_cc_sourceclient * test = ld_test * clii = ld_clii * appl = ld_appl * modus = ld_modus * runs_in_source = ld_runs_in_source * gt_e071 = ld_gt_e071 * gt_e071k = ld_gt_e071k IMPORTING rcod = ld_rcod e_trkorr = ld_e_trkorr * TABLES * gen_tab = it_gen_tab * e071_tab = it_e071_tab * e071k_tab = it_e071k_tab . " EFG_FORM_CC_EXIT_BEFORE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_rcod  TYPE SYSUBRC ,
ld_rfcdest  TYPE RFCDEST ,
it_gen_tab  TYPE STANDARD TABLE OF E071 ,
wa_gen_tab  LIKE LINE OF it_gen_tab,
ld_e_trkorr  TYPE TRKORR ,
ld_cc_sourceclient  TYPE SYMANDT ,
it_e071_tab  TYPE STANDARD TABLE OF E071 ,
wa_e071_tab  LIKE LINE OF it_e071_tab,
ld_test  TYPE FLAG ,
it_e071k_tab  TYPE STANDARD TABLE OF E071K ,
wa_e071k_tab  LIKE LINE OF it_e071k_tab,
ld_clii  TYPE CCCLIINDEP ,
ld_appl  TYPE CCAPPLDATA ,
ld_modus  TYPE CCMODUS ,
ld_runs_in_source  TYPE FLAG ,
ld_gt_e071  TYPE TR_OBJECTS ,
ld_gt_e071k  TYPE TR_KEYS .

ld_rfcdest = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_gen_tab to it_gen_tab.
ld_cc_sourceclient = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e071_tab to it_e071_tab.
ld_test = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e071k_tab to it_e071k_tab.
ld_clii = 'Check type of data required'.
ld_appl = 'Check type of data required'.
ld_modus = 'Check type of data required'.
ld_runs_in_source = 'Check type of data required'.
ld_gt_e071 = 'Check type of data required'.
ld_gt_e071k = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name EFG_FORM_CC_EXIT_BEFORE or its description.