SAP Function Modules

LABEL_REPL_LIST_DATA SAP Function module







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

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


Pattern for FM LABEL_REPL_LIST_DATA - LABEL REPL LIST DATA





CALL FUNCTION 'LABEL_REPL_LIST_DATA' "
* EXPORTING
*   pi_date_begin = SY-DATUM    " sy-datum
*   pi_date_end = SY-DATUM      " sy-datum
*   pi_popup = 'X'              " c
*   pi_incl_proc = ' '          " c
* TABLES
*   ti_so_store =               " wdl_loc
*   ti_so_bbtyp =               " wdl_bbt
*   te_weti =                   " weti
  EXCEPTIONS
    NO_VERSION = 1              "
    NO_STRUCTURE = 2            "
    NO_UPDATE = 3               "
    .  "  LABEL_REPL_LIST_DATA

ABAP code example for Function Module LABEL_REPL_LIST_DATA





The ABAP code below is a full code listing to execute function module LABEL_REPL_LIST_DATA 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_ti_so_store  TYPE STANDARD TABLE OF WDL_LOC,"TABLES PARAM
wa_ti_so_store  LIKE LINE OF it_ti_so_store ,
it_ti_so_bbtyp  TYPE STANDARD TABLE OF WDL_BBT,"TABLES PARAM
wa_ti_so_bbtyp  LIKE LINE OF it_ti_so_bbtyp ,
it_te_weti  TYPE STANDARD TABLE OF WETI,"TABLES PARAM
wa_te_weti  LIKE LINE OF it_te_weti .

DATA(ld_pi_date_begin) = '20210129'.
DATA(ld_pi_date_end) = '20210129'.
DATA(ld_pi_popup) = '20210129'.
DATA(ld_pi_incl_proc) = '20210129'.

"populate fields of struture and append to itab
append wa_ti_so_store to it_ti_so_store.

"populate fields of struture and append to itab
append wa_ti_so_bbtyp to it_ti_so_bbtyp.

"populate fields of struture and append to itab
append wa_te_weti to it_te_weti. . CALL FUNCTION 'LABEL_REPL_LIST_DATA' * EXPORTING * pi_date_begin = ld_pi_date_begin * pi_date_end = ld_pi_date_end * pi_popup = ld_pi_popup * pi_incl_proc = ld_pi_incl_proc * TABLES * ti_so_store = it_ti_so_store * ti_so_bbtyp = it_ti_so_bbtyp * te_weti = it_te_weti EXCEPTIONS NO_VERSION = 1 NO_STRUCTURE = 2 NO_UPDATE = 3 . " LABEL_REPL_LIST_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_pi_date_begin  TYPE SY-DATUM ,
it_ti_so_store  TYPE STANDARD TABLE OF WDL_LOC ,
wa_ti_so_store  LIKE LINE OF it_ti_so_store,
ld_pi_date_end  TYPE SY-DATUM ,
it_ti_so_bbtyp  TYPE STANDARD TABLE OF WDL_BBT ,
wa_ti_so_bbtyp  LIKE LINE OF it_ti_so_bbtyp,
ld_pi_popup  TYPE C ,
it_te_weti  TYPE STANDARD TABLE OF WETI ,
wa_te_weti  LIKE LINE OF it_te_weti,
ld_pi_incl_proc  TYPE C .

ld_pi_date_begin = '20210129'.

"populate fields of struture and append to itab
append wa_ti_so_store to it_ti_so_store.
ld_pi_date_end = '20210129'.

"populate fields of struture and append to itab
append wa_ti_so_bbtyp to it_ti_so_bbtyp.
ld_pi_popup = '20210129'.

"populate fields of struture and append to itab
append wa_te_weti to it_te_weti.
ld_pi_incl_proc = '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 LABEL_REPL_LIST_DATA or its description.