10-09-2008 8:53 PM
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
10-09-2008 9:04 PM
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
10-09-2008 9:04 PM
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
10-10-2008 2:51 AM
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
.
10-10-2008 5:53 AM
hi,
1. pass value for I_SAVE
2. It may be user's rights problem.so, Run your program in another user.
10-10-2008 6:04 AM
Hi,
S_ALV_LAYO is ALV authrization object. It must be assigned to user. Then user will get save variant option in toolbar