‎2010 Nov 29 11:18 PM
Hi All,
May be this is already available in forum, but im not able to get the right solution, because the problem i face is quiet different.
I have a standard program to which i need to include 3 additional fields to the selection screen. So what i did is created a Z program only with the selection screen (including 3 new fields) and called the function module 'RS_REFRESH_FROM_SELECTOPTIONS' and then used the submit statement to call the standard program.
SUBMIT (standard program) WITH SELECTION-TABLE gt_rsparams
VIA SELECTION-SCREEN.
The problem i'm facing is,
Now when i execute the Z program it first displays the new selection screen (with newly added field) and feed the input detail and when I execute again, now it again displays the selection screen of the standard program ( the one without new fields),
Can anyone suggest me what i miss here. Why it displays the standard program selection screen?.How can i skip this..
So when i execute this Z program i should get the selection screen with the new fields and just the result.
Anyone please help. It's quite critical.
Regards,
Anbu.
‎2010 Nov 30 2:22 AM
Take out VIA SELECTION-SCREEN .
ie
SUBMIT (standard program) WITH SELECTION-TABLE gt_rsparams and return.
‎2010 Nov 30 2:22 AM
Take out VIA SELECTION-SCREEN .
ie
SUBMIT (standard program) WITH SELECTION-TABLE gt_rsparams and return.
‎2010 Nov 30 3:54 AM
Hi,
Remove the VIA SELECTION-SCREEN addition from the Submit statement.
F1 on SUBMIT and you can go thru the help.
Regards,
Srini.
‎2010 Nov 30 4:03 AM
Hi,
Use
SUBMIT (standard program) WITH SELECTION-TABLE Seltab and Return.
Here seltab is an internal table with the structure RSPARAMS.
This variant allows you to set the names and contents of the parameters and selection options dynamically at runtime.
You can use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure RSPARAMS. By using SUBMIT ... WITH SELECTION-TABLE seltab, you can then pass these values on directly.
Hope this will help you.
Regards,
Kiran
‎2010 Nov 30 11:29 AM