‎2005 May 13 4:37 PM
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.
‎2005 May 13 4:43 PM
SUBMIT reportname USING SELECTION-SCREEN '1000'
WITH s_field1 IN s_value1
WITH p_field2 EQ value2
AND RETURN.
Rgds,
Manohar
‎2005 May 13 4:57 PM
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.
‎2005 May 13 5:07 PM
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
‎2005 May 13 5:10 PM
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
‎2005 May 13 5:10 PM
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
‎2005 May 13 6:53 PM
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?
‎2005 May 13 7:17 PM
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.
‎2005 May 14 6:50 AM
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
‎2005 May 14 4:03 PM
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.
‎2005 May 15 9:35 AM
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.
‎2005 May 15 2:29 PM
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