Skip to Content
avatar image
Former Member

Prob with Drill down ALV's Layout

Hi Friends,

I have developed a report with class based ALV grid.

First screen 100 - has an ALV for header details.

  CALL METHOD G_GRID_100->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
      IS_VARIANT           = GS_DISVARIANT
      IS_LAYOUT            = GS_LAYOUT
      IT_TOOLBAR_EXCLUDING = GT_EXCLUDE
      I_SAVE               = 'A'
    CHANGING
      IT_OUTTAB            = GT_DATA
      IT_FIELDCATALOG      = GT_FIELDCAT100.

on double click of any record in primary ALV, another screen 200 is called with line item details of that header in screen 100.

    CALL METHOD G_GRID_200->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
        IS_VARIANT           = GS_DISVARIANT1
        IS_LAYOUT            = GS_LAYOUT1
        IT_TOOLBAR_EXCLUDING = GT_EXCLUDE
        I_SAVE               = 'A'
      CHANGING
        IT_FIELDCATALOG      = GT_FIELDCAT200
        IT_OUTTAB            = GT_LINEITEM.

Problem: what ever layout is set in header alv is being copied in lineitem alv.

I want to have independent layouts for primary and secondary ALVs.

How to do that.

Any help on this is highly appreciated.

Regards,

Simha

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 20, 2008 at 09:30 AM

    Wat have u given for GS_LAYOUT and GS_LAYOUT1? Is there any difference in the structure or only the name?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      Thanks for your time and inputs.

      I am closing this thread as the problem is obsolete but i could not make the secondary layout independent of the first one.

      i am clueless about this. i will try to do more R&D on this when i get time. Thanks

      Simha

  • avatar image
    Former Member
    Oct 21, 2008 at 04:13 AM

    are you used same condition for IS_VARIANT? I think u should comment this line for screen 0200.

    IS_VARIANT = GS_DISVARIANT1

    Add comment
    10|10000 characters needed characters exceeded