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

SUBMIT via selection screen with selection-table

Former Member
0 Likes
6,178

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.

1 ACCEPTED SOLUTION
Read only

Former Member
3,641

Take out VIA SELECTION-SCREEN .

ie


SUBMIT (standard program) WITH SELECTION-TABLE gt_rsparams and return.

4 REPLIES 4
Read only

Former Member
3,642

Take out VIA SELECTION-SCREEN .

ie


SUBMIT (standard program) WITH SELECTION-TABLE gt_rsparams and return.

Read only

Former Member
0 Likes
3,641

Hi,

Remove the VIA SELECTION-SCREEN addition from the Submit statement.

F1 on SUBMIT and you can go thru the help.

Regards,

Srini.

Read only

Former Member
0 Likes
3,641

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

Read only

0 Likes
3,641

Hi All,

Thanks..solved the issue..

Anbu...