2012 Sep 05 10:08 AM
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.
2012 Sep 05 10:29 AM
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
2012 Sep 05 10:35 AM
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
2012 Sep 05 10:48 AM
Parameter "P_RECENT" is declared as OBLIGATORY in your program "my_program" ?
Regards, Vinod