‎2009 Feb 11 6:50 AM
Hi All,
In our requirement we are calling a report in our main program through 'SUBMIT' statement and
we were passing some hard coded values to the selection screen of the called report . But,there is some modifcation in our requirement Following are the details.
Change :
Instead of passing the hard coded values, user has said to read the values of the existing variant and pass the same values to the called report.
Can you please help me in solving this .
How can we read existing variant values for the particular program and how can we pass the same
values through submit statement?
‎2009 Feb 11 6:56 AM
Hi
Try RS_VARIANT_CONTENTS to read variat values
and then pass them using submit statement USING SELECTION-SET variant
Thanks
Viquar Iqbal
‎2009 Feb 11 6:55 AM
Bhanu
Check the below given function modules
RSPC_VARIANT_SELECT
RSPC_VARIANT_GET
K.Kiran.
‎2009 Feb 11 6:55 AM
HI
Read the values of the screen fields from the screen and pass them through the submit statement.
example
submit zreport via selection-screen using selection-set variantyou can even use the rs_variant_contents is the function module to read the contents
thanks
sarvesh
‎2009 Feb 11 6:56 AM
Hi
Try RS_VARIANT_CONTENTS to read variat values
and then pass them using submit statement USING SELECTION-SET variant
Thanks
Viquar Iqbal
‎2009 Feb 11 8:08 AM
Hi all,
Thanks for your help.
It would be greatful if you can send me the piece of code where we are using the above FMs.
Regards,
Bhanu.R
‎2009 Feb 11 8:10 AM
Ignore my reply,I got it wrong in mentioning the function modules but I am sure that it starts with RS_.Check for the function modules starting with RS_ in TFDIR table.
K.Kiran.
‎2009 Feb 11 6:56 AM
if u r using variant, then the values of this variant will be displayed in the selection screen of the calling prg. Now instead of using the hard coded values, jus pass the values that were in the selection scr.(like s_extid-extid) in the SUBMIT statement.
‎2009 Feb 11 7:00 AM
use below statement.
submit <report> USING SELECTION-SET variant.