cancel
Showing results for 
Search instead for 
Did you mean: 

Sender SFTP channel - file attachment

former_member550907
Participant
0 Kudos

Hi!

Necessary to make the scenario SFTP-> PI-> Proxy, so that the channel SFTP takes all the files that come in the ftp folder and attach it as a file attachment. Files can contain any format pdf, txt, doc, zip, etc.

Does anyone have any idea?

Best regards,

Rinaz

Accepted Solutions (1)

Accepted Solutions (1)

former_member550907
Participant
0 Kudos

HI guys

Thanks everyone for their help!

We solved the problem.Created the adapter module

link:

Answers (2)

Answers (2)

sahithi_moparthi
Contributor
0 Kudos

Hi,

Please try below option:

Regards,

Sahithi

former_member550907
Participant
0 Kudos

Hi Sahithi

Not work

sahithi_moparthi
Contributor
0 Kudos

Hi,

Sorry the above option works for file to file.

You can acheieve this using Java Mapping. Please find the below link.It may help you:

http://scn.sap.com/thread/1918880

http://scn.sap.com/thread/3166152

Harish
Active Contributor
0 Kudos

Hi Rinaz,

you need to pick all the files in one message or it can be done with different messages?

we can have additional file option in SFTP from SP3 onwards refer the below blog

SFTP Adapter


Multiple Directory Support

Multiple directory support and exclude mask functionality has been added (same as File Adapter)


regards,

Harish

former_member550907
Participant
0 Kudos

Hi Harish

That's not what we want...

question:

How does attach files on adapter level (sender adapter)? I mean i don't want to load it in payload as binary data, i want to attach it as attachment.

Best regards,

Rinaz

Harish
Active Contributor
0 Kudos

Hi Rinaz,

For this req. we need at least one main payload to trigger the mesasge and all other files can be pulled as an attachment. The below sap doc is having details about this

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404ee507-3fbc-2e10-00bc-be90ab28d...

regards,

Harish