Application Development 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: 

Submit reports in a remote function module

0 Kudos

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?

4 REPLIES 4

christian_wohlfahrt
Active Contributor
0 Kudos

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

former_member214131
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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