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

passing parameters through submit

Former Member
0 Likes
985

hi,

i would like to pass 2 parameters to another program via submit statement how can i do that?

i have 2 parameters in my program and i am calling another selection-screen program using submit and i need to pass these 2 parameters to the called program.

Can anybody help me?

Thanks in advance.

11 REPLIES 11
Read only

Former Member
0 Likes
903

SUBMIT reportname USING SELECTION-SCREEN '1000'

WITH s_field1 IN s_value1

WITH p_field2 EQ value2

AND RETURN.

Rgds,

Manohar

Read only

0 Likes
903

hi mano,

Thanks for your reply.

I did the same way but i am not getting the value in the passed fields as i debugged and checked .

Can you please let me know is there any wrong thing i am doing?

Thanks in advance.

Read only

0 Likes
903

Hi aasr,

Can you post the code you are using as well as the code of the program you are trying to submit?

Cheers,

Brad

Read only

0 Likes
903

Remeber,

with:


SUBMIT reportname USING SELECTION-SCREEN '1000'
WITH s_field1 IN s_value1 
WITH p_field2 EQ value2
AND RETURN.

the names of the parameters s_field1 and p_field2 need to have the same names as in the report you are submitting, and the fields s_value1 and value2 must be the same type as those in the report you are submitting (in the case of s_value1, this must be a select option or range).

Cheers,

Brad

Read only

0 Likes
903

Hi ,

1. Check selection screen number of teh callign program , it need not be 1000 .

2. Run the called report directly with the same values which you are trying to pass , see if it runs for those values.

Finally what is the report which your are trying to call ?

(if i may have to ask you).

Rgds,

Manohar

Read only

0 Likes
903

hi ,

In my calling program i have two parameters ABC an BBC and in the called program, i have to use these two parameters ABC and BBC for validation in the called program. so i am doing the submit statement in the calling program as

submit called-program using selection-screen '1000'

with ABC EQ ABC(variable holding value)

with BBC EQ BBC(variable holdoing value)

and return.

ABC and BBC are parameters.

can you please let me know what is the wrong in above statement?

Read only

0 Likes
903

hi,

here the called program has one selection screen and the calling program had other selection screen, will this scenario requires any change in the syntax.

Thanks in advance.

Read only

0 Likes
903

if the called prgram screen is standard selection-screen you dont need the addition using selection-screen '1000'


... USING SELECTION-SCREEN scr 


Effect 
When you execute the report, the system uses the selection screen number that you specify in the scr field. This must be a selection screen defined using the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.If you omit the addition, the system uses the standard selection screen 1000. 
This addition allows you to start the same report in different situations, using a different selection screen each time. 


submit called-program

with ABC EQ ABC(variable holding value)

with BBC EQ BBC(variable holdoing value)

and return.

Try this and let us know.

Regards

Raja

Read only

0 Likes
903

Dear AASR,

Seen your code,

As far as i know EQ just do the comparision and not assigning values. If rest of your code work try the below code.

submit called-program and return

with ABC = abcvalue

with BBC = bbcvalue.

I have used above kind of code since long and it is working fine. Tell me if it does not work

Raj.

Read only

0 Likes
903

hi,

try use this code i used it and it work

SUBMIT your_REPORT

WITH P_parm1 = p_parm1

with p_parm2 = p_parm2

AND RETURN.

Read only

Former Member
0 Likes
903

Hi.,

I have gone through this situation...., I have succeeded by filling ranges table with the respective values before submitting the program....

Let me know the status back...

I hope you will rate this

Regards

R Nittala