07-06-2005 11:41 AM
Hi friends,
Below is the sample code i wrote (on R/3 4.6C),
==============================================
SUBMIT ztest001 WITH p_noprt EQ 'X'
WITH p_datum EQ i_datum
WITH s_matnr IN rtab1
WITH s_prodh IN rtab2
WITH s_kunnr IN rtab3
AND RETURN.
==============================================
There are something wrong with the 'IN' statement, i can't use more than 1 selection criterion, or the results from report(ztest001) were incorrect.
Everything is fine with only 1 selection, or in a report context... Isn't it a bug?
07-06-2005 11:48 AM
Hi Seymour,
I didn't had such problems (but wasn't calling this in a RFC). Nevertheless, sounds more like rtabx is not filled correctly (append missing, parameter definition of import parameter of your RFC-module wrong?).
Is a call without RFC OK? Can you debug this call and check selection tables?
Regards,
Christian
07-06-2005 12:21 PM
Hello,
I made a check on the system. It works fine.
Please check whether you have filled RANGES for select options properly before submitting the program.
Let me know if you need further help.
Regards, Murugesh AS
Message was edited by: Murugesh Arcot
07-06-2005 2:50 PM
hi ,
Prabhu here, Check wheather S_matnr and rtab are both same type cast.I mean to SAy Selection-optins/parameters .
<b>WITH s_matnr IN rtab1
WITH s_prodh IN rtab2
WITH s_kunnr IN rtab3</b>
regards
Prabhu
nethranp@hotmail.com
11-14-2005 1:52 PM
Hi Chen,
Do You have defined the Ranges correctly?
ranges: s_matnr for mara-matnr.
ranges: s_kunnr for kna1-kunnr.
ranges: s_prodh for mara-prodh.
s_matnr-sign = 'I'.
s_matnr-option = 'EQ'.
s_matnr-low = '4711000'
APPEND S_MATNR!
s_matnr-low = '4712000'
APPEND S_MATNR!
s_matnr-low = '4713000'
APPEND S_MATNR! .....
Do the same with s_kunnr and s_prodh.
If You do this in this way it works!
But be careful, if the number of lines of the Ranges
beconmes to large! (500 are ok).
Hope I could help You
BR
Michael