Conversion Agent - Mail Adapter integration issue
Hi Experts,
I have a Conversion Agent Serializer for generating a text file on the receiver side.
The Serializer works perfectly with the File Adapter on the receiver
side and generates the text file.
Now I have a requirement to send this file as an attachement in an email.
When I include the Serializer Module in the File Adapter
(Receiver), the email is not triggered.
The Communication Channel Monitoring shows the following:
2007-04-29 07:34:55 Success Message successfully received
by messaging system. Profile: XI URL:
http://bibox01:50000/MessagingSystem/receive/AFW/XI Credential (User):
PIISUSER
2007-04-29 07:34:55 Success Using connection
Mail_http://sap.com/xi/XI/System. Trying to put the message into the
receive queue.
2007-04-29 07:34:55 Success Message successfully put into
the queue.
2007-04-29 07:34:55 Success The message was successfully
retrieved from the receive queue.
2007-04-29 07:34:55 Success The message status set to DLNG.
2007-04-29 07:34:55 Success Delivering to channel:
FIle_Mail
2007-04-29 07:34:55 Success MP: entering
2007-04-29 07:34:55 Success MP: processing local module
localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean
2007-04-29 07:34:55 Success TransformationName:
TravelexBAI_Serializer
2007-04-29 07:34:56 Success CM_Transformation_succeeded
2007-04-29 07:34:56 Success MP: processing local module
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
2007-04-29 07:34:56 Success Mail: message entering the
adapter
2007-04-29 07:34:56 Success Mail: Receiver adapter entered
with qos ExactlyOnce
2007-04-29 07:34:56 Success Mail: calling the adpter for
processing
2007-04-29 07:34:56 Success Mail: call completed
2007-04-29 07:34:56 Success Mail: continuing to response
message 4ee64c80-f5d0-11db-8932-000bcdcf4920
2007-04-29 07:34:56 Success Mail: sending a delivery ack
2007-04-29 07:34:56 Success Mail: sent a delivery ack
2007-04-29 07:34:56 Success MP: leaving
2007-04-29 07:34:56 Success The message was successfully
delivered to the application using connection
Mail_http://sap.com/xi/XI/System.
2007-04-29 07:34:56 Success The message status set to DLVD.
The Audit log above states that the Serializer was executed successfully
and the the Mail Adapter was called.
The Message Content shows the Payload being generated correctly. But the
Email is still not triggered.
Could someone please provide some help with pinpointing the issue over here.
Michael, are you there??
Thanks & Regards,
Shobhit
Hi Ahmad,
The mail adapter works perfectly fine when I remove the Conversion Agent module from it. And the Conversion Agent module works perfectly fine with the File Adapter on the receiver side. So that authenticates that both the objects (Mail Adapter - receiver & Conversion Agent Serailizer module) are configured correctly as individual objects.
I have used the following parameters in the receiver mail adapter:
PARAMETERS
Transport Protocall: SMTP
Message Protocall: XIPAYLOAD
URL: smtp://xyz.com
Content Encoding: Base64
Keep Attachments: <TICKED>
MODULE
Processing Sequence==>>
Module Name: localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean
Type: Local EJB
Module Key: 1
Module Configuration==>>
Module key: 1
ParameterName: TransformationName
Parameter Value: <SerializerServiceName>
Regards,
Shobhit
Similar Messages
-
Mail-Adapter Integration Engine Error during parsing of SOAP header
Hello,
we use XI with the mail adapter. Most of the messages are processed correctly. But sometimes I get following errors in the J2EE-logviewer:
Transmitting the message to endpoint http://<xi-host>:<http-port>/sap/xi/engine
?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.a
pi.RecoverableException: Received HTTP response code 500 : Error during
parsing of SOAP header.
Failed to transmit message 4e913640-4cc5-11dc-8560-00e000c55366(OUTBOUND)
due to com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP
response code 500 : Error during parsing of SOAP header.
Retries exceded, set message
4e913640-4cc5-11dc-8560-00e000c55366(OUTBOUND) to status NON_DELIVERED.
Has somebody else the same problem and solved it or any idea what the matter could be?
Thanks for your help
ChristianHi Reddy,
We´ve got the following scenario:
Exchange-Server (is always up)
XI Mail-ReceiverAdapter
I use IMAP4 to access the Outlook-Email-Box
Everything works fine. But some Emails aren´t processed.
I think it´s a problem between adapterframework and the integration engine?
There is no difference between the emails?
If you´ll need further informations ask me?
Thanks -
Content Conversion in Mail Adapter
Hi folks,
I would like to know whether it is possible to do content conversion when using a mail adapter.
The scenario is :
We will receive file as an attachment in a mail. We have to read the file and do the content conversion. Then we have to map the data to an Idoc.Now we r struck that how can we convert the content of the mail attachment. Please help how can we achieve this.
Thanks in advance.
Best Regards,
Noorulhi,
yes you can do it:
this document describes the same thing with jms adapter:
https://websmp101.sap-ag.de/~sapdownload/011000358700001186732005E/HowToConveModuleJMS.pdf
my weblog about e-mail attachments:
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a> -
Encoding conversion in Mail adapter
Hi,
we have a problem with the Mail adapter...
We try to send an email out of the XI to some service providers. The outgoing data is stored in an XML structure. This structure agrees with the conventions of the Mail Package format, which is used for dynamic Mail generation. The content of this Mail Package structure is a semicolon separated string, which should be attached as a CSV-File to the outgoing email. Up to this everything works fine. We get the email with the attachement out of the system, send it to a SMTP server and transfer it to a previous defined email address.
But when we open the attachement (with Wordpad, Excel,...) all german umlaut have been lost. The problem is, when transfering the Mail Package content into a File, this File is UTF-8 encoded.
Can anyone give us a hint how to convert the encoding of the attached file from UTF-8 to ISO-8859-1 (Latin-1)?
Actual we have set the following parameters on the module page:
Work sequence
1. localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain
2. localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Modulconfiguration
XML2Plain Transform.ContentDisposition attachment;filename="ABC.csv"
XML2Plain Transform.ContentType text/plain;charset=latin-1
XML2Plain Transform.ContentDescription "ABC"
I hope we get some help...
Regards,
LarsHi,
Hi
We handled the similar requirement in our project.
To convert the target file encoding UTF-8 to ISO-8859-1. For this i have used XSLT mapping, by changing the output encoding as shown in the code.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:abc.com:pi:ab:cd:FileToMail:Mail">
<xsl:variable name="vfileName" select="/a:MT_Mail/FileName"/>
<xsl:output method="text" indent="yes" encoding="iso-8859-1" media-type="TYP"/>
also set the charset value to ISO-8859-1 as shown in the XSLT mapping
<xsl:text>----mime-boundary
Content-Type: text/html; charset="ISO-8859-1"
Content-Disposition: inline
In Adapter module, add XMLAnonymizerBean
Link:http://help.sap.com/saphelp_nwpi71/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
Hope this will resolve your issue.
Regards,
Divya
Edited by: Divya_10 on Jun 14, 2011 10:20 AM -
Sender Mail Adapter ASMA issue - due to limitation of length upto 200 only.
Hi,
I have a scenario where i have to pull the emails from the mail server using sender mail adpater with XIPAYLOAD as message protocol.
Also i am setting the "Set Adapter Setting Messgae Attributes" for retrieving values form header such as SHeaderCC etc..
I use dynamic config in the mapping to get those values.
The Scenario works fine, but when the cc length is more that 200, i am not getting any value in the inbound messgae to mapping.
In SAP help, it says, "The length of the attribute value is defined by the XI message protocol. Values can be a maximum of 200 characters long. If, for example, you assign longer values in the mapping or adapter modules then this can lead to processing errors at runtime or the values are shortened to 200 characters. This shortening can also lead to a processing error. The processing error that occurs depends on the components that access the attributes."
In my case, the cc is empty if the length is more that 200.
Any idea how to tackle this issue? I think even writng the sender adapter module wont solve the issue as the any attribute lenght inthe message ehader cannot be greater than 200.
All ideas are welcome.
Regards,
Manikandan RHi
As you said this error will occur when the mail messages with header attributes containing the values more than 200 chars. By including the adapter module u2013 DynamicConfigurationBean (valuelength) in the configuration part - Advanced you can avoid this error.
Processing Sequence:
AF_Modules/DynamicConfigurationBean
Module Configuration
dc.valueLength 200
Note:
This module will remove the header attributes if the value is > 200.
Regards
Ramg -
Sender Mail Adapter Content Conversion
Hi All,
I just want to know if we can send a flat file(Rather Than the XML) with content conversion using Mail Adapter. If yes then what are all the possible ways for this.
I have tried but i am sucessful in sending the complete payload as a XML file, but i want the file with the content conversion, so that this should be able to picked by the third party systems.
Will be oblidge if any supported blog or pdf is provided for the same.
Thanks in Advance.
JayHi,
Now for the negative items, i want to send them back to business as flat file format
using the mail adapter as attachment. This will help them to process the file as for there
requirement.
Since you need to send an email message you have to use the format mentioned here: (S-UserID required)
https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
Save this file as an XSD in you local system and upload it as an External Definition in your XI server.
Develop MI based on this External Definition (IN, ASYNC)
Create an Interface Mapping with Source as the file containing Negative items and target as the above developed MI
Now you need to develop an XSLT mapping (can use StylusStudio to do it) between the source and target Message Types
This XSLT mapping has to be designed in such a way that it extracts the payload out of the Negative Items message and maps it to the target (Content) field....you need to use CDATA element of XSLT here.
In this mapping itself you can define to what email-id you want to send the message.....
Everything happens on the XI --> Business service side...so it is not the sender channel but is the receiver channel:)
Your XSLT mapping will look something like:
<Mail>
<Content>
XSLT CODE
</Content>
</Mail>
where Mail and Content are the tags in the email message format...the External definition one.....
If you are new to XSLT then refer to my answer in this thread...
Re: JAVA MAPPING
regards,
Abhishek. -
Seeburger BIC vs Informatica Conversion Agent
Hi Experts,
I am hoping I can seek some feedback on the above mentioned subject. I am going through an implementation currently which involves EDIFACT and X12 - various message types e.g. Orders, Desadv, Invoice, Order Confirmation and a few more.
As part of the implementation we need to choose a tool to do EDI to XML conversion which can also do EDIFACT/X12 validations (syntax & semantic) plus a functional Acknowledgment.
The two final options we have chosen are Informatica's Conversion Agent and Seeburger BIC (given we are using Seeburger FTP adapter for communication already).
Now to make a final decision I was hoping if some people can share their experience (s) and give some pro's and con's for choosing one or the other please?
Any comments will be highly appreciated.
regardsHi mimranacc,
I was hoping if someone can comment on Conversion Agent as well or if there is a white paper on the comparison of the two?
I have extensively worked on Conversion Agent. My experience has been real good with this tool. It is quite handy and easy to use.
Apart from unstructured messages from MS Word, PDF, Excel, PowerPoint etc, Conversion Agent can manage semi-structured formats like EDI, HL7, ANSI X12, COBOL and HIPA.
It consists of set of libraries that are deployed on PI's J2EE server and is accessed by AE during runtime.
The +ve points are -
1. Very easy to install and use,
2. Easily integrated with SAP PI,
3. No additional adapter required for transformation to / from XML,
4. No extra adapters installed on PI server, which enhances the performance,
5. Monitor Conversion Agent messages in Integration Server.
Unfortunately, I haven't worked with Seeburger BIC, so can't provide you a comparison.
Hope this helps.
Regards,
Neetesh -
How to maintain mail package option features with ASMA in mail adapter
Hi Friends,
While going through mail adapter sap notes I found that Mail package is deprecated, Can any one please give me an idea how to get these features that is header information (TO,From,Subject) with ASMA(Adapter specific message attributes)
Best Regards
RajThis [link |Sender Mail Adapter ASMA issue - due to limitation of length upto 200 only.;address your issues... using header attributes length of the field < 200 might help.
Have you seen help site
http://help.sap.com/saphelp_nwpi71/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm -
Sender Mail Adapter with SAP Conversion agent
have some1 used SAP conversion agent on attchment from XI Sender Mail adapter?
it seems to ignore the attchment of the e-mail
the sender configuration module tab is as follows :
1.localejbs/AF_Modules/PayloadSwapBean transform
2.localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean CM
3.sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
The paramters are
transform swap.keyName Content-Disposition
transform swap.keyName Content-Description
transform swap.keyValue attachment
transform swap.keyValue codeco
CM TransformationName ZIM_CODECO_VALIDATIONS
The Convesion Agnet runs prefectly when using the Conversion Agent engine
thx,Shai Rosenzweigcheck with tis may helpful for you
http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/frameset.htm
Regds
Abhishek -
Mail adapter and MessageTransformBean module configuration issue
Hi All,
I am trying to use module configuration in Receiver Mail adapter. Below is my configuration. (We are using SAP PI 7.11)
Parameter/General tab:
Message Protocol : XIPAYLOAD
Use Mail package option is selected.
Content Encoding = none
Module tab:
Processing Sequnce:
AF_Modules/MessageTransformBean : XSLT
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean : mail
Module Configuration:
XSLT Transform.Class com.sap.aii.af.sdk.xi.adapter.XSLTConversion
XSLT Conversion.XSLTFileName /tmp/GL_POST_RESPONSE_EMAIL.xsl
XSL works outside of PI . However, when i test with a message, I am seeing following errors in Runtime workbench:
Please let me know what could be wrong in the above configuration
23.03.2011 15:24:39 Information MP: processing local module localejbs/AF_Modules/MessageTransformBean
23.03.2011 15:24:39 Information Transform: using Transform.Class: com.sap.aii.af.sdk.xi.adapter.XSLTConversion
23.03.2011 15:24:39 Error Transform: Transformer Conversion1.0.0610 Error initializing XSLT Mode:; caused by javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
23.03.2011 15:24:39 Information Transform: transforming the payload ...
23.03.2011 15:24:39 Error Transform: failed to execute the transformation: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message; nested exception caused by: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of an object loaded from local variable templates
23.03.2011 15:24:39 Error MP: exception caught with cause com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message; nested exception caused by: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of an object loaded from local variable 'templates'
23.03.2011 15:24:39 Error Adapter Framework caught exception: Error converting Message
23.03.2011 15:24:39 Error Delivering 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.adapter.trans.TransformException: Error converting Message; nested exception caused by: java.lang.NullPointerException: while trying to invoke the method javax.xml.transform.Templates.newTransformer() of an object loaded from local variable 'templates'.Hi All,
Issue has been resolved. There was some minor issue in the XSL. The XSL Stylus studio was not reporting this as an error. However PI's XSL engine was reporting that error. This error message was not showing up in runtime workbench. However, when i looked at the default trace, there were few more errors. After fixing the XSL, I am able to received the email
Thanks
-Pradeep -
Mail adapter module UTF-8 to ISO-8859-1 conversion
Hi!
I've a problem with a mail attachment which is generated by an adapter module for the mail adapter. The content type is set to "Application/EDIFACT; charset=iso-8859-1" when I add the attachment, but the mail adapter ignores the charset-setting.
Therefore german "umlauts" like ü are displayed in a wrong way: ü
When I set the content, I transform it in ISO-8859-1 : attachment.setContent(edifactString.getBytes("ISO-8859-1"),"ISO-8859-1");
When I test the result of edifactString.getBytes("ISO-8859-1"), I get the String in the right character encoding, but the mail adapter seems to "fix" the encoding
I also tried to use the messageTransformBean, but it doesn't worked.
Anyone knows how to solve this issue?
Best regards,
DanielHi all!
I found a solution for this problem: First I used the TextPayload-Object for the Attachment which should be added. It seems that the TextPayload-Object has some bugs handling different encodings (handels only Unicode and deletes the charset=... setting from the ContentType).
When using the Payload object for the attachment (which handles binary data), there is no conversion to Unicode, so I get my attachment as desired (but still without the charset-setting).
Best regards,
Daniel -
Receiver Mail Adapter Issue.
Hi All,
I am running an interface from proxy to email using the inbound mail adapter. The email adapter is resutling in the following exception:
failed to send mail: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
Could any one please throw some light into this issue?
Thanks a ton! in advance.
Thanks,
Manohar Dubbaka.Hi,
Thanks for the quick response.
I am trying to send an attachment using the email. I am using
Transport Protocol as : SMTP
Message Protocol as : XIPAYLOAD
Adapter Engine as : Integration Sever
URL as: smtp://10.1.1.11
Configure User Authentication as : Check
Content Encoding as: base64
Keep Attachments as : Check
And also using the Adapter Framework modules as:
AFT_Modules/StrictXml2PlainBean Local Enterprise Bean 1
AF_Modules/MessageTransformBean Local Enterprise Bean 3
AF_Modules/PayloadSwapBean Local Enterprise Bean 2
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterpriese Bean mail
I am converting the XML message into comma separated text file using the following transformation
1 Record.beginSeparator "
1 Record.endSeparator "\r\n
1 Record.fieldSeparator ","
1 singleRecordType Record
3 Transform.ContentType text/plain;name="MGFSPECS.TXT"
2 swap.keyName content-type
2 swap.keyValue text/plain
This mail adapter was working fine, earlier. I am not sure, why this is resulting in issues ?
Truly, appreciate any kind of help in gettint this resolved.
Thanks
Manohar Dubbaka -
Hi All,
We are getting this error in Sender Mail adapter.
"exception caught during processing mail message; java.net.ConnectException: A remote host refused an attempted connect operation"
It is a (Lotus Notes) Mail to File scenario.
Used POP3, and gave the URL as POP:// ** .
I have tried pinging the server and getting a good response.
I have also tried the OS01 ans it returned a response : Program Terminated.
I am not sure if the POP3 port is enabled.
Are there any check points we are missing ?
Please throw some light on this as we need to solve this asap ..
Yashwanth
Edited by: YashwanthSVK on Aug 2, 2011 7:18 PMShabarish is right.
This seem a connectivity issue. Try to ping Mail server from your PI System and check pop3 port.
This document can be helpful for you:
http://wiki.sdn.sap.com/wiki/display/XI/SMTPConfigurationinSAPXI -
Mail Adapter and File content conversion.
I have a scenario to send data from SAP to 4 different boards. I have used a Multi mapping for this scenario. I am using Proxy for SAP to xi and SOAP, File and Mail adapter for the external connections.
Questions:
1) I need to send a mail in CSV or Excell format in one scenario. I have used AF_StrictXml2Plain Module but its not working? any thoughts?
2) In the file adapter I have to add the YYYYMMDD (current Date) to the file name? when I use timestamp i get the time too, any way of getting only date? I cant use the Variable substitution as i dont have date in my payload.
3) Receiver File content conversion:
My Message Type Looks like this
MT_XX_XX
Row
title
xxx
I have used these parameters:
Recordset Structure: Row
Row.addHeaderLine : 0
Row.fieldSeparator : ,
Row.endSeparator: 'nl'
am I doing something worng, the file content conversion doesnt work.
Please let me know
Thanks in advanceHi,
Make sure u are using the bean before the mail adapter bean.
Before using the file content conversion make sure that there are no substructures in it , in order to use addheader line as 0. else use addheaderline 3 and give the headerline as comma seperated values
for e.g if this is the type then addheader line= 0
Type 1 :
Record_Mt
Row
field1
field2
else if this the type then addheaderline = 3
*Type 2: *
Record_Mt
Row1
field1
field2
Row2
field1
field2
add module like this
localejbs/sap.com/AF_Modules/StrictXml2PlainBean
with the module key e.g. key
for type 1 struct (as above )add parameter- key as singleRecordType and value as Row with comma seperated value. (remember header line is 0)
for type 2 structure (as above )add parameter- key as recordTypes and value as Row1, Row2 with comma seperated value. (remember header line is 3) -
Help required regarding Integrating Conversion Agent with SAP-XI
I want to run a simple File to File scenario which involves integrating conversion
agent. I gone through a webblog:Integrate SAP Conversion Agent by Itemfield with SAP XI
I deployed the module and I configured the channel in the same way what was specified in the webblog.
But when I run my scenario I found CM_TRANSFORMATION_ERROR as the error in communication channel monitoring.
Can u please provide me the solution for correcting the above error, this would be a great help for me..HI,
see the below links
http://help.sap.com/saphelp_nw04/helpdata/en/43/6f1f39a08e6fcae10000000a1553f6/CMSUserGd.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/ee/c9f0b4925af54cb17c454788d8e466/frameset.htm - cc
http://help.sap.com/saphelp_erp2005vp/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm - fcc cOUNTER
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f - conversion agent
with item fiels.
Regards
Chilla
Maybe you are looking for
-
Win 7 and Arch dual boot [SOLVED]
There are other help threads about this, but I didn't want to hijack somebody's elses thread. Sorry for the long post, I just want to provide as much detail as possible: I am trying to use Grub (not Grub2) to dual boot between Arch Linux and Windows
-
How to Know Payment details in payment thru F110
Dear Sir, We are using F110 for making payment to vendors against their Invoices ( MIRO Documents) . We have a following scenario . Say for a Vendor there are 2 MIRO documents against which payment thru F110 is being made and say against MIRO doc-1
-
I posted this on installing and updating iTunes, but maybe thats not the best place for it. So i'll try it here. So I updated to 7.3 everything went fine. But after opening it I see that my "local" artwork "the artwork I added myself" was no longer s
-
I recently gave a Bondi Blue 233 Mhz G3 iMac to my parents. I noticed before giving it to them that the fonts on the menu bars were very small, both in Finder and the applications. I tried everything I could think of to increase the size, but nothing
-
I'm still getting caller display on the phones but there is no icon present for incoming calls that have not been picked up and only some of the calls made or received are registering on the 'calls' button. So I can't be sure that I'm knowing about a