Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

1 REPLY 1

former_member226999
Contributor
0 Kudos

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