on 2024 Aug 30 4:13 PM
I have a requirement for an application I've developed where, upon clicking an attachment, the camera opens, allowing the user to take a picture and send it to the SAP S4 system. The issue arises when sending the data to SAP: although I'm passing it in Base64 format and it is stored correctly against the document number attachments, attempting to open the file results in a "file not supported" error.
our landscape application developed in Neptune open edition-->goes through API suite to S4
Request clarification before answering.
Please check out my example https://github.com/gregorwolf/bookshop-demo/blob/main/tests/app/api-cv-attachment.http on how to use the API. You can't directly attach the base64 string. The image must be attached as a binary body. Maybe also my sample project https://github.com/gregorwolf/ZBPSERVICE also can help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I am using API_CV_ATTACHMENT_SRV V1.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your question, @VijayDaniel.
You might prefer for the user to take a picture in a BTP web app or even simply use their mobile phone to send the picture to your app's storage space using any of the built-in transmission capabilities. That way you could focus on storing the image in a suitable corporate file folder (a private cloud file store?) and send a hyperlink from there to the proper space in S/4 from where users with respective authorization can access the image file in the folder when clicking on the attachment icon.
The SAP system itself does not make for a proper file system for storing images. That is not its purpose and design. It might do a poor job and yet be rather expensive for the amount of data. When you do your research you might find proper (online, private) data storage fit for purpose at a fraction of the cost.
If this addresses the core of your question, please mark the response accordingly. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
31 | |
10 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.