Skip to Content
0

Attachment using ODATA service Issue

Dec 16, 2017 at 06:41 AM

89

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Arjun Biswas Dec 18, 2017 at 09:39 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Ankit Maskara
Dec 22, 2017 at 05:45 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded