Application Development 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: 

ALV Report Formatting

Former Member
0 Kudos

Hi all,

I am working on a report, where I have created an ALV report, now the problem is when I run this report and get the output screen it shows me two buttons 1. change layout and 2. select layout but the third button is missing which is for "save layout". So can you please tell what I am missing? or what is required to be done !!!

Thanks,

Rajeev

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

If you are using the FM REUSE_ALV_GRID_DISPLAY than pass I_SAVE parameter with value "A" to get the Save layout button.

Like:


  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program      = l_repid

      I_SAVE = 'A'
       ....

Regards,

Naimesh Patel

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos

If you are using the FM REUSE_ALV_GRID_DISPLAY than pass I_SAVE parameter with value "A" to get the Save layout button.

Like:


  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program      = l_repid

      I_SAVE = 'A'
       ....

Regards,

Naimesh Patel

former_member188685
Active Contributor
0 Kudos

if you mention the is_layout and i_save option along with other parameters then it automatically enable that option too.

*"     REFERENCE(IS_LAYOUT) TYPE  SLIS_LAYOUT_ALV OPTIONAL
*"     REFERENCE(I_SAVE) DEFAULT SPACE

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
   I_CALLBACK_PROGRAM                =  sy-repid
   I_GRID_TITLE                      = I_GRID_TITLE
   I_GRID_SETTINGS                   = I_GRID_SETTINGS
   IS_LAYOUT                         = IS_LAYOUT
   IT_FIELDCAT                       = IT_FIELDCAT
   I_SAVE                            =   'X'            " you can specify A , U also
  TABLES
    t_outtab                          = t_outtab
* EXCEPTIONS
*   PROGRAM_ERROR                     = 1

.

Former Member
0 Kudos

hi,

1. pass value for I_SAVE

2. It may be user's rights problem.so, Run your program in another user.

Former Member
0 Kudos

Hi,

S_ALV_LAYO is ALV authrization object. It must be assigned to user. Then user will get save variant option in toolbar