Skip to Content
0
Former Member
Dec 26, 2007 at 04:26 PM

How to enable the SAVE LAYOUT button?

40 Views

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