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 - default to saved layout

Former Member
0 Likes
707

How can a default to a particular saved layout when using

REUSE_ALV_GRID_DISPLAY? I tried using the is_variant parameter but that doesn't seem to work.

Thank you for any help.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
677

Make sure that you give all data for the variant. Also, I think that the name is case-sensitive. So make sure you check that.



data: variant type  disvariant.

* Set layout variant
  variant-report   = sy-repid.
  variant-username = sy-uname.
  variant-variant  = p_var.

Regards,

Rich Heilman

How can a default to a particular saved layout when using

REUSE_ALV_GRID_DISPLAY? I tried using the is_variant parameter but that doesn't seem to work.

Thank you for any help.

3 REPLIES 3
Read only

Former Member
0 Likes
677

Check out this program:

BCALV_GRID_09

Has really good documentation and such. hope it helps.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
678

Make sure that you give all data for the variant. Also, I think that the name is case-sensitive. So make sure you check that.



data: variant type  disvariant.

* Set layout variant
  variant-report   = sy-repid.
  variant-username = sy-uname.
  variant-variant  = p_var.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
677

Thanks, Rich. That worked. Didn't know I had to include sy-uname.