Skip to Content

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 29, 2016 at 08:41 PM

    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



    Add comment
    10|10000 characters needed characters exceeded

    • 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.



      draw1.JPG (49.1 kB)