cancel
Showing results for 
Search instead for 
Did you mean: 

sending abap proxy (binary file) to ftp server

former_member229036
Participant
0 Kudos

Hi all;

i have one question, abap proxy (binary file) to ftp server scenario.

i know how to upload binary file(pdf) by using abap proxy coding,

but i don't know how to extract binary file(pdf) data in order to put binary file to remote ftp server.

do you know how to mapping or ico configuration ?

thank you in advance

Benjamin

isuru_fernando24
Explorer
0 Kudos

Hi David,

I would use Base64 conversion to transfer file from proxy to sFTP.

Cheers!

Accepted Solutions (0)

Answers (8)

Answers (8)

sugata_bagchi2
Active Contributor
0 Kudos

I think this another thread by you on same topic - please check the code I provided.

https://answers.sap.com/questions/12638162/base64-string-to-put-binary-file-into-ftp-server-u.html

arrezende
Active Participant
0 Kudos

Hi Benjamin,

Maybe the adapter module will lower the help, it does the encoding / decoding of files...

https://blogs.sap.com/2015/03/25/formatconversionbean-one-bean-to-rule-them-all/

former_member190293
Active Contributor
0 Kudos

Hi Benjamin!

You could use simple DT/MT for outbound message, containing, for example, target file name and any simple DT/MT for inbound message (since PayloadSwapBean is used). In message mapping you set Dynamic Configuration attribute for file name and use PayloadSwapBean in receiver adapter:

https://help.sap.com/viewer/2462a9a468b1491b91fda1923d23f667/7.5.3/en-US/2ebf37423cf7ab04e10000000a1...

In receiver adapter's settings you should also enable using ASMA attributes.

Regards, Evgeniy.

vinaymittal
Contributor
0 Kudos

Hi Benjamin Kim,

Read the incoming attachment in SAP PI Java mapping into InputStream and at the same time use setAttachment() with the same binary payload to send it to the target.

Regards

Vinay

former_member229036
Participant
0 Kudos

Hi ! suru Fernando

please tell me how to configure in target DT , MT for using Base64 conversion to transfer binary file in receiver FTP adapter

Do you know how to make base64 in abap function and how to configure Target DT to transfer binary file in receiver FTP adapter?

Thanks

David

former_member229036
Participant
0 Kudos

Hi! Evgeniy Kolmakov

please tell me how to configure in target DT , MT for using PayloadSwapBean in receiver FTP adapter.

is there no mapping skill for using PayloadSwapBean?

sugata_bagchi2
Active Contributor
0 Kudos

Hi David,
How many pdf files you are planning to send to the target FTP/SFTP in one message? please check this link -

https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=240189709

Thanks

Sugata

former_member190293
Active Contributor
0 Kudos

Hi!

And I would use attachment in proxy outbound interface and PayloadSwapBean in receiver FTP/SFTP adapter.

Regards, Evgeniy.