‎2010 Mar 23 2:48 PM
Hi,
I have a RFC function module in CRM and want to call use it in R/3 . Could you pls give me some steps in order to progress.
Thanks,
Vind.
‎2010 Mar 23 2:59 PM
Hi
Check if R/3 connections in transaction SM59 contain the CRM destination...
if not exist you must create it .
In your code:
First you must read the RFC destination.
crmdest TYPE rfcdest.
crmdest = cl_crm_erp_il=>get_rfc_destination( ).
after you call the function as follow:
CALL FUNCTION 'function' DESTINATION crmdest
IMPORT
..
EXPORT
..
regards Marco
‎2010 Mar 23 3:09 PM
Hi Marco,
When i have put the below code its saying cl_crm_erp_il=>get_rfc_destination( ). is unknow.
Regards,
Vind
‎2010 Mar 23 3:29 PM
Hi vind
in table RFCDES you can find all the RFC connection
RFCTYPE = 3 for read the R/3 connection
Marco
‎2010 Mar 23 3:09 PM
HI,
Before calling the RFC connection must create it using transaction SM59 in connection abap-> create. Then you need to make the connection test.
Regards.
‎2010 Mar 23 3:33 PM
Hi Eric,
The connections are already there in R/3 SM59 ..My code is as below ...its giving me an error that z_rfc which is in CRM not found.
DATA: crmdest TYPE rfcdest.
DATA: url type string.
crmdest = 'CLT800'.
CALL FUNCTION Z_RFC DESTINATION crmdest
IMPORT
ID = ' '.
EXPORT
EP_URL = url.
Regards,
Vind
‎2010 Mar 23 3:36 PM
hi vind
modify
CALL FUNCTION Z_RFC DESTINATION crmdest
with
CALL FUNCTION 'Z_RFC' DESTINATION crmdest
regards
Marco
‎2010 Mar 23 3:39 PM
besides you must try to read the crmdest dinamically
because into the variuous system the name chenge.....
regards
Marco
‎2010 Mar 23 3:40 PM
‎2010 Mar 23 3:49 PM
Hi,
It does exit in CRM just its throwing an error with 'Data error (invalid data type 6) in a Remote Function Call" for some reason just wondering why it is ??
Regards,
Vind
‎2010 Mar 23 3:49 PM
‎2010 Mar 23 4:04 PM