... us.
CL_GUI_ALV_GRID class cannot be used to display data without some effort, that’s why many of the beginners starts with the REUSE_ALV_GRID_DISPLAY function module or CL_SALV_TABLE class in their ...
...
public section.
interfaces if_alv_rm_grid_friend . "important
data: spfli type standard table of spfli,
salv type ref to cl_salv_table.
methods: create_salv. ...
... and CL_SALV_TABLE. Both methods are created with new ABAP 7.40 SP05 syntax. LVC Field catalog definition class-methods lvc_fcat_from_internal_table
importing
it_table type any table
returning value(rt_fcat) type lvc_t_fcat. ...
...
data: gt_alv type tt_alv.
data: gs_alv type t_alv.
data: gt_trdir type standard table of trdir.
data: gt_fcat type slis_t_fieldcat_alv.
data: gr_salv type ref to cl_salv_table.
data: gr_columns type ref to cl_salv_columns_table. ...
... was passed. If not then I create it on a base of internal table with usage of cl_salv_table and cl_salv_controller_metadata=>get_lvc_fieldcatalog. After I finally have the fieldcatalog I create result ...