SAP Function Modules

FC_LVC_LIST_DISPLAY SAP Function module







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

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


Pattern for FM FC_LVC_LIST_DISPLAY - FC LVC LIST DISPLAY





CALL FUNCTION 'FC_LVC_LIST_DISPLAY' "
  EXPORTING
    i_tab_struct =              " dd02l-tabname  Table Name
    i_hlp_struct =              " dd02l-tabname  Table Name
*   is_layout =                 " lvc_s_layo    ALV Control: Layout Structure
    i_gui_title =               " gui_title     Menu Painter: Title code
*   is_variant =                " disvariant    Layout (External Use)
*   i_save =                    " char01        Character Field of Length 1
*   it_toolbar_button =         " ttb_button    Toolbar Buttons
*   it_events =                 " fc00_t_alv_event
*   it_message =                " fc00_t_message  Reported Data of Consolidation
  CHANGING
    ct_data =                   " table
    ct_fieldcat =               " lvc_t_fcat    Field Catalog for SAP List Viewer Control
*   ct_sort =                   " lvc_t_sort    ALV Control: Table of Sort Criteria
    ct_ffix =                   " fc00_t_lp_ffix
    .  "  FC_LVC_LIST_DISPLAY

ABAP code example for Function Module FC_LVC_LIST_DISPLAY





The ABAP code below is a full code listing to execute function module FC_LVC_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(ld_ct_data) = 'Check type of data required'.
DATA(ld_ct_fieldcat) = 'Check type of data required'.
DATA(ld_ct_sort) = 'Check type of data required'.
DATA(ld_ct_ffix) = 'Check type of data required'.

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


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

DATA(ld_is_layout) = 'Check type of data required'.
DATA(ld_i_gui_title) = 'Check type of data required'.
DATA(ld_is_variant) = 'Check type of data required'.
DATA(ld_i_save) = 'Check type of data required'.
DATA(ld_it_toolbar_button) = 'Check type of data required'.
DATA(ld_it_events) = 'Check type of data required'.
DATA(ld_it_message) = 'Check type of data required'. . CALL FUNCTION 'FC_LVC_LIST_DISPLAY' EXPORTING i_tab_struct = ld_i_tab_struct i_hlp_struct = ld_i_hlp_struct * is_layout = ld_is_layout i_gui_title = ld_i_gui_title * is_variant = ld_is_variant * i_save = ld_i_save * it_toolbar_button = ld_it_toolbar_button * it_events = ld_it_events * it_message = ld_it_message CHANGING ct_data = ld_ct_data ct_fieldcat = ld_ct_fieldcat * ct_sort = ld_ct_sort ct_ffix = ld_ct_ffix . " FC_LVC_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_ct_data  TYPE TABLE ,
ld_i_tab_struct  TYPE DD02L-TABNAME ,
ld_ct_fieldcat  TYPE LVC_T_FCAT ,
ld_i_hlp_struct  TYPE DD02L-TABNAME ,
ld_ct_sort  TYPE LVC_T_SORT ,
ld_is_layout  TYPE LVC_S_LAYO ,
ld_ct_ffix  TYPE FC00_T_LP_FFIX ,
ld_i_gui_title  TYPE GUI_TITLE ,
ld_is_variant  TYPE DISVARIANT ,
ld_i_save  TYPE CHAR01 ,
ld_it_toolbar_button  TYPE TTB_BUTTON ,
ld_it_events  TYPE FC00_T_ALV_EVENT ,
ld_it_message  TYPE FC00_T_MESSAGE .

ld_ct_data = 'Check type of data required'.

SELECT single TABNAME
FROM DD02L
INTO ld_i_tab_struct.

ld_ct_fieldcat = 'Check type of data required'.

SELECT single TABNAME
FROM DD02L
INTO ld_i_hlp_struct.

ld_ct_sort = 'Check type of data required'.
ld_is_layout = 'Check type of data required'.
ld_ct_ffix = 'Check type of data required'.
ld_i_gui_title = 'Check type of data required'.
ld_is_variant = 'Check type of data required'.
ld_i_save = 'Check type of data required'.
ld_it_toolbar_button = 'Check type of data required'.
ld_it_events = 'Check type of data required'.
ld_it_message = '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 FC_LVC_LIST_DISPLAY or its description.