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: 

"Select Layout" option--- ALV Report

Former Member
0 Kudos

Hi All,

I have developed a ALV report.

In the output, on clicking the "Select Layout" button, a small window opens with some layout option/variant say "ZSLEB".

When i choose this layout, the output changes and takes the form of the chosen layout i.e. ZSLEB.

Now, on refresh, the alv output doesnt display this new layout, but goes back to the default layout/variant.

Actually, i am not passing anythin to the IS_Variant parameter in the ALV_GRID_Display FM.

I suppose i need to somehow manage to fetch the "ZSLEB" layout value during refresh and pass it to Is_Variant. Please help me in doing this.

Thanks & Regards,

Tejas Savla

1 REPLY 1

Former Member
0 Kudos

Define a variable as shown below

data: gs_variant like disvariant.

gs_variant-report = sy-report.

then pass gs_variant to the IS_VARAINT parameter of the ALV_GRID.