Application Development 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: 

How to enable the SAVE LAYOUT button?

Former Member
0 Kudos

When using CALL METHOD G_ALVGRID_HDR->SET_TABLE_FOR_FIRST_DISPLAY, how do I enable the SAVE LAYOUT push button?

It shows the Change layout button but does not allow me to save the layout as the SAVE LAYOUT button is not available.

I am using the following code but it does not show the SAVE LAYOUT button.

CALL METHOD G_ALVGRID_HDR->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

I_SAVE = L_SAVE

IS_VARIANT = LS_VARIANT

IS_LAYOUT = LS_LAYOUT

IS_PRINT = LS_PRINT

IT_TOOLBAR_EXCLUDING = I_EXCLUDE

CHANGING

IT_SORT = I_SORT_HDR

IT_OUTTAB = I_OUTTAB_HDR[]

IT_FIELDCATALOG = I_FCAT_HDR

EXCEPTIONS

INVALID_PARAMETER_COMBINATION = 1

PROGRAM_ERROR = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Pl advise.

Thanks,

Ven

3 REPLIES 3

Former Member
0 Kudos

solved

0 Kudos

Can you tell me the solution. I have the same problem.

0 Kudos

pass the variant and enable is_save = 'A'.

in my case I had to upgrade the gui also.