cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch image from DMS in ODATA

amber_garg
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

steven_chen2
Explorer
0 Kudos

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

amber_garg
Active Participant
0 Kudos

Hi Steven,

Thanks for your reply. When i pass the mandatory parameters to the FM BAPI_DOCUMENT_GETDETAIL2 from DRAD table , i get the FILE_ID for the particular file.

This File_ID and the other mandotory parameters when i pass in CVAPI_DOC_CHECKOUTVIEW , I dont see any paramter related to content getting filled. So I am not able to get any binary content of the file.

Regards

Amber

Answers (0)