on 08-21-2014 3:54 PM
Hello,
I am formatting the body of the receiver mail. The body of the email should look like below.
Dear PI User,
The following Interface has been successfully processed by the middleware PI system.
Please do not reply to this email. If you need more information please contact the Super User.
Regards,
SAP PI Team
The mapping looks fine and My source MT looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
</ns1:MT_Mail_Reply>
The mapping works fine without errors and I get the target message as below after mapping-
<?xml version="1.0" encoding="UTF-8" ?>
</ns1:Mail>
t
The context of MESSAGE has been changed to Reply.
In the adapter I still get the following error.
Delivery of the message to the application using connection Mail_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 end tag: {http://sap.com/xi/XI/Mail/30}Mail, but found {}Content at state 1
Please advise !!
Thanks,
Teresa
**I changed the receiver mail adapter to not use Mail package and I receive an email without errors with the Content as mentioned above. **
Hi Teresa,
I think the problem is that you are using multiple "Content" tags. Have you tried to use only one?, you can concatenate all your text.
Check the page 3 of this document to know how introduce new-line character http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5...
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use Java util scanner class as mentioned below. Try the simple udf to handle this..
http://www.tutorialspoint.com/java/util/scanner_nextline.htm
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.