Skip to Content
avatar image
Former Member

How can I get the list of columns (fieldcatalog) for particular variant

Hello,

i have option chose variant on selection screen (REUSE_ALV_VARIANT_F4) and i need to get which fields (columns) are included in this variant - i need to get this restricted fieldcatalog according variant using FM. I need to save file only with columns included in particular variant.

Thx.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 05, 2008 at 02:53 PM

    Hi Zdenek,

    You can get the list of user variant by FM

    call function 'LVC_VARIANT_F4'

    You can get the details of the selected variant using FM

    call function 'LVC_VARIANT_SELECT'

    Please check the SAP example BCALV_GRID_11 program for the code.

    Hope this helps.

    Franc

    Add comment
    10|10000 characters needed characters exceeded