SAP Function Modules

CEI3_CLASSIFICATION_FROM_DB SAP Function module







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

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


Pattern for FM CEI3_CLASSIFICATION_FROM_DB - CEI3 CLASSIFICATION FROM DB





CALL FUNCTION 'CEI3_CLASSIFICATION_FROM_DB' "
  EXPORTING
    classtype =                 " tcla-klart
    date =                      " sy-datum
    decimalpoint =              " char1
    thousand_sep =              " char1
*   iv_language = SY-LANGU      " spras
* TABLES
*   daten =                     " ghcl
*   index =                     "
*   exp_mksel =                 "
    .  "  CEI3_CLASSIFICATION_FROM_DB

ABAP code example for Function Module CEI3_CLASSIFICATION_FROM_DB





The ABAP code below is a full code listing to execute function module CEI3_CLASSIFICATION_FROM_DB 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_daten  TYPE STANDARD TABLE OF GHCL,"TABLES PARAM
wa_daten  LIKE LINE OF it_daten ,
it_index  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_index  LIKE LINE OF it_index ,
it_exp_mksel  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_exp_mksel  LIKE LINE OF it_exp_mksel .


SELECT single KLART
FROM TCLA
INTO @DATA(ld_classtype).

DATA(ld_date) = '20210129'.
DATA(ld_decimalpoint) = '20210129'.
DATA(ld_thousand_sep) = '20210129'.
DATA(ld_iv_language) = '20210129'.

"populate fields of struture and append to itab
append wa_daten to it_daten.

"populate fields of struture and append to itab
append wa_index to it_index.

"populate fields of struture and append to itab
append wa_exp_mksel to it_exp_mksel. . CALL FUNCTION 'CEI3_CLASSIFICATION_FROM_DB' EXPORTING classtype = ld_classtype date = ld_date decimalpoint = ld_decimalpoint thousand_sep = ld_thousand_sep * iv_language = ld_iv_language * TABLES * daten = it_daten * index = it_index * exp_mksel = it_exp_mksel . " CEI3_CLASSIFICATION_FROM_DB
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_classtype  TYPE TCLA-KLART ,
it_daten  TYPE STANDARD TABLE OF GHCL ,
wa_daten  LIKE LINE OF it_daten,
ld_date  TYPE SY-DATUM ,
it_index  TYPE STANDARD TABLE OF STRING ,
wa_index  LIKE LINE OF it_index,
ld_decimalpoint  TYPE CHAR1 ,
it_exp_mksel  TYPE STANDARD TABLE OF STRING ,
wa_exp_mksel  LIKE LINE OF it_exp_mksel,
ld_thousand_sep  TYPE CHAR1 ,
ld_iv_language  TYPE SPRAS .


SELECT single KLART
FROM TCLA
INTO ld_classtype.


"populate fields of struture and append to itab
append wa_daten to it_daten.
ld_date = '20210129'.

"populate fields of struture and append to itab
append wa_index to it_index.
ld_decimalpoint = '20210129'.

"populate fields of struture and append to itab
append wa_exp_mksel to it_exp_mksel.
ld_thousand_sep = '20210129'.
ld_iv_language = '20210129'.

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