cancel
Showing results for 
Search instead for 
Did you mean: 

Error on adding attachement on a CRM case using the method call cl_crm_documents=>create_with_file

0 Kudos
303

Hi All,

I am facing an issue of RFC connection during the RFC enabled function module call. I have used the method cl_crm_documents=>create_with_file on a RFC enabled custom function module for adding an attachment on the CRM case and it's adding the attachment successfully when I run from CRM system. But when I call the same RFC enabled custom function module from ECC system using the service call from Fiori system then it provides the error as "CRM_DOCUMENTS 100 Type E". When I debug the method create_with_file, then I observed that error happen at FM "RFC_PING" destination SAPGUI and error message is "Error when opening an RFC connection".

Note :- During the RFC call I check SM59 and all connection are fine. So I am reuesting you , could you please help me to resolve this issue?

Thanks in advance..

Thanks,

Ashis

Accepted Solutions (0)

Answers (1)

Answers (1)

developerone
Contributor
0 Kudos

Try calling any other RFC function module from ECC to CRM, Check if this function module fails as well. If not there is something wrong with the parameters that you are passing.

0 Kudos

Hi Sai, thank you for response.

I check that there is no issue if I call the CRM system's FM in ECC system, but it only fails when I use the service call from Fiori system. I mean, it fails if use to call from Fiori system(O data call) - > ECC system -> CRM system but it's success when I call from ECC System -> CRM system.

Could you please help me here why it fails?

Thanks,

Ashis

developerone
Contributor
0 Kudos

Hello Ashish,

I'm confused. Is this an oDATA call or RFC. If you are making an oDATA call where does RFC_PING come into picture? Also, you'll have to check the error log(/IWFND/ERROR_LOG transaction) in your gateway system to figure out what went wrong with the oDATA call.

Thank You,
Sai