SAP Function Modules

FC_ALV_LIST_DISPLAY SAP Function module







FC_ALV_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_ALV_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_ALV_LIST_DISPLAY - FC ALV LIST DISPLAY





CALL FUNCTION 'FC_ALV_LIST_DISPLAY' "
  EXPORTING
    i_tab_struct =              " fc00_lp_table
    i_hlp_struct =              " fc00_lp_table
*   is_layout =                 " fc00_s_alv_layout
*   is_variant =                " fc00_s_alv_variant
*   it_excluding =              " fc00_t_alv_extab
*   it_special_groups =         " fc00_t_alv_sp_group
*   it_sort =                   " fc00_t_alv_sortinfo
*   it_filter =                 " fc00_t_alv_filter
*   i_save =                    " fc_flg
*   it_events =                 " fc00_t_alv_event
*   it_event_exit =             " fc00_t_alv_event_exit
*   it_rcall =                  " fc00_t_alv_rcall
  IMPORTING
    e_exit_caused_by_caller =   " fc_flg
  CHANGING
    ct_ffix =                   " fc00_t_lp_ffix
    ct_fieldcat =               " fc00_t_alv_fieldcat
    ct_data =                   " table
    .  "  FC_ALV_LIST_DISPLAY

ABAP code example for Function Module FC_ALV_LIST_DISPLAY





The ABAP code below is a full code listing to execute function module FC_ALV_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_e_exit_caused_by_caller  TYPE FC_FLG .

DATA(ld_ct_ffix) = 'Check type of data required'.
DATA(ld_ct_fieldcat) = 'Check type of data required'.
DATA(ld_ct_data) = 'Check type of data required'.
DATA(ld_i_tab_struct) = 'Check type of data required'.
DATA(ld_i_hlp_struct) = 'Check type of data required'.
DATA(ld_is_layout) = 'Check type of data required'.
DATA(ld_is_variant) = 'Check type of data required'.
DATA(ld_it_excluding) = 'Check type of data required'.
DATA(ld_it_special_groups) = 'Check type of data required'.
DATA(ld_it_sort) = 'Check type of data required'.
DATA(ld_it_filter) = 'Check type of data required'.
DATA(ld_i_save) = 'Check type of data required'.
DATA(ld_it_events) = 'Check type of data required'.
DATA(ld_it_event_exit) = 'Check type of data required'.
DATA(ld_it_rcall) = 'Check type of data required'. . CALL FUNCTION 'FC_ALV_LIST_DISPLAY' EXPORTING i_tab_struct = ld_i_tab_struct i_hlp_struct = ld_i_hlp_struct * is_layout = ld_is_layout * is_variant = ld_is_variant * it_excluding = ld_it_excluding * it_special_groups = ld_it_special_groups * it_sort = ld_it_sort * it_filter = ld_it_filter * i_save = ld_i_save * it_events = ld_it_events * it_event_exit = ld_it_event_exit * it_rcall = ld_it_rcall IMPORTING e_exit_caused_by_caller = ld_e_exit_caused_by_caller CHANGING ct_ffix = ld_ct_ffix ct_fieldcat = ld_ct_fieldcat ct_data = ld_ct_data . " FC_ALV_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_ffix  TYPE FC00_T_LP_FFIX ,
ld_e_exit_caused_by_caller  TYPE FC_FLG ,
ld_i_tab_struct  TYPE FC00_LP_TABLE ,
ld_ct_fieldcat  TYPE FC00_T_ALV_FIELDCAT ,
ld_i_hlp_struct  TYPE FC00_LP_TABLE ,
ld_ct_data  TYPE TABLE ,
ld_is_layout  TYPE FC00_S_ALV_LAYOUT ,
ld_is_variant  TYPE FC00_S_ALV_VARIANT ,
ld_it_excluding  TYPE FC00_T_ALV_EXTAB ,
ld_it_special_groups  TYPE FC00_T_ALV_SP_GROUP ,
ld_it_sort  TYPE FC00_T_ALV_SORTINFO ,
ld_it_filter  TYPE FC00_T_ALV_FILTER ,
ld_i_save  TYPE FC_FLG ,
ld_it_events  TYPE FC00_T_ALV_EVENT ,
ld_it_event_exit  TYPE FC00_T_ALV_EVENT_EXIT ,
ld_it_rcall  TYPE FC00_T_ALV_RCALL .

ld_ct_ffix = 'Check type of data required'.
ld_i_tab_struct = 'Check type of data required'.
ld_ct_fieldcat = 'Check type of data required'.
ld_i_hlp_struct = 'Check type of data required'.
ld_ct_data = 'Check type of data required'.
ld_is_layout = 'Check type of data required'.
ld_is_variant = 'Check type of data required'.
ld_it_excluding = 'Check type of data required'.
ld_it_special_groups = 'Check type of data required'.
ld_it_sort = 'Check type of data required'.
ld_it_filter = 'Check type of data required'.
ld_i_save = 'Check type of data required'.
ld_it_events = 'Check type of data required'.
ld_it_event_exit = 'Check type of data required'.
ld_it_rcall = '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_ALV_LIST_DISPLAY or its description.