on 12-07-2010 9:11 AM
Hello,
I am searching for information about this issue:
An incoming message from a WebService needs to be mapped to a target structure . SAP PI has to create a file (csv) and add it as an attachment to a mail.
So this is the process:
WebService -> Mapping -> File -> Attachment in eMail
I am not sure if this is possible to move the target structure as a csv-file attachment into the eMail.
Please can anybody help!
This is really appreciated!
Best Regards
Dirk
SAP PI has to create a file (csv) and add it as an attachment to a mail.
Make use of the standard module MessageTransformBean: http://help.sap.com/saphelp_nw04/Helpdata/EN/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm
use this module in your receiver email channel (check example Conversion in the Receiver Communication Channel )....this will convert XML into CSV.
In the email channel make use of the Keep Attachment option to get attachment....this will attach the content as attachment....let us know if this works.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dirk,
Ref the below blogs:
/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Hareenkumar!
The first link seems to be the right one to help me!
So the solution should be to use a Java mapping to generate the required file structure
and add it then as an attachment to the mail.
And thank you, Abhishek!
I will try this first as it seems to be easier to implement for me.
But this needs some weeks as we are analyzing requirements currenly and need to find out what is possible with PI and what is the effort for impolementation!
So I will come back later!
Regards
Dirk
Edited by: Meinhard Dirk on Dec 7, 2010 12:09 PM
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.