on 08-05-2010 2:25 PM
Hi Experts,
My scenario is Idoc to Mail scenario..
In thie scenario the mail should be delivered to the specific DL (Group Email-ids,DL-> Distribution List) with dynamic subject line so while delivering the mail based on the contents of the Idoc the subject line of the mail will be changed,
For this reason we need to use Mail Package, if so then how to define the structre in the email adapter.
required output in mail is as follow:
Subject LIne: Purchase Order Number;
Email Body :
-
Delivery Date:
-
Ship Date:
-
PO Number:
-
Desc:
-
Qty:
So the email body has 5 attributes as delivery date, ship date, PO number, desc, qty;
The email body should go as an attachment with the name "Company Name"+PONumber.csv
Can anyone throw some light regarding to this scenario..
Thanks,
--Kishore
Hi
For Mail package use this structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Subject</Subject>
<From>nameaATcompany.com</From>
<To>namebATcompany.com</To>
<Reply_To />
<Content_Type>text/plain</Content_Type>
<Content>
payload
</Content>
</ns:Mail>
alternativ you can use Adapter-Specific Message Attributes like SHeaderSUBJECT
take a look at this blog as well:
/people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.