on 2025 Mar 21 3:39 AM
Hi All,
I am using the GET API from the attachment service API_CV_ATTACHMENT_SRV to retrieve attachments from a work order in the S4 public cloud environment. I provide the parameters DocumentInfoRecordDocType, DocumentInfoRecordDocVersion, DocumentInfoRecordDocNumber, and DocumentInfoRecordDocPart. Although I get a response but it only includes the attachmentcontenthash, the Content field in the response is not being populated. Anyone has an idea how to convert this SHA256 value to Base64 or XSTRING?
Thanks in advance.
Request clarification before answering.
From your Query it is very evident that you are more concerned about the actual content of the attachment .
For the same HDM provides an attachment download option via the get API , the URL for which has been posted here.
https://api.sap.com/api/API_CV_ATTACHMENT_SRV/resource/get_AttachmentHarmonizedOperationSet_LogicalD...
You would be getting a URL and a valid token for the download of files.
Also Please note it is highly insecure to provide a content download option directly in API parameters from any kind of document. the above approach provides the flexibility to even handle larger files as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.