‎2010 May 20 11:20 AM
Hi,
I want to provide 2-4 different layouts in a report . I have created one layout with the function maodule REUSE_ALV_VARIANT_DEFAULT_GET and REUSE_ALV_VARIANT_f4. What other additions or changes I required for creating and saving more than 1 layout .
Thanks .
‎2010 May 20 11:39 AM
Hi sranjna
use this code for call the ALV....
this will allows you to save the layout
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = lt_fieldcat
variant = ls_variant
i_save = 'X'
TABLES
t_outtab = lt_zynt
EXCEPTIONS
program_error = 1
OTHERS = 2.
best regards
Marco
‎2010 May 20 11:39 AM
Hi sranjna
use this code for call the ALV....
this will allows you to save the layout
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = lt_fieldcat
variant = ls_variant
i_save = 'X'
TABLES
t_outtab = lt_zynt
EXCEPTIONS
program_error = 1
OTHERS = 2.
best regards
Marco