SAP Function Modules

MY_LIST_DISPLAY SAP Function module







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

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


Pattern for FM MY_LIST_DISPLAY - MY LIST DISPLAY





CALL FUNCTION 'MY_LIST_DISPLAY' "
  EXPORTING
    i_structure_name =          " dd02l-tabname
    is_list_attr =              " smylist_attr
*   i_sniwe =                   " sniwe
*   is_layout =                 " slis_layout_alv
*   it_fieldcat =               " slis_t_fieldcat_alv
*   is_variant =                " disvariant
*   it_event =                  " slis_t_event
*   is_lvc_layo =               " lvc_s_layo
*   is_lvc_fcat =               " lvc_s_fcat
*   it_lvc_fcat =               " lvc_t_fcat
  TABLES
    t_list =                    "
    .  "  MY_LIST_DISPLAY

ABAP code example for Function Module MY_LIST_DISPLAY





The ABAP code below is a full code listing to execute function module MY_LIST_DISPLAY 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_t_list  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_list  LIKE LINE OF it_t_list .


SELECT single TABNAME
FROM DD02L
INTO @DATA(ld_i_structure_name).

DATA(ld_is_list_attr) = 'Check type of data required'.
DATA(ld_i_sniwe) = 'Check type of data required'.
DATA(ld_is_layout) = 'Check type of data required'.
DATA(ld_it_fieldcat) = 'Check type of data required'.
DATA(ld_is_variant) = 'Check type of data required'.
DATA(ld_it_event) = 'Check type of data required'.
DATA(ld_is_lvc_layo) = 'Check type of data required'.
DATA(ld_is_lvc_fcat) = 'Check type of data required'.
DATA(ld_it_lvc_fcat) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_list to it_t_list. . CALL FUNCTION 'MY_LIST_DISPLAY' EXPORTING i_structure_name = ld_i_structure_name is_list_attr = ld_is_list_attr * i_sniwe = ld_i_sniwe * is_layout = ld_is_layout * it_fieldcat = ld_it_fieldcat * is_variant = ld_is_variant * it_event = ld_it_event * is_lvc_layo = ld_is_lvc_layo * is_lvc_fcat = ld_is_lvc_fcat * it_lvc_fcat = ld_it_lvc_fcat TABLES t_list = it_t_list . " MY_LIST_DISPLAY
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_i_structure_name  TYPE DD02L-TABNAME ,
it_t_list  TYPE STANDARD TABLE OF STRING ,
wa_t_list  LIKE LINE OF it_t_list,
ld_is_list_attr  TYPE SMYLIST_ATTR ,
ld_i_sniwe  TYPE SNIWE ,
ld_is_layout  TYPE SLIS_LAYOUT_ALV ,
ld_it_fieldcat  TYPE SLIS_T_FIELDCAT_ALV ,
ld_is_variant  TYPE DISVARIANT ,
ld_it_event  TYPE SLIS_T_EVENT ,
ld_is_lvc_layo  TYPE LVC_S_LAYO ,
ld_is_lvc_fcat  TYPE LVC_S_FCAT ,
ld_it_lvc_fcat  TYPE LVC_T_FCAT .


SELECT single TABNAME
FROM DD02L
INTO ld_i_structure_name.


"populate fields of struture and append to itab
append wa_t_list to it_t_list.
ld_is_list_attr = 'Check type of data required'.
ld_i_sniwe = 'Check type of data required'.
ld_is_layout = 'Check type of data required'.
ld_it_fieldcat = 'Check type of data required'.
ld_is_variant = 'Check type of data required'.
ld_it_event = 'Check type of data required'.
ld_is_lvc_layo = 'Check type of data required'.
ld_is_lvc_fcat = 'Check type of data required'.
ld_it_lvc_fcat = '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 MY_LIST_DISPLAY or its description.