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

ALV grid report

Former Member
0 Likes
783

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
753

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,

5 REPLIES 5
Read only

Former Member
0 Likes
753

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.

Read only

Former Member
0 Likes
753

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

Read only

Former Member
0 Likes
753

Try IS_LAYOUT = X.

Read only

0 Likes
753

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

Read only

Former Member
0 Likes
754

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.