SAP Function Modules

EWF_DB_CONFIG_INSERT SAP Function module







EWF_DB_CONFIG_INSERT 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 EWF_DB_CONFIG_INSERT into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM EWF_DB_CONFIG_INSERT - EWF DB CONFIG INSERT





CALL FUNCTION 'EWF_DB_CONFIG_INSERT' "
* EXPORTING
*   x_ewfcon =                  " ewfcon
* TABLES
*   xt_ewfcont =                " ewfcont
*   xt_ewfpar =                 " ewfpar
*   xt_ewfpart =                " ewfpart
*   xt_ewfgru =                 " ewfgru
*   xt_ewfgrut =                " ewfgrut
*   xt_ewfcal =                 " ewfcal
*   xt_ewfcalt =                " ewfcalt
*   xt_ewftra =                 " ewftra
*   xt_ccmactionobj =           " ccmactionobj
    .  "  EWF_DB_CONFIG_INSERT

ABAP code example for Function Module EWF_DB_CONFIG_INSERT





The ABAP code below is a full code listing to execute function module EWF_DB_CONFIG_INSERT 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:
it_xt_ewfcont  TYPE STANDARD TABLE OF EWFCONT,"TABLES PARAM
wa_xt_ewfcont  LIKE LINE OF it_xt_ewfcont ,
it_xt_ewfpar  TYPE STANDARD TABLE OF EWFPAR,"TABLES PARAM
wa_xt_ewfpar  LIKE LINE OF it_xt_ewfpar ,
it_xt_ewfpart  TYPE STANDARD TABLE OF EWFPART,"TABLES PARAM
wa_xt_ewfpart  LIKE LINE OF it_xt_ewfpart ,
it_xt_ewfgru  TYPE STANDARD TABLE OF EWFGRU,"TABLES PARAM
wa_xt_ewfgru  LIKE LINE OF it_xt_ewfgru ,
it_xt_ewfgrut  TYPE STANDARD TABLE OF EWFGRUT,"TABLES PARAM
wa_xt_ewfgrut  LIKE LINE OF it_xt_ewfgrut ,
it_xt_ewfcal  TYPE STANDARD TABLE OF EWFCAL,"TABLES PARAM
wa_xt_ewfcal  LIKE LINE OF it_xt_ewfcal ,
it_xt_ewfcalt  TYPE STANDARD TABLE OF EWFCALT,"TABLES PARAM
wa_xt_ewfcalt  LIKE LINE OF it_xt_ewfcalt ,
it_xt_ewftra  TYPE STANDARD TABLE OF EWFTRA,"TABLES PARAM
wa_xt_ewftra  LIKE LINE OF it_xt_ewftra ,
it_xt_ccmactionobj  TYPE STANDARD TABLE OF CCMACTIONOBJ,"TABLES PARAM
wa_xt_ccmactionobj  LIKE LINE OF it_xt_ccmactionobj .

DATA(ld_x_ewfcon) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_ewfcont to it_xt_ewfcont.

"populate fields of struture and append to itab
append wa_xt_ewfpar to it_xt_ewfpar.

"populate fields of struture and append to itab
append wa_xt_ewfpart to it_xt_ewfpart.

"populate fields of struture and append to itab
append wa_xt_ewfgru to it_xt_ewfgru.

"populate fields of struture and append to itab
append wa_xt_ewfgrut to it_xt_ewfgrut.

"populate fields of struture and append to itab
append wa_xt_ewfcal to it_xt_ewfcal.

"populate fields of struture and append to itab
append wa_xt_ewfcalt to it_xt_ewfcalt.

"populate fields of struture and append to itab
append wa_xt_ewftra to it_xt_ewftra.

"populate fields of struture and append to itab
append wa_xt_ccmactionobj to it_xt_ccmactionobj. . CALL FUNCTION 'EWF_DB_CONFIG_INSERT' * EXPORTING * x_ewfcon = ld_x_ewfcon * TABLES * xt_ewfcont = it_xt_ewfcont * xt_ewfpar = it_xt_ewfpar * xt_ewfpart = it_xt_ewfpart * xt_ewfgru = it_xt_ewfgru * xt_ewfgrut = it_xt_ewfgrut * xt_ewfcal = it_xt_ewfcal * xt_ewfcalt = it_xt_ewfcalt * xt_ewftra = it_xt_ewftra * xt_ccmactionobj = it_xt_ccmactionobj . " EWF_DB_CONFIG_INSERT
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_x_ewfcon  TYPE EWFCON ,
it_xt_ewfcont  TYPE STANDARD TABLE OF EWFCONT ,
wa_xt_ewfcont  LIKE LINE OF it_xt_ewfcont,
it_xt_ewfpar  TYPE STANDARD TABLE OF EWFPAR ,
wa_xt_ewfpar  LIKE LINE OF it_xt_ewfpar,
it_xt_ewfpart  TYPE STANDARD TABLE OF EWFPART ,
wa_xt_ewfpart  LIKE LINE OF it_xt_ewfpart,
it_xt_ewfgru  TYPE STANDARD TABLE OF EWFGRU ,
wa_xt_ewfgru  LIKE LINE OF it_xt_ewfgru,
it_xt_ewfgrut  TYPE STANDARD TABLE OF EWFGRUT ,
wa_xt_ewfgrut  LIKE LINE OF it_xt_ewfgrut,
it_xt_ewfcal  TYPE STANDARD TABLE OF EWFCAL ,
wa_xt_ewfcal  LIKE LINE OF it_xt_ewfcal,
it_xt_ewfcalt  TYPE STANDARD TABLE OF EWFCALT ,
wa_xt_ewfcalt  LIKE LINE OF it_xt_ewfcalt,
it_xt_ewftra  TYPE STANDARD TABLE OF EWFTRA ,
wa_xt_ewftra  LIKE LINE OF it_xt_ewftra,
it_xt_ccmactionobj  TYPE STANDARD TABLE OF CCMACTIONOBJ ,
wa_xt_ccmactionobj  LIKE LINE OF it_xt_ccmactionobj.

ld_x_ewfcon = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_ewfcont to it_xt_ewfcont.

"populate fields of struture and append to itab
append wa_xt_ewfpar to it_xt_ewfpar.

"populate fields of struture and append to itab
append wa_xt_ewfpart to it_xt_ewfpart.

"populate fields of struture and append to itab
append wa_xt_ewfgru to it_xt_ewfgru.

"populate fields of struture and append to itab
append wa_xt_ewfgrut to it_xt_ewfgrut.

"populate fields of struture and append to itab
append wa_xt_ewfcal to it_xt_ewfcal.

"populate fields of struture and append to itab
append wa_xt_ewfcalt to it_xt_ewfcalt.

"populate fields of struture and append to itab
append wa_xt_ewftra to it_xt_ewftra.

"populate fields of struture and append to itab
append wa_xt_ccmactionobj to it_xt_ccmactionobj.

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 EWF_DB_CONFIG_INSERT or its description.