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: 

How to get the VARIANT name in the program

manoj_goyal2
Participant
0 Kudos

Hi Guys,

Can somebody tell me how to get the VARIANT name in a program.

I have to perform some code with specific variant only. So I want to check in program which variant has been used to call the program.

Thanks,

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos

Hello

The information about the currently used variant can be found in system variable:

<b>SYST-SLSET</b> " means probably selection set

Regards

Uwe

4 REPLIES 4

Former Member
0 Kudos

Hi,

You can query table VARID.

Regards,

Atish

Former Member
0 Kudos

Hi,

Variants are stored in table VARI and VARID.

You can use RS_ALL_VARIANTS_4_1_REPORT to get all the variants for a report program.

please check out the link below it will be helpful to you

Hope this helps.

ashish

Former Member
0 Kudos

Hi..

Check FM...F4_REPORT_VARIANT

Give your Program name it will get you all the variant for your Pgm .

Hope this helps.

Praveen.

uwe_schieferstein
Active Contributor
0 Kudos

Hello

The information about the currently used variant can be found in system variable:

<b>SYST-SLSET</b> " means probably selection set

Regards

Uwe