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: 

Variant

Former Member
0 Kudos
135

Hi All,

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

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos
102

try to use system variable SY-SLSET.

Regards

Prabhu

4 REPLIES 4

Former Member
0 Kudos
102

use table ..

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

Former Member
0 Kudos
103

try to use system variable SY-SLSET.

Regards

Prabhu

Former Member
0 Kudos
102

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.

Former Member
0 Kudos
102

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