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

getting values from variant

Former Member
0 Likes
606

dear all,

i want to know how to get vaues of the variant from one program and pass the values only to another progam . the program does not have a selection screen i have to pass the values for selection criteria.

i tried with function module RS_VARIANT_CONTENTS.

i want to know how to use FM or else any other solution for this.

3 REPLIES 3
Read only

Former Member
0 Likes
557

Hi,

You can use the submit statement for this for passing variants to another progran .Look into the Submit statement additions.

If helpful reward points,

regards,

joseph.

Read only

Former Member
0 Likes
557

Hi,

use

SUBMIT REPORT01

VIA SELECTION-SCREEN

USING SELECTION-SET 'VARIANT1'

USING SELECTION-SETS OF PROGRAM 'REPORT00'

AND RETURN.

Regards,

Narayan

Read only

Former Member
0 Likes
557

To the FM Rs_VARIANT_CONTENTS, You will have to pass the report name and variant name that you have saved in the report.The valuetab of the FM then returns you the value all the parameters and select options set in that variant.

You can then, use the values in the other report program.

-Avanish