‎2008 Feb 01 2:00 PM
I am using CL_GUI_ALV_GRID for displaying the report in ALV Grid.
What are classes/methods used for displaying report in ALV List format.
‎2008 Feb 01 2:11 PM
If you are running a release prior to NetWeaver 2004, then you must use the function module REUSE_ALV_LIST_DISPLAY. If you are on NetWeaver 2004 or 7.0, you can use the ALV object model class which allows you to force the list display.
REPORT zrich_0001.
DATA: ispfli TYPE TABLE OF spfli.
DATA: gr_table TYPE REF TO cl_salv_table.
DATA: gr_functions TYPE REF TO cl_salv_functions.
START-OF-SELECTION.
SELECT * INTO TABLE ispfli FROM spfli.
cl_salv_table=>factory(
EXPORTING
list_display = if_salv_c_bool_sap=>true
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = ispfli ).
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
gr_table->display( ).
Regards,
Rich Heilman
‎2008 Feb 01 2:07 PM
‎2008 Feb 01 2:11 PM
If you are running a release prior to NetWeaver 2004, then you must use the function module REUSE_ALV_LIST_DISPLAY. If you are on NetWeaver 2004 or 7.0, you can use the ALV object model class which allows you to force the list display.
REPORT zrich_0001.
DATA: ispfli TYPE TABLE OF spfli.
DATA: gr_table TYPE REF TO cl_salv_table.
DATA: gr_functions TYPE REF TO cl_salv_functions.
START-OF-SELECTION.
SELECT * INTO TABLE ispfli FROM spfli.
cl_salv_table=>factory(
EXPORTING
list_display = if_salv_c_bool_sap=>true
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = ispfli ).
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
gr_table->display( ).
Regards,
Rich Heilman
‎2008 Feb 01 2:16 PM
hi
good
check this report in se38
BCALV_TEST_LIST
thanks
mrutyun^