cancel
Showing results for 
Search instead for 
Did you mean: 

FM to upload File to CRMD_ORDER

Mahmoud-Farag
Participant
0 Kudos
458

Dears,

I have a task that requires me to upload a file (image, pdf) to CRMD_ORDER.

What I have found is the image name is saved in CRMORDERLOIO after getting it from SKWG_BREL. Also, I have found a class CL_CRM_DOCUMENT but it does not update in the CRMD_ORDER itself.

The task itself I want to send attachment document in CRMD_ORDER from a web service

Best Regards,

Accepted Solutions (1)

Accepted Solutions (1)

Mahmoud-Farag
Participant

Thanks: sandra.rossi , thalesvb

I have debug CRMD_ORDER, I found the solution is to upload the file to application server then user the path of the application server to class method of CRMD_ORDER it`s work for me ,
Ref:
https://answers.sap.com/questions/10249889/get-url-for-a-file-in-application-server-in-al11.html

https://blogs.sap.com/2013/11/29/how-to-create-attachment-for-your-business-object-via-code/

Mahmoud Farag

Answers (0)