Skip to Content
Jun 01, 2020 at 10:32 AM

POST multi part from SAP Cloud Platform, ABAP Enviroment

164 Views Last edit Jun 01, 2020 at 03:57 PM 3 rev


I am trying to POST PDF document content to AWS S3 using SAP Cloud Platform ABAP Environment. I am facing few issues in doing the same. Below are the steps I am trying to achieve.

1. Read the document from S3 using the GET method which I am able to achieve successfully. Now I have the PDF content in my response (response->get_binary() and response->get_text() ).

2. Trying to POST the same document content to S3. This is where I am facing some challenges. As per the API documentation, the required parameters for upload are 'Authentication', 'Path' and 'File' (formdata).

I need to pass the file content using multi part.

Basically I am trying to achieve the same requirement as in ABAP Cloud Environment.

Any pointers will be very helpful.