cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering mail if the record is not available by mail adapter.

Former Member
0 Kudos

Hi Experts,

I need to trigger a mail if a field = "value" . I am using standard mail XSD of SAP.

I defined as external definition.How do i trigger this in message mapping.Can any one tell me the logic to apply.

i am using multi mapping Here i am uploading the structure. I created Mail receiver CC.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Suhale,

Make the signature of mail MT to 0..unbounded, have the condition map at message node level, Once condition is true message shall be created, else mail MT (or ED) shall not be created.

Regards,

Pranav

Former Member
0 Kudos

Hi Pranav,

Success grand success.Thanq very much.I thought there will be more i need to create.thanq.

Regards,

Suhale S.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Amit,

The problem is solved. I used mail package in CC. It just went good.Thanks for your reply.

Regards,

Suhale S

Former Member
0 Kudos

Hi Amit,

What woul be the module key for TransformBean.

Regards,

Suhale S.

Former Member
0 Kudos

Hello,

U can use any name...may be use "Transform" and make sure the module key name used in "Module Configuration" (Module Key column) is the same which u have defined in "Processing sequence".

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Suhale,

can you explain your scenario in detail ?


Cheers

Hidayat

Former Member
0 Kudos

Hi Hidayat,

my scenario like this if Payroll area = 10 then i need to trigger mail by using receiver mail adapter.

I am using standard mail XSD which is provided by SAP.I created receiver mail adapter.

For this what i need to define here in message mapping.

Regards,

Suhale S.

ambrish_mishra
Active Contributor
0 Kudos

HI Suhale,

Are you using multi-mapping for this scenario ? What if the Payroll area is not 10.

For triggering the mail, you need to populate the mail package (XSD).

Populate fields Subject, From, To and Content with the mail text. Content type is  text/plain.

Hope it helps!

Ambrish

PS: Off course this will work when receiver mail adapter is configured correctly.


Former Member
0 Kudos

Hi Ambrish,

Thanq very much.It sent mail. Actually this one is my first scenario for Mail adapter.

Regards,

Suhale S.

ambrish_mishra
Active Contributor
0 Kudos

There is always a first time

Former Member
0 Kudos

Hi Ambrish,

Again I got a problem.How do i get the Content from message payload.I need to place the content as body in the mail but its coming as attachment.Please help me.

Regards,

Suhale S.

Former Member
0 Kudos

Hi Suhale,

Uncheck the option Keep attachments in mail receiver channel.

Regards,

Pranav

Former Member
0 Kudos

Hi Pranav,

I didn't check that.By using XI payload as message protocol i didn't get any mail.

I want to get From,to,subject and content from XI payload itself.

My requirement is to get content as mail body.

Regards,

Suhale S.

Former Member
0 Kudos

Hello,

In ur receiver mail adapter under module tab -> use MessageTransformBean module (just before standard mail adapter module)

and use below parameter:

Transform.ContentDisposition  =  inline

Thanks

Amit Srivastava