Hi All,
I’m developing an app using SAP Build Apps to create a Purchase Requisition, and I need to add multiple attachments to the Purchase Requisition Item using the API_CV_ATTACHMENT_SRV API.
I have a few questions regarding this:
-
In SAP Build, it seems this can be achieved in two ways:
- Using a Data Variable and the Create Record function
- Using an HTTP request
The Create Record function seems to be the prober way. However, I keep encountering the error: “Attachment name cannot be empty.” The issue is that there is no field explicitly named “Attachment Name” in the API.
Should this instead be handled via an HTTP request? -
SAP Build provides a “Convert file to base64” function, but the output appears to be an unreadable base64 string. I’ve tested it with multiple online base64 decoders, but none of them can process it correctly. Is any additional modification required before sending it to S/4HANA?
I would really appreciate any guidance on resolving these issues. If anyone has a working example of this implementation, that would be extremely helpful.
Thanks in advance for your support!
Best regards,
Machiel