cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to email attachemnt interface

Former Member
0 Kudos

Hi Gurus,

I have a interface where i am getting data through proxy.

The requirement is to convert the data from proxy into flat file and send this file as email attachment to X- number of people.

Can you please let me know if this can be achieved by a single interface or  there is no other option then split?

I know i can achieve the solution using following.  But i am looking to achieve this using a single interface.

Proxy -Pi - File

File -PI -email

Thanks.

Accepted Solutions (0)

Answers (4)

Answers (4)

anandvithal
Active Participant
0 Kudos

Hi Sam,

You can do this in one interface by using a java mapping .Convert the proxy message XML payload into flat file in java mapping itself by using an XML parser. Create an attachment in the Java mapping for the flat file and finally send the mail using mail adapter.(dont forget to check keep attachments in receiver mail adapter)

check this thread http://scn.sap.com/thread/3381913

Thanks,

Anand

former_member223322
Active Participant
0 Kudos

Hi Sam,

This can be achieved in a single interface Proxy->PI->Email. You can use the PayloadSwapBean to convert the proxy payload in to a file attachment in email. Check the blog below.

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

~Srini

ambrish_mishra
Active Contributor
0 Kudos

Hi,

You can use the same interface to send data to multiple people on the same SMTP server. In "TO" field of the Mail package API, you can have multiple addresses

Hope it helps!

Ambrish

rajasekhar_reddy14
Active Contributor
0 Kudos

You could achive this using one interface,develop proxy interface to generate File outpout then place it on NFS then use PI Interface to send an email,even without PI you could achive this using Program it self.