Application Development and Automation 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: 
Read only

Getting ALV Layout columns

venkat_raman
Associate
Associate
0 Likes
3,056

Hi Experts,

I save an ALV layout with some filtered columns. Now I would like to take the columns through program giving the variant name as input. I get variant info from LTDX table, but no the columns of ALV. Could u please tell me any FM to find out the columns or any table which stores those details?

Thanks and regards,

Venkat.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,545

Hi Venkat,

Now as you have the variant into some varaible. Pass this varaint name to FM 'LT_FC_LOAD' with IS_VARAINT = variant variable name, I_TABNAME = '1', and import your fields into the field catalog.

You will get the fields according to your variant.

Now after having fields in field catalog, you can easily create dynamic internal table from the same field catalog.

Hi Venkat,

Now as you have the variant into some varaible. Pass this varaint name to FM 'LT_FC_LOAD' with IS_VARAINT = variant variable name, I_TABNAME = '1', and import your fields into the field catalog.

You will get the fields according to your variant.

Now after having fields in field catalog, you can easily create dynamic internal table from the same field catalog.

1 REPLY 1
Read only

Former Member
0 Likes
1,546

Hi Venkat,

Now as you have the variant into some varaible. Pass this varaint name to FM 'LT_FC_LOAD' with IS_VARAINT = variant variable name, I_TABNAME = '1', and import your fields into the field catalog.

You will get the fields according to your variant.

Now after having fields in field catalog, you can easily create dynamic internal table from the same field catalog.