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

Need help with SUBMIT ... WITH SELECTION-TABLE

Former Member
0 Likes
1,114

Hi,

i want to call a program from another program using the SUBMIT statement: 

... other unchanged code ...

wa_rspar-selname = 'P_RECENT'.
wa_rspar-kind    = 'P'.
wa_rspar-sign    = 'I'.
wa_rspar-option  = 'EQ'.

* wa_rspar-low     = 'X'. "changed 05-09-2012
wa_rspar-low     = space. "changed 05-09-2012
CLEAR wa_rspar-high.
APPEND wa_rspar TO wt_rspar.

SUBMIT my_program

  WITH SELECTION-TABLE wt_rspar.

However I get an error message indicating that not all variables have been provided. As you can see I changed one line where I set a checkmark to space instead of 'X'. When it was 'X' it worked fine. Any idea what i did wrong?

More general, I was wondering if the system comes up with the error that not all parameters are provided, is there a way to tell which parameter the system is refering to. In cases with a lot of parameters it is somtimes hard to tell.

3 REPLIES 3
Read only

JackGraus
Active Contributor
0 Likes
501

Hi T, this looks like not an issue in your calling program but more likely there is a check programmed in your receiving program 'my_program'. What happens if you execute 'my_program' from SA38 and set parameter P_RECENT to space ?

Regards Jack

Read only

kumud
Active Contributor
0 Likes
501

Hi,

Just looking at your code and when you say that it worked fine when you provided the low parameter,

how else would you pass value to the parameter in other report? You are defining all the other values but not low. Moreover, you could never pass high without passing low and then in a paramer I would assume you only need to pass low value!

Oh! I did not see that you are passing space in low parameter. Sorry for that.

Regards,

Kumud

Message was edited by: Kumud Singh

Read only

Former Member
0 Likes
501

Parameter "P_RECENT" is declared as OBLIGATORY in your program "my_program" ?

Regards, Vinod