Get any reports data in alv reports dynamic alv reports example
REPORT zsd_cl_saalv_reports . PARAMETERS : p_table TYPE char20 . DATA : data TYPE REF TO data . DATA : lo_alv TYPE REF TO cl_salv_table . FIELD-SYMBOLS : <fs_table> TYPE ANY TABLE . CREATE DATA data TYPE TABLE OF ( p_table ) . " get scture of any table ASSIGN data -> * TO <fs_table> . SELECT * FROM ( p_table ) INTO TABLE <fs_table> UP TO 10 ROWS . cl_salv_table => factory ( IMPORTING r_salv_table = lo_alv CHANGING t_table = <fs_table> ) . lo_alv -> display ( ) .