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

Remote FM

Former Member
0 Likes
484

I have a Remote FM in ECC.

And I have created a FM in CRM that calls this ECC RF FM.

When test run CRM FM directly(F8), it works as expected(meaning Tables Parameter is getting filled).

But I call this FM(in CRM) in BADI, it does not work as expected(meaning does not show any data in the TABLEs parameter).

What could be the issue ?

Cheers

RJ

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
438

Your RFC call must be Synchronous RFC call. Check this document for different types of RFC calls

http://www.sdn.sap.com/irj/sdn/abap?rid=/library/uuid/f078394a-4469-2910-c4bf-853c75674694

How do you call the RFC FM in BADI? Please show your code of calling the FM.

Regards,

Naimesh Patel

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
439

Your RFC call must be Synchronous RFC call. Check this document for different types of RFC calls

http://www.sdn.sap.com/irj/sdn/abap?rid=/library/uuid/f078394a-4469-2910-c4bf-853c75674694

How do you call the RFC FM in BADI? Please show your code of calling the FM.

Regards,

Naimesh Patel

Read only

0 Likes
438

As I have said before, I have created a FM in CRM and that calls the Remote FM of ECC as below:

Basically I have created an Overwrite Method for a BADI method using Enhancement Tech and calling the below FM in CRM.

*******************************************************

DATA: ecc_doc TYPE TABLE OF zdoc_list.

CALL FUNCTION 'ZCRM_SO_LIST'

EXPORTING

iv_customer = '10049925' "customer

TABLES

et_documents =ecc_doc.

*********************************************************

This CRM FM in trun calls the ECC Remote FM as shown below:

DATA: lt_documents TYPE TABLE OF ZDOC_LIST.

CALL FUNCTION 'ZSALESORDER_LIST' DESTINATION 'ACCCLNT200'

EXPORTING

iv_customer = iv_customer

TABLES

et_documents = lt_documents.

Cheers

RJ

Edited by: Remo J on Sep 23, 2009 4:03 PM

Read only

0 Likes
438

Hi,

One thing I can say is that there is no problem with RFC function module, because you are able get required result from other system.

Aslo you using same function module in your BADi.

So try to work on the Method and parameters, which you created for your BADi.

Thanks,

Naveen Inuganti.