‎2007 Mar 07 11:29 AM
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.
‎2007 Mar 07 11:36 AM
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.
‎2007 Mar 07 11:43 AM
Hi,
use
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Regards,
Narayan
‎2007 Mar 07 12:03 PM
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