‎2009 Sep 22 5:42 PM
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
‎2009 Sep 22 6:34 PM
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
‎2009 Sep 22 6:34 PM
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
‎2009 Sep 22 6:45 PM
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
‎2009 Sep 23 3:26 PM
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.