‎2019 Jan 11 10:08 PM
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
‎2019 Jan 12 6:45 AM
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.
‎2019 Jan 12 6:45 AM
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.
‎2019 Jan 12 2:20 PM
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 XNote: 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 ).
‎2019 Jan 14 4:15 PM