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 calling in the report program.

Neslinn
Participant
0 Kudos

Hi,

I got a report program to be called using the submit statement mentioned below.

SUBMIT... [USING SELECTION-SET <var>].

The Variant is saved in the Tcode. How can i get the Variant programatically rather than harcoding the variant name?.i mean any table it will be stored or any Function module available?.

The variants are stored in the TVARV table, but still i need to pass the variant name to get the entries from the table.Any other alternative.

Thanks,

Neslin.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Check the table VARID, query on the table and find the variant related to the program.

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

Check the table VARID, query on the table and find the variant related to the program.

0 Kudos

Hi Vijay,

In the table i find a possibility of getting multiple variants for a single report pgm name. any way to get a unique variant..

Thanks,

Neslin

Former Member
0 Kudos

You can also use the RS_VARIANT* FM's like 'RS_VARIANT_DISPLAY' 'RS_VARIANT_LIST'