cancel
Showing results for 
Search instead for 
Did you mean: 

Multi record flat file to multiple emails

former_member187447
Participant
0 Kudos

Hi

I have scenario where in the source structure looks like the following. Is it possible to split map it in such a way that we have multiple emails for each record.

HDR (Ist Occurance)

ITM1

ITM2

HDR(2nd occurance)

ITM1

ITM2

ITM3

HDR3 (3rd occurance)

ITM1

So, is it possible to do a file to Email scenario wherein we can generate individual emails for each record set of HDR and its ITMS

like

EMail1:

HDR (1st occurance)

ITm1

ITM2

Emails2:

..

...

Emails3

...

...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kalyan,

Did u try the approach suggested by Aravind....faced any roadbloack ?

former_member187447
Participant
0 Kudos

Yes i tried Arvinds approach, But it failed in the Receiver Email channel with the following error

Message processing failed. Cause: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag: Mail, but found Messages at state 1

FYI i am doing File to Email scenario.

Former Member
0 Kudos

Hi,

You can achieve this by changing the occurance of the target message type in the MessageMapping in the Signature tab.

In the Signature tab of the message mapping change the occurance of the target message type to 0..unbounded from 0..1

Then mapp your HDR Node to the target message Type node.

By this you can get as many mails as the occurance of the HDR

Regards,

Aravind