Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV/LAYOUT

Former Member
0 Likes
330

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 .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
300

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

1 REPLY 1
Read only

Former Member
0 Likes
301

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