on 02-25-2013 6:39 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
regards,
Robin
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
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
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
Hi,
Please go through the below link for steps.
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.