Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

save layout in ALV-GRID OO

Hi

i'm using ALV-GRID OO and i have problems with

saving my own layout.

In the output-liste i have a button to chage the output, but i'm missig

a button to save the new layout.

CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

IT_TOOLBAR_EXCLUDING = GT_EXCLUDE

IS_LAYOUT = GS_LAYOUT

I_SAVE = 'A'

CHANGING

IT_FIELDCATALOG = GT_FIELDCAT

IT_OUTTAB = ITAB.

Any idea?

Regards, Dieter

Tags:
Former Member
replied

Make sure that you pass the variant also.

  data: variant type  disvariant.

  variant-report = sy-repid.
  variant-username = sy-uname.



CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = GT_EXCLUDE
IS_LAYOUT = GS_LAYOUT
 is_variant             = variant
I_SAVE = 'A'
CHANGING
IT_FIELDCATALOG = GT_FIELDCAT
IT_OUTTAB = ITAB.

Regards,

Rich Heilman

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question