Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 06, 2006 at 01:54 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 06, 2006 at 02:14 PM

    Hi Rich,

    that's it.

    Thanks for your fast reply.

    Regards, Dieter

    Add comment
    10|10000 characters needed characters exceeded