Mail adapter ignores decimal point
Message going out from Mail adapter ignore decimal point. One of the attibutes in xml file has a value "1.0". When I check the message in SXI_MONITOR -> Call adapter -> Payloads -> MainDocument, attribute value is "1.0". But when file is received by receiver atribute value is "10". Can any one give some advice how to fix this issue?
Thanks
Ranji
Hi,
I hope , in general mail adapter may not ignore the decimal points , please check in mapping itself..
http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm
Regards
Chilla
Similar Messages
-
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 -
In Receiver Mail Adapter ,how to ignore SOAP Header attachment
HI Folks,
Am using Receiver Mail Adapter and am getting 2 attachments.
1. one is Soap header which contains Control records
2. payload
I want only Payload as attachment and need to ignore SOAP Header(AT00001.xml).
The configuration is as below:-Trasport protocol : SMTP
Message Protocol: XIALL
Please provide Inputs.
Thanks & Regards
Ashok ReddyHi Gagandeep,
Scenario: File------>mail( Bypass scenario)
i had posted file in FTP and am getting attachment properly but aditionally am getting ATT00001.xml as SoapHeader.this i need to ignore.
PFB Module Parametrs i used:
localejbs/AF_Modules/MessageTransformBean LocalEnterpriseBean transform
Modulekey Parameterattribute value
transform Transform.ContentDisposition attachment;filename=”Pocr_860.txt”
transform Tansform.ContentType text/plain
Regards
Ashok -
Sender Mail adapter encounters MalformedInputException
I have a sender mail adapter that processes the attached .csv file. All is working fine. I use FCC in module to convert the attachment and pass to an IDOC adapter for processing in SAP system.
My problem is sometimes the sender mail CC fails with ...........
exception caught during processing mail message[1]; com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
It only fails with some files. At the moment when we test we FORWARD the email to our email account. If I detach the failed email attachment and attach it to a NEW email it will then work.
So why does it not work when forwarding emails? But it works when I attach the same file to a new email and send?
Other threads for this error seem to point to encoding. But how do I know which to use. I currently use the following in my module config:
Transfer.ContentType application/octet-stream;charset="ISO-8859-1"I have this in my configuration:
localejbs/AF_Modules/PayloadSwapBean on local
TRANSFORM
localejbs/AF_Modules/MessageTransformBean on local
txtxml
TRANSFORM swap.keyName payload-name
TRANSFORM swap.keyValue MailAttachment-1
txtxml Transfer.ContentType application/octet-stream;charset="ISO-8859-1"
txtxml Transform.Class com.sap.aii.messaging.adapter.Conversion
txtxml Transform.ContentDescription MailAttachment-1
txtxml Transform.ContentDisposition attachment;filename="MailAttachment-1.bin"
txtxml xml.conversionType SimplePlain2XML
txtxml xml.documentName MT_BCD_INVOICES
txtxml xml.documentNamespace urn://federalmogul.com/BCDTRAVEL/FINGLOBCD001/00
txtxml xml.fieldNames COST_CENTRE,EMPLOYEE_ID,PRODUCT_GROUP,COMP_CODE,BCD_ACCOUNT,INVOICE_DATE,TRAVELER_NAME,TRAVELER_FIRST_NAME,INVOICE_NO,AMOUNT_EXCL_VAT,CURRENCY1,AMOUNT_VAT,CURRENCY2,AMOUNT_DOC_CURRENCY,CURRENCY3
txtxml xml.fieldSeparator ;
txtxml xml.lastFieldsOptional YES
txtxml xml.processFieldNames fromConfiguration
txtxml xml.structureTitle RECORDSET -
Sender Mail Adapter - S/MIME - How to use it?
Hi guys,
I am trying to figure out how to use the S/MIME security parameter of the Sender Mail Adapter in PI 7.1.
Could anyone point me to some useful documentation/examples/blogs ?
Or perhaps explain what steps are involved when configuring this parameter?
We are pulling emails from an Microsoft Exchange server.
Many thanks,
AldoFirst of all one sender mail adapter has to be tight with a specific sender email address.
The email has to be decrypted as whole, you cannot decrypt parts of it.
Then you store certificates to secure store in J2EE server and point to it in send agreement, this should be equal to HTTPS setup
Check security guide:
http://help.sap.com/saphelp_nwpi71/helpdata/EN/f7/c2953fc405330ee10000000a114084/frameset.htm -
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 -
Sender Mail Adapter - java.lang.NullPointerException in CC monitoring
hi,
I configured my Sender Mail Adapter correctly.
I have the correct POP URL, authentication. I'm not using PayloadSwapBean right now.
I can't get rid of the exception inside my Channel monitoring.
exception caught during processing mail message; java.lang.NullPointerException
does anyone know why?
I've been told the POP account has emails already.
I will try to create an outlook account for this POP e-mail account in the mean time to see the e-mails.
Thank youthanks aaron.
I don't see the folder ./SYS/../j2ee/...
will it be under another folder? I don't see a trace log folder either.
I think the problem might be in the Module tab.
I tried.
AF_Modules/PayloadSwapBean
localejbs/AF_Modules/PayloadSwapBean
/localejbs/AF_Modules/PayloadSwapBean
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
/localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
they all produce the same error. I wonder if these Beans actually exist.
I think we might have to reinstall this Mail Adapter altogether.
Or maybe it's really the connection to the Mail Server. But would it display this kind of message.
This is what I'm looking at.
Also, i had to use this URL
pop://server:995/
(995 is using SSL and it is the default port). When I use this, I see the Java Null Pointer Exception a lot less frequently. Weird. -
Duplicate messages in sender mail adapter
Hi,
We are using the sender mail adapter to retrieve messages from an IMAP mail server. Messages are being picked up correctly, but when we have large messages (with e.g. PDF attachments) things go wrong.
The time it takes to retrieve the mail message is longer than the poll time. In this case the adapter logs in again in the mail server to retrieve the first new message from the inbox. However the first adapter threat is already retrieving that message. This results in a duplicate message in XI. (messages are set to be deleted when read).
We have tried all kind of settings in the adapter but without any results. The adapter works fine with very small messages.
Does anyone recognize this problem?
PS. please do not post links to sap help or the mail adapter FAQ. Useful answers will be rewarded.
Thanks,
Christiaan SchaakeHi Christiaan !
I understand your problem. Could you set your IMAP account to avoid multiple simultaneous sessions?? maybe if there is only one session allowed per user or per time, then parallel XI threads will not be able to start downloading the messages.
If you cannot use a longer poll interval, then you could develop an adapter module for the Mail sender adapter that could be used to verify if the current mail is just being downloaded by other thread. This adapter module could check the unique mail data (date/time + subject + etc.) against a local table.
Regards,
Matias.
PD: please award points if helpful.
Message was edited by:
Matias Denker -
Receiver Mail Adapter message with PDF attachment
Hi.
We are trying to generate emails from the mail adapter that includes the plain text in the body of the resulting email and an attached PDF file. We receive the following structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:newMailRequest_MT xmlns:ns0="http:/pdk/sap/TorstenTest">
<Sender/>
<Receiver/>
<BodyContent/>
<Subject/>
<Attachment/>
</ns0:newMailRequest_MT>
I have set up an interface and mail adapter to be able to produce emails with plain text in the body. I used SAP note 748024 for this.
So right now I can make XI send emails with dynamic mail addresses. My problem lies in sending attached files with the mails as well.
I have read most of the threads in here, but none of them seem to answer just how to include the attachment. Which field in the 'Mail' message type is used for the attachment??
What needs to be added to the communication channel and adapter for it to include attachments, while the body of the mail still keeps the plain text message??hi
I have used the following links to send the file as an attachement and as payload.
so it may help u.
links:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options , mail attatchment
Sender mail adapter - PayloadSwapBean - Step by step - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
points if helpful.
regards
sreeni -
Column header in receiver mail adapter
Hi experts,
I have a proxy to mail scenario in which I send a mail with a file attached.
Is it possible to put column headers in the attachment, possibly without changing the mapping?
I mean, working with module configuration in communication channel?
Thanks
Fabio Bonihi
There are several scenario's
have a look at following :
/people/sap.user72/blog/2005/05/02/useful-sap-notes-for-xi
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
/people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
and for further
you can follow
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address - Dynamic Mail Address
i hope this will help you.
Pls : Reward points if helpful
Vishal -
Error during configuration of Sender Mail Adapter
Hellow All,
I was trying to configure Sender Mail Adapter and I am getting this error.
<b>error occured: exception caught during processing mail message; java.io.IOException: unexpected greeting response; read 220 mailrelay2.lntinfotech.com ESMTP Service (Lotus Domino Release 6.5.5) ready at Fri, 14 Jul 2006 16:11:29 +0530</b>
Can anybody please suggest me why this error is occured and how to solve that?
I am waiting with points, come on
Thanks in advance,
SugataHI,
1)Try to do with POP3
2)Check the URL , give correct Exchange Server Name/IP address.
3) Hope you have access to read the inbox (sometimes it will not be there)
Than try it.
Regards.
Moorthy -
Sender Mail Adapter Attachment
Hi All
The mail I get from the 3rd party has a body and attachment. I have done the TRANSORM module as described in some of the forums, and then the Plain2XML.
On sxmb_moni I see the MailMessage and MailAttachment-1, where the MailMessage is in XML format and MailAttachment in normal text. What should I do to completely ignore the MailMessage(body of the mail) and just send MailAttachment to the receiver.
I have tried to split the message to two receivers, but because the attachment message does not transform to xml, it gives me a mapping error. Is there anyway I can either ignore the body and just send the attachment to the receiver without doing JAVA code.
Thanks in advance
ClintonHi Jin
Thanks for your answer.
This is how I am using the module within the Sender Mail Adapter.
localejbs/AF_Modules/PayloadSwapBean TRANSFORM
localejbs/AF_Modules/MessageTransformBean Plain2XML
TRANSFORM swap.keyName Content-Description
TRANSFORM swap.keyName Content-Disposition
TRANSFORM swap.keyValue attachment;filename="MailAttachment-1.xml"
TRANSFORM swap.keyValue MailAttachment-1.xml
Plain2XML Transform.Class com.sap.aii.messaging.adapter.Conversion
Plain2XML Transform.ContentType text/xml;charset=utf-8
Plain2XML xml.conversionType SimplePlain2XML
Plain2XML xml.documentName MT_TEBA_Contractor_Details
Plain2XML xml.documentNamespace http://lonmin.co.za/TEBA_to_SAP
Plain2XML xml.fieldNames ENG_TYPE,INDUST_NO,COMPANY_NUMBER,SURNAME,INITIALS,NAME,REGISTERED,MALE,EXPERIENCE,RACE,MARITAL,DEPENDENTS,BIRTH_DATE,LANGUAGE,EDUCATION,SPOUSE,RELIGION,OFFICE,SERIAL_NO,REG_YEAR,SERV_START,SERV_EXPIRE,SERV_PER,LAST_CHANGE_DATE,LAST_CHNAGE_TIME,ID_DOC,ID_EFF_DATE,ID_EXP_DATE,PASSPORT,PASS_EFF_DATE,PASS_EXP_DATE,COUNTRY,DISTRICT,ADDR1,ADDR2,ADDR3,POSTCODE,PHONE,BI_1733_NO,REASON
Plain2XML xml.fieldSeparator |
Plain2XML xml.processFieldNames fromConfiguration
Plain2XML xml.structureTitle Details
Using it like this it does not do the swap correct and it still put the data within the body as xml, and leave the attachment as txt.
Can you see something wrong here.
Thanks
Clinton -
Unzip attachment in Mail adapter or/ File Adapter
Hi everyone,
I need to get flat file from .zip attachment that comes with mail? Is it possible to get it with Mail adapter, unzip it and then make conversion? All steps in the Integration engine?
Another option can be get .zip with File adapter, but again how to unzip it?
Thanks,any help appriciated as I am doing my first XI project.
Nataliya>
Buffy76 wrote:
> Thanks a lot, guys. Unzipping is clear now.
>
> Prateek, it would be great if you can you point to "how-to" file or example for MessageTransformBean.
>
> Regards,
>
> Nataliya
ref this https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05 -
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 -
ASMA--SHeaderX-MS-HAS-ATTACH is missing in Mail adapter
Hi Experts,
I am working on project based on the mail adapter, i want to get this ASAM attribute value (ASMA--SHeaderX-MS-HAS-ATTACH). But sometimes we can get this value in DynamicConfiguration Content, Sometimes not. we are very strange about this, and we also compare this two scenario and configuraiton, there are same.
Here is the dynamicConfiguration Content:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Eingangs-Message --> <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderTHREAD-TOPIC">HK Demo Prep: Email GW -> A1S</SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderTO"><test@test></SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SUser">.....</SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderFROM">"Susan Ladier" <......></SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SGreeting">Microsoft Exchange Server 2003 IMAP4rev1 server version 6.538.1 (.....) ready.</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderSUBJECT">H..... -> A1S</SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderMESSAGE-ID"><7C931.....p></SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="<b>SHeaderX-MS-HAS-ATTACH</b>"/><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderX-MS-TNEF-CORRELATOR"/><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderTHREAD-INDEX">AcgLByQC9Q==</SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderRECEIVED">b.....<.....>; Wed, 10 Oct 2007 08:31:31 +0200</SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SServerLocation">imap://d/Inbox</SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderDATE">Wed, 10 Oct 2007 08:31:07 +0200</SAP:Record><SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderX-MIMEOLE">Produced By Microsoft Exchange V6.5</SAP:Record></SAP:DynamicConfiguration>
Do you have some ideas?
Thanks & Regards
RockyHi,
<b>Adapter-Specific Message Attributes</b>To store adapter attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes.
The following attributes are added to the XI message header if the sender makes them available, and if you choose Variable Transport Binding.
To transfer further header fields, set the relevant indicator. You can then store the following attributes and their values in the XI message header:
The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
Regards,
Akshay.
Reward points if find useful.
Maybe you are looking for
-
I've been a loyal Verizon customer for more than 2 years. Last week, I called to transfer my service to a new address. The phone call went well, and I was promised that a technician would come the next day. After ending the call, I found out that was
-
How adbldxml.pl creates the new database tier context file
We just completed database upgrade from 9.2.0.6 to 9.2.0.8 to 11gR2 for 11.5.10.2 financial (on Windows 2003). Application seems working fine after upgrade, autoconfig on application and database tiers are all success, but I have an issue with adbldx
-
Help needed in designing dynamic images
Hi, I just posted a thread before, but there is something wrong in that post. Any ways, I am new to Java and am trying to design a GUI which has images, which change dynamically. One of the examples is on this webpage http://images.google.com/imgres?
-
Wrong Load reporting via KAL-AP form CSM to GSS
When multiple virtual servers are configured on the same VIP (each using another TCP port), the CSM averages all the CAPP load values when reporting the final CAPP load to the GSS. Unfortunately, when a redirect vserver is configured on the same VIP
-
Getting rid of place holder image in basic slideshow??
hey so i have placed a basic slideshow widget and placed my images into it but when it plays through in preview it is still including and showing the placeholder image of the black and white flower. is there a way i can remove this? thanks for any an