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

Call program with submit - passing values (ranges)

Former Member
0 Likes
7,582

Hi all,

i have two programs with selection-screens.

Scenario:

The user triggers only one program and the other one should be triggered in background.

So i try to pass the values from the one selection-screen to the selection-screen of the second program like that:

submit <program> with p_param = p_param

and exit.

But now i can see in the second program that the value looks like the following:

IEQIEQ<value>

How can i avoid that the sign and option parameter is inserted twice?

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,127

hi,

1.use like this:

SUBMIT program02 USING SELECTION-SCREEN '1000'

WITH S_BUKRS IN R_BUKRS

WITH S_CTA IN R_CTA1

WITH S_VTO IN R_VTO

AND RETURN.

2.SUBMIT rm07mlbs WITH matnr IN s_matnr

WITH werks IN s_plant

WITH lgort IN s_lgort

WITH charg IN s_batch

WITH pa_hsq = c_space

WITH pa_flt = c_x

WITH novalues = c_x

WITH nozero = c_x

WITH xmchb = c_x

AND RETURN .

Regards,

SHIVA(reward if helpful).

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
3,127

Hello Wolfgang

If the selection criteria are select-options then use the following coding:


  submit <program> with o_sel_A in o_sel_B[].
and exit.

Regards

Uwe

Read only

Former Member
0 Likes
3,128

hi,

1.use like this:

SUBMIT program02 USING SELECTION-SCREEN '1000'

WITH S_BUKRS IN R_BUKRS

WITH S_CTA IN R_CTA1

WITH S_VTO IN R_VTO

AND RETURN.

2.SUBMIT rm07mlbs WITH matnr IN s_matnr

WITH werks IN s_plant

WITH lgort IN s_lgort

WITH charg IN s_batch

WITH pa_hsq = c_space

WITH pa_flt = c_x

WITH novalues = c_x

WITH nozero = c_x

WITH xmchb = c_x

AND RETURN .

Regards,

SHIVA(reward if helpful).

Read only

Former Member
0 Likes
3,127

Hi Wolfgang,

data : seltab type table to RSPARAMS.

seltab-sign = 'I'. (or E)

seltab-option = 'EQ'.

seltab-low = ..

seltab-hight = ..

append seltab.

(Alternatively if seletion screen of called program and calling program are same you can use Function module RS_REFRESH_FROM_SELECTOPTIONS to read all parameters of your current program)

SUBMIT <progname> WITH SELECTION-TABLE seltab

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
3,127

Hi,

You can pass the selection screen parameters using the structure RSPARAMS.

Fill a structure (ex. sel_tab) of type RSPARAMS.

SUBMIT <program name> with sel_tab.

Reward points if helpful.

Thanks and Regards,

Lakshmi.