MAIL sender to R/3 scenario
Dear All,
we have a requirement to send EDI file to R/3 system using MAIL adapter.
Here we receive EDI file as an attachment to the mail server and the same need to be converted by Seeburger mapping so that it can be transformed to XML format.
Is it possible to use the seeburger mapping (See_E2X_ORDERS_UN_D96A) in mail adapter to convert the EDI file to XML?
Please let me know your inputs.
Thanks a lot.
Regards
Harry
Hi Harry,
I dont think its possible to convert mail attachment edi message to R/3,i dint understand why are you using Mail adapter attachment for EDI message,if you are getting these message from partner direclty better to store in mail server or any other eaternal location,from there we can pick up the message we can conevert .this is easy way to achieve .
But using mail adpater i feel its not possible.
Regards,
Raj
Similar Messages
-
How can i read only .txt file and skip other files in Mail Sender Adapter ?
Hi Friends ,
<b> I am working on scenario like , I have to read an mail attachement and send the data to R3.</b>
It is working fine if only the .txt file comes.
<b>Some times ,html files also coming along with that .txt files. That time my Mail adapter fails to read the .txt file.</b>
I am using PayLoadSwap Bean and MessageTransformBean to swap and send the attachment as payload .
<b>Michal as told to write the Adapter module to skip the files .But i am not ware of the adapter moduel . If any blogs is there for this kind of scenarios please give me the link.</b>
Otherwise , please tell me how to write adapter module for Mail Sender Adapter?
How to download the following
newest patch of XI ADAPTER FRAMEWORK CORE 3.0
from SAP Service Marketplace. Open the file with WinZip and extract the following
SDAs:
aii_af_lib.sda, aii_af_svc.sda
aii_af_cpa_svc.sda
I have searche in servive market place .But i couldn't find that . Can you please provide me the link to download the above .
If any other suggestions other than this please let me know.
Regards.,
V.Rangarajan=P
Dude, netiquette. Messages like "i need this now! Do it!" are really offensive and no one here is being payed to answer anyone's questions. We're here because we like to contribute to the community.
Anyway, in your case, just perform some search on how you could filter the files that are attached to the message. The sample module is just an example, you'll have to implement your own. Tips would be to query the filename of the attachments (or maybe content type) and for the ones which are not text, remove them.
Regards,
Henrique. -
Mail Sender adapter issue in PO7.4
Hello Experts,
We are migrating from PI7.0 to PO7.4, where in we are struck up with an issue of Mail Sender Interface.
Here we have a scenario of Mail to Proxy where we are processing attachment(CSV file). But here when I we run the interface mail body is being processed not the attachment. Also could nt see the Payload as when I click on the Attachment payload a pop up is coming and closing automatically.
Can someone please suggest where it went wrong as this is working in existing PI7.0 version.
Thanks.
VRHi VR
Have you tried swapping by Payload name?
Please try it out with the following configuration, and remove any extra lines - there are duplicate key names and values in your configuration.
You should be able to see the successfully swap by payload name in the audit log as shown below.
Rgds
Eng Swee -
Variable Transport Parameters in Mail Sender
Did anyone ever successfully use the "Variable Header XHeaderName1" in the mail sender adapter (IMAP4)?
We have two mail sender channels which require a slightly different mapping. My idea was to define a value for the field "Variable Header XHeaderName1" and evaluate that in the mapping. But the value is not passed into the SOAP header, I can configure what I want. I turned on "Adapter spec.attributes" and "Variable Transport...".
So I cannot access the field value in the mapping.
Now I evaluate the dynamic configuration field "SUser", that works, but that's only a workaround.
So either this is a bug in the system (XI 3.0 SP 21) or the documentation is wrong.
We are using an attachment, is that the problem ? "Use Mail package" off/on does not change anything.
Any ideas ? No general links to the documentation please.
CSY
Edited by: Christian Sy on Aug 15, 2008 8:48 AMI think the DynamicConfigurationBean would help in this scenario.
You can assign a constant value in sender channel and use that constant for the determination of the mapping.
Regards
Stefan -
Mail sender adapter POP server not configured for URL access
Hi Experts,
I have a Mail --> PI --> R/3 scenario and I am configuring the Mail sender adapter for POP3. The issue is that the POP server is not configured to be accessed via a URL and hence the URL pop://hostname/ is causing the following error at runtime:
_1. When I use pop://Fully qualified host name/
_Error: exception caught during processing mail message; java.net.UnknownHostException
_2. When I use pop://IP address of host/
_Error: exception caught during processing mail message; java.net.SocketException: Connection timed out:could be due to invalid address
I am able to ping the POP3 server from the PI server using both the FQDN and IP address.
Can someone please help.
Thanks,
Shobhit
Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM
Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AMHi Shobhit
Check with these notes:
804102
xi 3.0 mail adapter with pop3 user authentication problem
810238
XI 3.0 Mail Adapter for POP3 may not report some errors
also check mailserver security settings ...
Connection refused occures when XI cannot connect
in most cases so try checking it again , maybe some ports are not opend on the firewall
Thanks
Edited by: Abhishek Agrahari on Jul 14, 2009 11:44 AM -
Dynamic Configuration of Mail-Sender does not work
Hi,
we use XI 3.0 SPS 19.
In my szenario I have a mail sender and I have receiver determination with conditions depending on the mail subject.
In the condition editor, I selected the context object "SHeaderSUBJECT" to build my condition.
In the mail communication channel I turned on the Checkbox "adapter specific message attributes".
But the condition doesn't work!!!
I wrote a small UDF to get the dynamic configuration of my mail sender-message - but it's NULL.
If I change my scenario from Mail-Sender to a file-sender, everything works fine (I can select the filename, etc.).
Is there a problem with dynamic configuration of a mail sender?
Thx all for your help!
Regards
Wolfgang HummelCheck also "Variable Transport Binding".
You see in the SXMB_MONI whether the ASMA is available or not.
Regards
Stefan -
Mail Sender to Abap Proxy Receiver with Attachements
Hi All,
Scenario: I need to create a ticket in Solman from a mail. I intend to do the scenario as Mail sender to Abap Proxy receiver asynchronous.
I have configured my sender mail adapter and am able to get the mails in XI. The attachements also appear in Inbound payload as MailAttachement-1, MailAttachement-2 etc. I have checked use mail packege and keep attachements in sender adapter.
Transport Protocol: IMAP4
Message Protocol: XIPAYLOAD
Queries:
1. My Inbound Data Type is the mail Package -- ximail30_xsd. Here in sxmb_moni I can see the mail attributes like from, to and the mail body in content. But How can I read the attachements in my message mapping.
2. How can I pass these attachements to Abap Proxy ( I do not need to alter attachments only pass to proxy ). These attachements have to be attached to the Solman ticket in SOLMAN server.
Appreciate your kind response to my above queries.
Thanks.
Regards,
Siddhesh S.Tawate
PS: I have tried using PayloadSwapBean in adapter module but still the content at source remains same.Hi,
Please find below the part of code that might help you. I have given code only responsible for attachements part of the ticket.
loop at lt_attach into l_attachment.
count = count + 1.
if count = 1.
first_line = 1.
endif.
l_type = l_attachment->GET_CONTENT_TYPE( ).
split l_type at '"' into l_type
file_name
l_name.
l_name = file_name.
split file_name at '.' into file_name
file_type.
l_xstring = l_attachment->GET_BINARY_DATA( ).
strlen = xstrlen( l_xstring ).
Compute int = ( strlen div 255 ).
Compute rem = ( strlen mod 255 ).
if rem <> 0.
int = int + 1.
endif.
count1 = int.
if count = 1.
last_line = count1.
else.
if int = 1.
first_line = last_line.
else.
last_line = first_line + count1.
endif.
endif.
wa_APPX_HEADERS-APPXNO = count.
wa_APPX_HEADERS-DESCR = l_name.
wa_APPX_HEADERS-FILETYP = file_type.
wa_APPX_HEADERS-FILENAM = l_name.
wa_APPX_HEADERS-FILEFM_UL = 'BIN'.
wa_APPX_HEADERS-FIRSTL = first_line.
wa_APPX_HEADERS-LASTL = last_line.
wa_APPX_HEADERS-FILELEN = strlen.
wa_APPX_HEADERS-LAST_USR = sy-uname.
GET TIME STAMP FIELD wa_appx_headers-TIMESTAMP.
append wa_APPX_HEADERS to it_APPX_HEADERS.
while count1 <> 0.
count1 = count1 - 1.
if count1 <> 0.
wa_APPX_LINES_bin-LINE = l_xstring+0(255).
shift l_xstring left by 255 places in BYTE MODE.
ELSE.
wa_APPX_LINES_bin-LINE = l_xstring.
endif.
append wa_APPX_LINES_bin to it_APPX_LINES_bin.
clear: wa_APPX_LINES_bin, wa_APPX_LINES.
endwhile.
first_line = last_line + 1.
clear: strlen, count1, file_name, file_type, l_type, int, rem, l_xstring, l_attachment.
endloop.
CALL FUNCTION 'BAPI_NOTIFICATION_CREATE'
EXPORTING
NOTIF_EXT = wa_NOTIF_EXT
NOTIF_CRM = wa_NOTIF_CRM
IBASE_DATA =
IMPORTING
NUMBER = Refnum
NUMB = Numb
REFNUM = Ticket_No
SYSID = SYSID
TABLES
NOTIF_PARTNERS = it_NOTIF_PARTNERS
NOTIF_NOTES = it_NOTIF_N_EXT
NOTIF_SAP_DATA = it_NOTIF_SAP_DATA
NOTIF_TEXT_HEADERS = it_NOTIF_TEXT_HEADERS
NOTIF_TEXT_LINES = it_NOTIF_TEXT_LINES
APPX_HEADERS = it_APPX_HEADERS
APPX_LINES = it_APPX_LINES
APPX_LINES_BIN = it_APPX_LINES_BIN
RETURN = RETURN
Please observe how first and last line of attachement is calculated. That is what created problem for me initially.
Hope this helps.
Regards,
Siddhesh S.Tawate -
Mail Sender Adapter - Reading multipel attachments
Hi,
I have a scenario like reading mutiple attachment files from a mail server. Based on the attachment type, i have to call RFC or File adapter. I am able to read a single attached file from mail, but could not able to read multiple files. If any one has implemented such a scenario, please let me know.
I have another question , is it possible to read the name of the attached file dynamically. i saw lot of examples and in forums all are telling about hardcode the attched file name in the parameter key value properties under Module tab. Without hardcode the file name , how to read the attached file from mail.
I appreceate the help.
Thanks,
ManasHi !
check this out:
Is it a way to read Multiple Attachment and send all - Mail Sender?
sender mail adapter - attachment name
Regards,
Matias. -
Mail Sender Adapter - read from public folder.
Hello Experts.
I have a scenario, where I need to read an incoming mail from a public folder, and after mapping the attachment (which is a csv) I need to put the result as a file in a shared folder.
right now the problem is, I am not sure how to access the public folder.
should I use one of the exchange users, and try to access the public folder?
what should I be writing in the URL parameter in the mail sender adapter ? (imap://server/???/public folder ?)
Also - in case I will want to switch the location of the mail to a private foler inside of the user mailbox - what is the URL parameter in that case?
Anyone ever did something like this and can help?
Thanks,
Imanuel Rahamim.Hi Imanuel,
do u mean u want to pick the mail which contains an attachement from a specified folder instead of inbox?
u can configure the URL like imap://host:port/path/PublicFolder.
after PI received the mail. we can use PayloadSwapBean to get the attachement payload and do following message mapping.
ur question: Also - in case I will want to switch the location of the mail to a private foler inside of the user mailbox - what is the URL parameter in that case?
do u mean u want to pick the mail from a specified mail account? if like this, create an user for the interface only. then configure the UserName/Password in the channel.
Regards,
Kevin Song -
Help requierd on mail sender adapter
i m workin on a scenario to send email from a mail server inbox to XI.i need to configure mail sender adapter....need step by step help on that.
regards,
latika.hi latika,
the Message Structure to be defined depends on the message protocol that you are trying to use.
I would recommend using XIPAYLOAD. From the help link,
<b>XIPAYLOAD</b>
In this mode, the content of the e-mail is put in the payload of the XI message. If you do not set the Use Mail Package indicator, the information about the sender (From), receiver (To), and subject of the e-mail is lost.
If you have selected XIPAYLOAD as the message protocol, you must make the following additional specifications under Mail Attributes:
If you want to put the entire e-mail message including the header information (From, To, Subject) in the payload, set the Use Mail Package indicator. See the example below. The header information is included in an XML mail package format.
<i>
Source Structure</i>
<i><?xml version="1.0" encoding="UTF-8"?>
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Subject</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<Reply_To />
<Content_Type>text/plain</Content_Type>
<Content>
This is the content.
</Content>
</ns:Mail></i>
Regards,
Bhavesh -
Best Effort (BE) Quality Service in JDBC & Mail Sender Adapter
Hi Experts,
I have confusion for Mail & JDBC Sender adapters.
Why BE QoS is provided in the sender JDBC & Mail Adapters. Can anybody explain me with how will be Synchronous JDBC or Mail scenario.
Thanks in advance.
AbdurUse of BE in JDBC can be seen here
http://www.klickklack.wg.am/RFC_Request_Response_without_BPM.doc
For mail sender, usually there are no such logical requirement.
Regards,
Prateek -
Mail-Sender-Adapter, FetchReport
Hello,
can anyone explain me how to use the FetchReport option in the Mail-Sender-Adapter?
In the Adapter-Audit-Protocol the Adapter I always get an error.
The SAP-Help pages are not very helpful, an in SDN there are no articles about this.
kind regards
Thorsten GawantkaHi Chris,
the Definition is imported already.
Here are the message-data:
Message-Daten
Attribut Wert
Status fehlerhaft beendet
Wiederholbar Nein
Beendbar Nein
Fehlerkategorie XI_J2EE_ADAPTER_XI_HANDLER
Fehlercode CALL_CONSUMER_ERROR
Start 30.04.2008 13:27:03
Ende 30.04.2008 13:27:03
Sender-Partner
Sender-Service opx
Empfänger-Partner
Empfänger-Service
Interface http://sap.com/xi/XI/Mail/30
FetchReport
Quality-of-Service Best Effort
Message 5b2e4a20-16a8-11dd-c67c-00145e36a4e4
Referenz
Konversations-ID
Version 0
Bearbeitet Nein
Serialisierungskontext
Richtung OUTBOUND
Message-Typ Call
Profil XI
Verbindung Mail_http://sap.com/xi/XI/System
Transport HTTP
Endpunkt http://op-sap-xi:8000/sap/xi/engine?type=entry
Berechtigung SAPPasswordCredential(PIAFUSER):password=********:sapclient=001:saplang=
Sequenznummer 0
Anz. Wiederh. 0
Fehlg. 1
Wiederh. 0
and the audit-protocol:
Audit-Protokoll für Message: 5b2e4a20-16a8-11dd-c67c-00145e36a4e4
Zeitstempel Status Beschreibung
2008-04-30 13:27:03 Erfolgreich Mail: calling the module processor for channel CC_AeroDB_Mail_Send
2008-04-30 13:27:03 Erfolgreich MP: Tritt in den Modulprozessor ein
2008-04-30 13:27:03 Erfolgreich MP: Lokales Modul localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean wird verarbeitet
2008-04-30 13:27:03 Erfolgreich Mail: message leaving the adapter (call)
2008-04-30 13:27:03 Erfolgreich Die Anwendung versucht eine XI Message synchron zu senden über Mail_http://sap.com/xi/XI/System
2008-04-30 13:27:03 Erfolgreich Versuch die Message in die Call-Queue zu stellen
2008-04-30 13:27:03 Erfolgreich Message erfolgreich in Queue gestellt
2008-04-30 13:27:03 Erfolgreich Die Message wurde erfolgreich aus der Call-Queue abgerufen
2008-04-30 13:27:03 Erfolgreich Der Status der Message wurde auf DLNG gesetzt
2008-04-30 13:27:03 Fehler XI-Systemfehler erhalten. ErrorCode: NO_RECEIVER_CASE_BE ErrorText: ErrorStack: No receiver could be determined
2008-04-30 13:27:03 Fehler Rückgabe synchroner Fehlerbenachrichtigung an rufende Anwendung: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:.
2008-04-30 13:27:03 Fehler Die Übertragung der Message über http://op-sap-xi:8000/sap/xi/engine?type=entry ist fehlgeschlagen, weil: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
2008-04-30 13:27:03 Fehler Der Status der Message wurde auf FAIL gesetzt
2008-04-30 13:27:03 Fehler Zurück zur Anwendung. Ausnahme: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
2008-04-30 13:27:03 Fehler Mail: error occured: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
2008-04-30 13:27:03 Fehler Mail: error occured: com.sap.aii.af.mp.module.ModuleException: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE: caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
2008-04-30 13:27:03 Fehler MP: Ausnahme aufgetreten mit Grund com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
2008-04-30 13:27:03 Fehler Mail: failed to call the module processor: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:NO_RECEIVER_CASE_BE:
Now the question is, how do i define the receiver in an asynchrounious scenario? And what does the FetchReport option exactly?
thx for your help
Thorsten -
Picking mails from a particular sender using mail sender adapter
Hi Everyone,
I want to create a scenario in which i want to pick mails from a particular sender and send it to XI.
I don't want all the unread mails to be sent to XI but only those belonging from a particular sender.
How should i configure the mail sender adapter to achieve the same.
Thanks and Regards
Rahul NawaleHi,
there are two ways to do that:
not standard:
create a java proxy which will check your maibox for mails
from only one particular sender and then send messages
to the xi
more standard:
create a new accound and redirect your mails from a particular sender from the main mailbox to this new one
and poll from this new one only...
this way you'll be able to use atandard mail adapter
with no changes at all
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Mails deleted when using Mail Sender Adapter
Hello All,
I have a Mail to XI to File scenario.
Transport Protocol: POP3
Message Protocol: XIPAYLOAD
The mail is getting converted to a xml file in the folder specified in File Adapter, but it gets deleted directly , I dont recieve any mail in my Inbox.
I have used POP3 so there is no checkbox where i have specified to delete the mails after reading.
Also another strange thing is when i try to send a mail to myself , this mail is not converted to XML and it comes to my Inbox.
Any clues why such a strange thing happens!
Thanks
MeghanaYes dear..
I will explain you the process behind it.See first the mail comes into the mail Box..for that time period you will be able to see it.Now when it gets deleted,this is time when XI has picked up your mail and processed it to give you the file.Exactly after few seconds when you refresh it (when required) you can see the xml in your target directory.
Get back if you have more doubts.
Thanks -
Hi,
we have a problem configuring the mail sender channel. We want to realize a mail->xi->file scenario. No messages arrive at the xi server (sxmb_moni). In the adapter monitoring the sender adapter seems to be fine (green led, text: running).
The mail address is a web.de address. How should the URL in the adapter look like? We tried imap://imap.web.de, imap://imap.web.de/username, but no messages arrived.
Btw we read in an other topic, that there exists a monitor (url: http://xihost:port/mdt/amtServlet). The server replies a 404 (not found) http error. How can we get this monitor?
ThanksThanks for your answer,
yes, web.de does allow imap, I get my mails with thunderbird with the imap protocol. I tried also an other mail server, without success.
I describe my scenario, perhaps there is an error in my configuration:
In the Integration Directory I have imported the following xsd file
<xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
xmlns:xi="http://sap.com/xi/XI/Mail/30"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--
Mail
-->
<xs:element name="MailReceipt">
<xs:annotation>
<xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Server" type="xs:string"/>
<xs:element name="Format" type="xs:string"/>
<xs:element name="UseMailPackage" type="xs:boolean"/>
<xs:element name="Encoding" type="xs:string"/>
<xs:element name="Subject" type="xs:string" minOccurs="0"/>
<xs:element name="From" type="xs:dateTime" minOccurs="0"/>
<xs:element name="To" type="xs:string" minOccurs="0"/>
<xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I have imported the xsd file in myNamespace into External Definition. Then I made a Messege Interface (outbound asynchronous)out of the imported data type (name--> MailReceiver).
In the configuration of the mail sender channel I have following settings:
message-protocol: XIPAYLOAD
Use mail package: True
Content Encoding: base64
Keep attachment: False
Interface Namespce: myNamespace
Interface Name: MailReceiver
Quality of service: Best effort
In my scenario I have made a sender agreement which uses the mail sender adapter, interface and namespace of the sender are myNamespace an MailReceiver.
hope anybody can help me...
Maybe you are looking for
-
Problem with WRT400N and Comcast
I have a Zoom cable modem and WRT400N modem. When I hook the modem directly to the computer I gain access to the Internet. The problem is when I try to use the router, the Internet does not work. I can access the router GUI no problem. I have tried
-
USER/LIBRARY/CACHES/WINE/FONTS
i am not sure if i should trash this cach folder. i had codeweavers crossover installed, but i trashed everything i could find for this application. i think crossover used something called wine, but i am not sure if this cach folder is related to it
-
Hi we are receiving inbound EDI idocs throgh third party. Third party received EDI file having 5000 transactions . It was transalated same number of idocs text document and posted in SAP. But after 4 hours same file processed in SAP. Third party sa
-
How to get name of RandomAccessFile?
Hello. java.io.File has a method: getName() which returns a string assigned to the name of the File. Is there an equivalent for instances of RandomAccessFile? If not, is there some way to get the name of a RandomAccessFile? Thanks in advance for your
-
Mqseries with weblogic7.0
Currently i have the requirement of connecting MqSeries with weblogic7.0 server . looking thro the edocs , I cannot figure out how to configure the jms adapter(xml files in the jms-xa-adp.rar file) to use the mqseries .