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

ALV - variant layout problem

Former Member
0 Likes
674

I have coded one report with ALV output.

I have "/DEFAULT" variant in my ALV output and the output contains 12 fields.

My problem is

when I shifted the fields and save as a new variant layout - it is saving as per my order .

But when come back and rerun the program with the new variant layout, this fields layout order was coming like older layout .

How can I avoid this ? PLEASE HELP ME.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
626

Hello Sam

Did you set your new variant as <b>default</b> variant? If not the current default variant will be used for displaying the ALV list. Choose from the menu <b>Settings -> Layout -> Change...</b> and switch the default variant flag.

Regards

Uwe

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
627

Hello Sam

Did you set your new variant as <b>default</b> variant? If not the current default variant will be used for displaying the ALV list. Choose from the menu <b>Settings -> Layout -> Change...</b> and switch the default variant flag.

Regards

Uwe

Read only

Former Member
0 Likes
626

Yes, I did the same . set the new one as default. But no use.

It is again overwritten by the old variant.

Read only

0 Likes
626

Probably you are still explicitly passing the old variant to the ALV. If you don't pass anything to the layout, then the default will come into picture, other wise it will take the layout that you are passing.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

Former Member
0 Likes
626

Is there any thing wrong in my coding ? Could you please help