Skip to Content
avatar image
Former Member

Attachment using ODATA service Issue

I have developed an ODATA service for uploading documents to BDS ( standard approach) for CRM application using update stream method ( PUT Method ).

Upload / Download service is working good when tested with GATEWAY Test tool in SAP ECC, TCODE : /IWFND/MAINT_SERVICE.

I am passing the file using Add file button in gateway tool, and i am able to view and download file correctly from CRM WEB GUI.

BUT when consuming the service from SAP HYBRIS, they can upload the file , but when opening / downloading the file it does not open correctly.

When debugged found that the encoded format recieved recieved when uploaded from Gateway tool ( add file button) and one recived from sap hybris ( front end application)

is totaly different, need urgent help to resolve the issue.

any help will be appreciated

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 18, 2017 at 09:39 AM

    Hi Arjav Gandhi,

    Debug the DPC_EXT class method which you redefined for uploading the documents, there is some change in format happening while uploading the data. I too faced the same problem some time ago for a different requirement. My program was working after I started storing the type in another field in my OData. You, could try the same.


    Arjun Biswas

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 22, 2017 at 05:45 PM

    Are you correctly setting the content disposition header which confirms to browser the file name and format.

    Add comment
    10|10000 characters needed characters exceeded