Skip to Content

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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

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

    Regards,

    Arjun Biswas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.