How to Upload Attachments to SAP Using a Composer Solution
1. Create a script for a T-code using Transaction/Studio product.
2. Import the script into Composer.
3. When using a script that includes uploading a document, the file location and required metadata fields are shown in ‘Edit Fields Mappings’ for the script. Note that both ‘Attachment_Location’ and ‘FILE_BYTES’ need to be mapped to ‘FILE_BYTES’.
4. Also, change the binding of the "Attachment location" to File Bytes under properties of the field.
5. Make sure to add an Activity or approval node to run the web service.
Multiple file attachment upload to SAP via form:
You can only do one document per attachment control, so if you need to attach 2 attachments, you will need 2 attachment controls and 2 versions (mappings) of the attachment script.
Please find the attached solution for reference.