cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to Mail Scenario

former_member238007
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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