cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Subject based on Payload

former_member201264
Active Contributor
0 Kudos

Hi Gurus,

I want generate two emails one for Failed Records and one for Success Records using a value in the tareget field.

I have only one Target message but subect has to be changed based on value in the status field of target structure.

if Status value 'S' then the subject is SUCCESS  Records and if status is E then subject is ERROR Records.

Can I get that value to my eMail Subject based on Payload?

Regards,

Sreeni.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Sreeni,

Use the XSD mail pacakage for this, you can manipulate the subject of the mail within the mapping based on the content of a source structure.

You may follow this thread for a direction on how to proceed further - http://scn.sap.com/thread/374913

Cheers,

Hanish John(HJ)

former_member201264
Active Contributor
0 Kudos

Hi All,

I achieved this by using Multi Mapping.

But I got other issue and is going on in SDN with the below Discusion:

Getting eMail Receiver attachment without Payload Data

So I am  Assuming this is Answered.

Regards,

Sreeni.

Former Member
0 Kudos

Hi,

Instead of depending on the target value for condition..try to identify the source field which can provide you the condition for success/failure so that you can have keep a condition at receiver determination itself

HTH

Rajesh