Skip to Content

SAP XI - Upload CSV file using File (NFS) Sender and HTTP_AAE Receiver

Hi Experts,

Need your help on building an interface to transfer a CSV file to our partner's server using HTTP POST request.

Please see Postman screenshots below of what we need to replicate in SAP XI:

Body = form-data with Key as data_file and Value as the CSV file

Raw Data:

So far I have the following in PI/XI:

Sender Adapter - File System (NFS)


Receiver Adapter - HTTP_AAE POST

I have ticked Set Form and Set Multipart because I read that to do an HTML Form-Based File Upload this is needed, but I am not sure what to put in the Main Payload Parameter Name as well.

Hope you can guide me on how to replicate the Postman HTTP POST request. Our partner is specific on having the name as data_file in Content-Disposition.

I've been experimenting on using PayloadSwapBean but not sure if this should be done in the Sender or Receiver or if it is necessary.

PS: I'm an ABAP resource so I don't have much knowledge in XI just implemented simple interfaces before.

Thanks in advance.

Regards,

Aljay

1.jpg (30.0 kB)
1.jpg (39.5 kB)
1.jpg (97.3 kB)
1.jpg (105.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers