2007 Dec 11 5:51 AM
HI experts,
I have displayed a report in an ALV grid. In the settings tab in the title bar, there is an option Layout-> Save.
But this "SAVE" option is disabled. could u tell me how to enable this so that i can save the layout after changing it.
Thanks,
2007 Dec 11 6:09 AM
Hi,
In the Export parameters Grid display, you need to pass the value 'A' to I_SAVE parameters. Then save button will be displayed.
Thanks,
Sriram Ponna.
HI experts,
I have displayed a report in an ALV grid. In the settings tab in the title bar, there is an option Layout-> Save.
But this "SAVE" option is disabled. could u tell me how to enable this so that i can save the layout after changing it.
Thanks,
2007 Dec 11 5:53 AM
Hi,
U need to transfer the name of the report and the user to the grid class in order to allow to save the layout:
DATA: LT_VARIANT TYPE DISVARIANT.
LT_VARIANT-REPORT = SY-REPID.
LT_VARIANT-USERNAME = SY-UNAME.
CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_VARIANT = LT_VARIANT
I_SAVE = 'A'
IS_LAYOUT = LT_LAYOUT
IT_TOOLBAR_EXCLUDING = GT_NO_CODES
CHANGING
IT_OUTTAB = T_OUTPUT
IT_FIELDCATALOG = GT_FIELDCAT.
The user has to have the authorizations to manage the layout.
Regards,
Priyanka.
2007 Dec 11 5:53 AM
Hello
i think ur using AT User command and AT Pf status.
if both must work u need give the word PICK in pf status so that both will work.
Regards
Reward points if helpful
santhosh
2007 Dec 11 5:55 AM
2007 Dec 11 5:59 AM
Hi,
To enable the save option in the settings tab , first you have to enable the I_save option as 'X' in reuse_alv_grid_display function module , by doing this the save option is enabled in the settings tab.
i_save = 'X'.
Reward points if useful.
Thanks,
shaik khaleel
2007 Dec 11 6:09 AM
Hi,
In the Export parameters Grid display, you need to pass the value 'A' to I_SAVE parameters. Then save button will be displayed.
Thanks,
Sriram Ponna.