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

Variant

Former Member
0 Likes
639

Hi All,

Can we get the name of the vairant used while executing the report???

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
606

try to use system variable SY-SLSET.

Regards

Prabhu

4 REPLIES 4
Read only

Former Member
0 Likes
606

use table ..

<b>VARI</b> - ABAP/4: Variant storage (similar to INDX)

Read only

Former Member
0 Likes
607

try to use system variable SY-SLSET.

Regards

Prabhu

Read only

Former Member
0 Likes
606

You can get the name of variant using this code.

data : begin of i_variant occurs 0,

variant type variant,

end of i_variant.

select variant

from VARI

into table i_variant

where report = sy-repid.

Read only

Former Member
0 Likes
606

Hi,

Refer the table VARI,

Pass the program name and get the variant from this table.

The field CLUSTD will also give you the variant contents.

Regs,

Venkat Ramanan N