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

Tables parameter in RFC function

Former Member
0 Likes
837

Hi,

I have a program in SAP not R/3 that calls a RFC function in a R/3 system. In this call i pass two empty tables, this tables are filled inside the fuction, but when the function ends and we return to the program the tables came empty. Anyone can help me solve this problem?

9 REPLIES 9
Read only

Former Member
0 Likes
807

Hi ricardo,

1. Normally this does not happen.

2. for testing purpose,

3. u can HARDCODE some value inside the fm,

so that the internal table is filled

by 1 or 2 or 3 records.

4. Then test once again.

regards,

amit m.

Read only

Former Member
0 Likes
807

Have you tried debugging it in the R/3 system?

Rob

Read only

0 Likes
807

Yes in the debug in R3 the table is allright and with data. when passed to the other system came empty

Read only

0 Likes
807

I guess you'll need to debug the RFC. I think this may help:

Rob

Read only

0 Likes
807

I've done that all ready i debuged the program and the rfc function

Read only

0 Likes
807

So, can you see what's happening in the RFC?

Rob

Read only

0 Likes
807

In the rfc the table is filled with data like is supposed to be. when the function ends and the table should be passed to the caller program, the table in the caller program is empty

Read only

0 Likes
807

I just want to make sure I understand exactly what you are doing and the sequence:

You execute the caller.

Then debug the RFC as shown in the URL I posted.

The RFC has data in the table (as shown by debug).

The RFC ends (also in same debug session).

Control is transferred back to the caller but no data is in the table (again in debug session).

Is that about right?

Rob

Read only

0 Likes
807

Yes