cancel
Showing results for 
Search instead for 
Did you mean: 

Upload Images into SAP DMS using Gateway/UI5

umeshsingh
Explorer
2,598

Dear SAP Gurus,

We have a requirement to upload images into SAP DMS using UI5 application. I've checked on UI5 and we can pass a File object as shown below to Gateway. I'm using

There are many threads on passing images to Gateway but I'm unable to figure out how can we use the Image object in Gateway to create a SAP DMS document. I checked this thread that talks about uploading PDF in DMS but does not explain on how to create the document in DMS.

Is there any way to create documents into SAP DMS using Image as BINARY/BASE64 OR XSTRING/STRING. Please note I cannot pass image file location as C:\Image\sap.jpg

Regards,

Umesh

View Entire Topic
umeshsingh
Explorer
0 Kudos

Thanks for your responses. I've found the solution on uploading a binary image into SAP DMS.

Solution:

1. Upload the file needs on App Server (AL11)

2. and then use the server file path to upload documents using standard BAPI

3. Delete the file from AL11 after successful upload into SAP DMS

Cheers,

Umesh

durgaprasad_sharma2
Participant
0 Kudos
Dear Umesh i did the same thing file is getting placed in Al11 when using standard Bapi to upload in DMS document number is getting generated but file is getting stored as zero kb in DMS can you please help with detailed solution my object is pending because of this error,