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

Disvariant

Former Member
0 Likes
1,881

Hi all,

What is Disvariant.What is the use of that.Please give examples.

Thanks in Advance,

Thasneem

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,289

DISVARIANT is the structure which is used when passing the variant information to your ALV grid, either in the function module interface of the class interface. If you allow you user to save layouts, then it is important to pass some values in this structure as well. For example, you should always fill it with the report name and the user id of the current user.

data: variant type disvariant.

variant-report = sy-repid.
variant-username = sy-uname.

Then pass VARIANT to the appropriate parameter in the FM or class interface of the ALV grid.

It is used to correctly assign the variant which the user saves, to the program and user who saved it.

Regards,

RIch Heilman

Read only

Former Member