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

Layout - ALV - User Specific

RemiKaimal
Active Contributor
0 Likes
3,174

Hi,

I am trying to save the layout of an ALV / User specific,

The user specific option is grayed out

I ran a trace to check on the Authorization object to see a RC=0

Am i missing something?

Cheers | Remi

1 ACCEPTED SOLUTION
Read only

tan_michael
Active Participant
2,830

Hi Remi,

Check your ALV Program and check the i_save, please see below for your reference.


 call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program       = sy-repid
      i_callback_top_of_page   = 'TOP_OF_PAGE'
      i_callback_pf_status_set = 'SET_PF_STATUS'
      i_callback_user_command  = 'USER_COMMAND'
      it_fieldcat              = im_fcat
      is_layout                = lt_lout
      i_default                = 'X'


      i_save                   = 'U'  " <--- U = User-Specific
                                             A = Standard and user-specific save mode
                                             X = Standard Save Mode

    tables

      t_outtab                 = im_data

    exceptions

      program_error            = 1

      others                   = 2.
3 REPLIES 3
Read only

tan_michael
Active Participant
2,831

Hi Remi,

Check your ALV Program and check the i_save, please see below for your reference.


 call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program       = sy-repid
      i_callback_top_of_page   = 'TOP_OF_PAGE'
      i_callback_pf_status_set = 'SET_PF_STATUS'
      i_callback_user_command  = 'USER_COMMAND'
      it_fieldcat              = im_fcat
      is_layout                = lt_lout
      i_default                = 'X'


      i_save                   = 'U'  " <--- U = User-Specific
                                             A = Standard and user-specific save mode
                                             X = Standard Save Mode

    tables

      t_outtab                 = im_data

    exceptions

      program_error            = 1

      others                   = 2.
Read only

2,830

A little table with all values for I_SAVE and meanings:

               Cannot be   Save & seen    Save & seen 
I_SAVE           saved     by all users  by current user
-------------  ----------  ------------  ---------------
' ' (default)       X  
X                                X  
U                                               X
A                                X              X

Note: if your ALV is built with SALV, "I_SAVE = 'A' " is to be replaced with this code:

salv->get_layout( )->SET_SAVE_RESTRICTION( cl_salv_layout=>restrict_none ).
Read only

RemiKaimal
Active Contributor
0 Likes
2,830
Tan Michael, Sandra Rossi - Works!
I had set i_save to 'X', modified it to 'U'. Thanks