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

Call RFC function module

Former Member
0 Likes
849

Hi all,

i try to call a remote enabled function module via rfc from erp to apo.

CALL FUNCTION 'Z_XXXXXXXXXXXX

DESTINATION XXXXX

EXPORTING

wa_truid = it_tab_pre-trguid

IMPORTING

status = wa_status.

In debugging the parameter it_tab_pre-trguid is filled correctly (in ERP).

But in APO the field is empty.

Any ideas?

regards

6 REPLIES 6
Read only

Former Member
0 Likes
809

Hi!

Calling an FM with RFC means, you just simply run it on their system with giving some parameters to it.

It will use the remote database to select data.

Log into the APO system and run the FM there, with the same parameters, and you'll see, what's wrong.

Regards

Tamá

Read only

Former Member
0 Likes
809

Hello Wolfgang,

How are you passing the Parameter wa_truid BY VALUE or BY REFERNCE.

Try Pass by value.

Regards

Saket Sharma

Message was edited by:

Saket Sharma

Read only

0 Likes
809

hi,

i am passing the parameter wa_truid by value!!

If i call the function module from APO everything works fine!!

Any other ideas?

regards

Read only

0 Likes
809

Hi Wolfgang,,

Hope the data type of wa_truid in your FM declaration and that of it_tab_pre-trguid filed is same.

Regards

Saket Sharma

Read only

0 Likes
809

Hi,

the data types are the same.

Any ideas?

regards

Read only

0 Likes
809

Hi,

the problem is solved.

The parameter name was not the same.

regards.