cancel
Showing results for 
Search instead for 
Did you mean: 

Send mail with 1 to n text attachments

Former Member
0 Kudos

Hello Gurus,

I have a special requirement.  I have an Abap program for extracting data in 1 to many text files.  Those texts files are differents following the receiver.

Now I have to send sometimes for some receiver, the result of the extraction by mail.

The client requires the usage of PI for monitoring reason.  All the interfaces are made thru PI.

My question is : how can I make this.

I have created a call proxy to PI for passing the receiver mail data and text, but how can I pass the attachment(s), already saved on SAP Server, and can I add those attachements to my mail.

Thanks in advance for your help.

JC

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi JC,

Use this blog by to send the file to PI as an attachment to the proxy call (don't forget to like it or rate it if you find it useful).

Once the attachment is there, simply mark "Keep attachments" in the receiver mail CC and it will be attached to the e-mail. See more details in SAP Help:

http://help.sap.com/saphelp_nw70/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm

Regards,

Greg

iaki_vila
Active Contributor
0 Kudos

Your choice is better, blog bookmarked!

Regards.

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Jean Claude,

You can use an UDF to generate the attachments, check

samuel.chandrasekaran2's blog http://scn.sap.com//people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-buildi...

(Also, don't forget to "like" or rate (or both) the blog in case you find it useful.)

Regards