Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to fetch image from DMS in ODATA

Hi All,

I am able to fetch an image from Mime Repository and send it as XML output in an odata service (using  cl_mime_repository_api=>get_api( )->get )

Now my requirement is I need to fetch the image from DMS instead of MIME repository. The image of DMS will be basically linked to Article Master Table. I am not able to find the methods/approach to fetch an image from DMS. Kindly suggest if someone has any idea on this

Thanks & Regards

Amber

replied

Do the following:

select from DRAD table to find matched document by material number.

call FM BAPI_DOCUMENT_GETDETAIL2 first to get all attached files of the document

call FM CVAPI_DOC_CHECKOUTVIEW to get the binary content of the one file

regards,

Steven

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question