cancel
Showing results for 
Search instead for 
Did you mean: 

FILe 2 IDOC & MAIL adapter

deva_gembali2
Participant
0 Kudos

HI Experts,

   In FIle --> IDOC sceanrio, in source file, there field called activity type, based on activity type, i need to trigger mail.

So, how to do this interface ? multimapping ? BPM ? what are the steps required ?

deva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you can use two receivers.

File      ----> IDOC Receiver

           (condition activitytype = "??")-----> Mail Reciver

You will have than two mapping. The original one, which create the IDOC.

And a new one to create the Email.

regards.

robin

deva_gembali2
Participant
0 Kudos

Hi Guys,

    Once i sent e-mail, e-mail format is not in text . And, it is sent as an attachment. Please let me know .

Former Member
0 Kudos

Hi,

for that you can use mail package. You need to map your content in this format:

XI payload with mail package:

<?xml version="1.0" encoding="UTF-8"?>

<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">

  <Subject>Subject</Subject>

  <From>namea@company.com</From>

  <To>nameb@company.com</To>

  <Reply_To />

  <Content_Type>text/plain</Content_Type>

  <Content>

This is the content.

  </Content>

</ns:Mail>

for all possibility of mail adapter check:

http://help.sap.com/saphelp_nw73/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm?frameset=...

regards,

Robin

deva_gembali2
Participant
0 Kudos

Hi Robin,

   If i want to mail package, thre is no option for 0-unbound. so i need to setup manual data structure . if i do manual data structure, still can i use ?

deva

Former Member
0 Kudos

Hi Deva,

what you mean with no option for 0-unbound? you want to generate several mail out of one source message?

did you try just to chance the occurrence of the mail package message?

regards,

Robin

deva_gembali2
Participant
0 Kudos

HI Robin,

    It looks good. Is it customized data type ? or did u use Mail package as external definition ?

for e-mail as text, we need to use mail package which is external definition. If i change xsd file as 0-unbound which is giving error..

As per you mapping, it looks you developed as a customized data type , still can i use mail package option for text/xml ?

deva

Former Member
0 Kudos

Hi,

as long you have the Mail Package format the System don't care if you create that with your own datatype or if you import a XSD.

The solution of my mapping should work with XSD as well.

You have to select the external message in the signature of your target message and set it to 0..unbounded.

regards,

Robin

deva_gembali2
Participant
0 Kudos

Hi Robin,

    I already tried in different way and same as to you.

I converted to 0-outbound for receiver mail structure but giving error as below

"Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: 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: {http://sap.com/xi/XI/Mail/30}Mail, but found {http://sap.com/xi/XI/SplitAndMerge}Messages at state 1"

refer this same..

" https://scn.sap.com/thread/1765831"

Have you tested 0-unbound text mail ?

Deva

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

As you are having IDOC at target side -->You shouldn't opt Multi mapping.

Instead use ERD and route to target systems based on o/p of condition.

Regards

Venkat

deva_gembali2
Participant
0 Kudos

HI Venkat,

   What is ERD ? can you please in detail ?

Deva