SAP Function Modules

CIF_SERMSL_CREATE SAP Function module







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

Associated Function Group: CMSL
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM CIF_SERMSL_CREATE - CIF SERMSL CREATE





CALL FUNCTION 'CIF_SERMSL_CREATE' "
* TABLES
*   it_marc_key =               " cif_immslk
*   it_cif_salfig =             " cif_salfig
*   ot_cif_sermsl =             " cif_sermsl
*   ot_cif_sermsx =             " cif_sermsx
*   ot_bapiret2 =               " bapiret2
    .  "  CIF_SERMSL_CREATE

ABAP code example for Function Module CIF_SERMSL_CREATE





The ABAP code below is a full code listing to execute function module CIF_SERMSL_CREATE 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_it_marc_key  TYPE STANDARD TABLE OF CIF_IMMSLK,"TABLES PARAM
wa_it_marc_key  LIKE LINE OF it_it_marc_key ,
it_it_cif_salfig  TYPE STANDARD TABLE OF CIF_SALFIG,"TABLES PARAM
wa_it_cif_salfig  LIKE LINE OF it_it_cif_salfig ,
it_ot_cif_sermsl  TYPE STANDARD TABLE OF CIF_SERMSL,"TABLES PARAM
wa_ot_cif_sermsl  LIKE LINE OF it_ot_cif_sermsl ,
it_ot_cif_sermsx  TYPE STANDARD TABLE OF CIF_SERMSX,"TABLES PARAM
wa_ot_cif_sermsx  LIKE LINE OF it_ot_cif_sermsx ,
it_ot_bapiret2  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_ot_bapiret2  LIKE LINE OF it_ot_bapiret2 .


"populate fields of struture and append to itab
append wa_it_marc_key to it_it_marc_key.

"populate fields of struture and append to itab
append wa_it_cif_salfig to it_it_cif_salfig.

"populate fields of struture and append to itab
append wa_ot_cif_sermsl to it_ot_cif_sermsl.

"populate fields of struture and append to itab
append wa_ot_cif_sermsx to it_ot_cif_sermsx.

"populate fields of struture and append to itab
append wa_ot_bapiret2 to it_ot_bapiret2. . CALL FUNCTION 'CIF_SERMSL_CREATE' * TABLES * it_marc_key = it_it_marc_key * it_cif_salfig = it_it_cif_salfig * ot_cif_sermsl = it_ot_cif_sermsl * ot_cif_sermsx = it_ot_cif_sermsx * ot_bapiret2 = it_ot_bapiret2 . " CIF_SERMSL_CREATE
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:
it_it_marc_key  TYPE STANDARD TABLE OF CIF_IMMSLK ,
wa_it_marc_key  LIKE LINE OF it_it_marc_key,
it_it_cif_salfig  TYPE STANDARD TABLE OF CIF_SALFIG ,
wa_it_cif_salfig  LIKE LINE OF it_it_cif_salfig,
it_ot_cif_sermsl  TYPE STANDARD TABLE OF CIF_SERMSL ,
wa_ot_cif_sermsl  LIKE LINE OF it_ot_cif_sermsl,
it_ot_cif_sermsx  TYPE STANDARD TABLE OF CIF_SERMSX ,
wa_ot_cif_sermsx  LIKE LINE OF it_ot_cif_sermsx,
it_ot_bapiret2  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_ot_bapiret2  LIKE LINE OF it_ot_bapiret2.


"populate fields of struture and append to itab
append wa_it_marc_key to it_it_marc_key.

"populate fields of struture and append to itab
append wa_it_cif_salfig to it_it_cif_salfig.

"populate fields of struture and append to itab
append wa_ot_cif_sermsl to it_ot_cif_sermsl.

"populate fields of struture and append to itab
append wa_ot_cif_sermsx to it_ot_cif_sermsx.

"populate fields of struture and append to itab
append wa_ot_bapiret2 to it_ot_bapiret2.

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