cancel
Showing results for 
Search instead for 
Did you mean: 

Call receiver mail adapter from message mapping

Former Member
0 Kudos

Hi,

Can we call the receiver mail adapter directly from the message mapping in PI (7.3). Say our scenario is file to file and in between from the mapping, I want to trigger an email for which I can configure the receiver mail channel and call it from mapping (somewhat like calling the RFC\SOAP\JDBC channel in case of a lookup).

I'm aware that there are other ways by which I can achieve this, mutimapping or directly trigger mail using the java mail api but want to knwo if the other option is also possible.

Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Shiladitya,

Did you get any possible solution for this. I also have the same requirement and have raised the discussion (http://scn.sap.com/thread/3486824) but no good solution so far.

The issue is Mail adapter by itself attaches the payload in mail. How can I stop this and send just a mail without any attachment.

regards,

M. Manohar


manigram
Active Participant
0 Kudos

Hi,

After creating mail receiver communication channel, you can that channel in mapping level by java coding. it is possible.

Regards,

Manigandan

Former Member
0 Kudos

Hi,

Could you please provide me the sample code or link as I could not get anything on this in scn.

Regards

iaki_vila
Active Contributor
0 Kudos

Hi Shiladitya,

Check Santhosh Kumar V's wiki: http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=90570965

You have there an example with UDF and other with java mapping.

Regards.

manigram
Active Participant
0 Kudos

Hi,

http://help.sap.com/javadocs/nw04/current/pi/com/sap/aii/mapping/lookup/lookupservice.html

Class to implement the channel in java mapping

Regards,

Manigandan

baskar_gopalakrishnan2
Active Contributor
0 Kudos

There is no graphical mapping lookup for mail similar to jdbc or rfc. You have to handle as you mentioned either via java mapping or udf.

Please search scn for udf or java mapping mail code.

Harish
Active Contributor
0 Kudos

Hi,

you can trigger the receiver mail communication channel from the message mapping. you need to write the UDF to call the communication channel.

Regards,

Harish