cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI/PO- REST to File - Download file from URL which comes in a field

0 Kudos

Hello Experts,

I am on PO 7.5 and working on a REST to File scenario.

Requirement: I need to download a file from a URL .The URL is sent in a field through the REST Call. See below example.

Example:

<Record>

FileName> TestFile1.pdf <FileName

URL>www.test.com/TestFile1.pdf <URL

</Record>

<Record>

FileName> TestFile2.pdf <FileName

URL> www.test.com/TestFile2.pdf <URL

</Record>

Desired Result: Download the 2 files (TestFile1.pdf and TestFile2.pdf) from the URL's from the URL field and drop it off in an FTP/SFTP server.

I am not a java expert/or an expert with module configuration. Can we do this using an UDF in the graphical mapping.

I see the support attachments option in the REST sender attachment. I am not sure if that is helpful for my scenario.

I checked all the blogs and I was not able to find one that suits my requirement.

Can please you guide me through the configuration process.

Thanks,

Chan

0 Kudos

Thanks Vinay for your input. Sorry for the late reply.

My requirement was exactly to download the files from S3 buckets and it is what Alexander mentioned below in his blog.

It worked without any issues.

Thanks,

Chan

View Entire Topic
arrezende
Active Participant
0 Kudos
Hello,

I recently created a post explaining how to download a file from amazon, it seems to be a scenario close to what you presented.

Or try using the FormatConversionBean module adapter that makes encoded/decoded files ... https://blogs.sap.com/2015/03/25/formatconversionbean-one-bean-to-rule-them-all/