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 Variant name

Former Member
0 Kudos

Hello,

we need to know name of the variant when we debug the report program selecting the variant from the list of the variants. please let us know any structure or field name storing the variant name.

Thanks in advance,

Amish.

1 ACCEPTED SOLUTION

Former Member

hi

use the system field sy-slset.

Regards,

Jayarama kumar

Edited by: Jaya rama kumar V.V.S Rapeti on Apr 21, 2009 12:09 PM

5 REPLIES 5

Former Member
0 Kudos

Hello,

You can check the table TVARV (Table of variables in selection criteria). It containes the varaint values.

Also the system field 'SLSET' in the structure SYST stores the varaint name.

Edited by: SAP USER on Apr 21, 2009 11:51 AM

Former Member
0 Kudos

Hi,

you can get it from table

TNAPR

Thanks

Arun

Former Member
0 Kudos

Hi

Use this one

PARAMETERS: VARIANT LIKE DISVARIANT-VARIANT.

using this parameter you can find it out which variant you are using.

Former Member

hi

use the system field sy-slset.

Regards,

Jayarama kumar

Edited by: Jaya rama kumar V.V.S Rapeti on Apr 21, 2009 12:09 PM

Former Member
0 Kudos

Hi,

Table VARIS would give you the variants per program and the

following FM can be used to get the details of the variant.

RS_VARIANT_CONTENTS_RFC

Hope it helps

Regards

Mansi