‎2006 Dec 19 9:12 PM
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.
‎2006 Dec 19 9:35 PM
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
‎2006 Dec 19 9:35 PM
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
‎2006 Dec 19 10:21 PM
Yes, I did the same . set the new one as default. But no use.
It is again overwritten by the old variant.
‎2006 Dec 20 12:29 AM
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
‎2006 Dec 20 5:45 AM