How to fetch image from DMS in ODATA
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
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