Process attachments with sender email adapter
Hi @ all,
I have some problems dealing with xml attachments on emails. I configured the email sender adapter by using Michals Blog
<a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step:///people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
Unfortunately the mail header looks different as the one in the blog:
<b>Content-ID: <[email protected]>
Content-Type: application/octet-stream;name="[email protected]"
Content-Disposition: attachment;filename="MailAttachment-1.bin"
Content-Description: MailAttachment-1</b>
What can I do to make it look like in the blog?
thanks and Regards.
Oliver.
Hi,
Try With the Following Blogs
/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
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
Reward Points if Helpful
Regards
Khanna
Similar Messages
-
Is there any way to send Attachements with Sender file adapter
Hi,
I am Using File to Proxy communication model. Is there any way I can use file attachments with Sender file adapter with communication protocol "FTP". Please on suggest this.
Regards,
Daniel.LAHi,
I think there is no Option with FTP Protocol to send the files as Attachments.
Try this
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Regards
Seshagiri -
How to filter emails using sender email adapter
Hi,
Does any one know how to filter emails of mail server using Sender email adapter(POP3 protocol ) in PI .
To make it more clear let us assume that there are 10 emails in the email server then 3 emails should be fetched for Interface A , 3 emails Should be fetched for Interface B and remaining 4 emails should be ignored and left in the email server as it is , the reason for this is that it is not related with the Interface A or Interface B. Any suggestion or solution will be much appreciated.
Thanks & Regards
PrabhatHi,
I guess you didnt get my requirement clearly. My requirement is how to filter emails from email server using sender Email adapter in POP3 protocl and pass it to relevant Interface.
For ex: suppose email no.1 is related to Interface A then it should go to Interface A
or email no. 2 is related to Interface B then it should go to Interface B
or if email no. 3 is junk mail then it should avoid deleting that email and leave that email as it is
The problem/challenge here is that email adapter of Interface A or B reads it first and deletes the email message so it is not available for the Interface A or B.
So I just want that sender email adapter should filter it before deleting email from the email server.
Can you provide some solution for this?
Thanks & Regards
Prabhat -
Query related to Sender Email Adapter
Hi ,
I have one requirement related to sender mail adapter.
There are 2 Interfaces and both the interfaces are fetching emails using 2 sender mail adapters from the same email database and I am posting data at the receiver side on the webservice using SOAP. So my requirements/challenges are as mentioned below
1) How to diffrentiate the emails for the two Interfaces i.e . how emails from the same email server database will be fetched correctly for the two interfaces, currently the interfaces are fetching the data incorrectly from the same email server as both the sender email adapters are active. It means that suppose sender email adapter of Interface A is active it fecthes the email and it deletes it from email database and hence it is not available for the interface "B". How to avoid this situation.
2) How to filter emails using sender email adapters i.e. how can we avoid the junk mails and select the correct email for the correct interface.
Note: IMAP cannot be used in our environment due to certain restriction, therefore how can it be done using POP3 protocol?
Any suggestion on the problem will be much appreciated.
Thanks & Regards
PrabhatHi,
Any solution on this will be much appreciated.
My requirement is how to filter emails using sender email adapter
Note: I cant's use IMAP4 due to certain restriction, I can use only POP3
Hi Salvi,
Your suggestion cannot be implemented as
The source payload for the two interfaces are different and also 2 different BPMs are used for 2 different interfaces so even if I use same mail adapter and it will picked up by the adapter and processed by one interface and not available to other interface as sender agreements for the interfaces will be different though the communication channel is same.
So If anyone can provide me the solution as how to filter emails from mail box using sender mail adapter , that will solve my problem.
Thanks & Regards
Prabhat -
Scenario:
pip xml-> XI Rnif sender adapter->mapped to IDoc-> IDoc receiver adapter->R/3 4.6C
We want to change default EO processing to EOIO. How can this be done in Rnif Adapter? That is the first question.
Same scenario for testing is using file adapter as sender instead of RNIF adapter, after setting EOIO and entering queue name in the file adapter communication channel, messages in sxmb_moni are using XBQO_<specified name> queue (outbound queue) and showing as EOIO in Reliable Messaging. When I click on the queue it takes me to QRFC monitor for outbound queues...Is it AF outbound queue then?
What is inbound and what is outbound queue and in relation to what, Adapter Framework or Integration Engine or ?
Same scenario with sender RNIF Adapter in the moni shows queue XBTO (outbound), but when I click on it it takes me to QRFC Monitor for inbound queues???
Anybody there can put some light into the maze XI queues? Thanks a lot!Hi Margaret Wisniewski ,
For XI Rnif sender adapter
Please see these..
Delivery and Service Header Fields in RNIF Receiver Adapter for Rosettanet.
Accessing Message Header fields from envelope
Pls refer this link about Queues
XI Asynchronous Message Processing: Understanding XI Queues -Part I
Regards,
Ramesh. -
Sender Email Adapter in PI 7.11 by using the IMAP
Hi Experts
I am trying to configure a sender email adapter by using the IMAP Protocal , Can anyone send the blog or paramertes to configure for IMAP Protocal
I did find for POP3
Thanks
PRCan anyone send the blog or paramertes to configure for IMAP Protocal
http://saptrainingsonline.com/sap-xi-pi-tutorials/configuring-the-receiver-mail-adapter-in-sap-xi-pi/
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm -
Problem polling Inbox with Sender Mail adapter
Hi,
I have a funny problem with Sender Mail adapter (IMAP Protocol)
It was working fine previously.
Now, when I poll the Inbox, 2 things happen. After re-activation:
1. If there is a new mail in the Inbox, the Communication channel marks the mail as read, but still keeps reading the same mail into XI.
2. If there are no new mails in the Inbox, it reads the already read mails in the Inbox one by one. So all old mails start entering XI.
This problem exists only with the Inbox. It works fine with other folders for the same mail ID.
Any inputs as to why this is happening?
Regards,
Puloma.Hi,
We re-started the server and problem was solved. But we don't know why the Adapter Engine was behaving erratically.
Regards,
Puloma. -
TO Get Ensuring Exactly Once Processing data from sender soap adapt
To XI Specialists
Now Im trying to get Ensuring Exactly Once Processing data from sender soap adapteter.
My plan is that send data from Receiver adapter, to Sender adapter by SOAP.
(1st interface is ABAP to Soap "BE", 2nd interface is Soap to File "EO")
Sender SOAP adapter will returun Ensuring Exactly Once Processing data.
(see SAP HELP, http://help.sap.com/saphelp_nw70/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm )
AND I want to get Ensuring Exactly Once Processing data, I want to determine what to do in ABAP proxy.
SO I made and tested 2interface. but error occuered.
I checked the error, and Now I know what is the cause.
The cause is that Ensuring Exactly Once Processing data didnt enter the payload, at Receiver Adapter.
1st interface coulnt get the payload data, so mapping error occuered....
Please give me help,
<b>"How to get Ensuring Exactly Once Processing data From Sender SOAP ADAPTER"</b>
or
<b>"How to enter Ensuring Exactly Once Processing data into Payload of Receiver SOAP ADAPTER"</b>
and more excelent way....
our XI is version7.0 and SP10
Please teach me your wisdom!
Naoki KuriharaI seeked and I noticed that
maybe I catched the message but the message dont have payload.
so I got no_payload error.
I checked SAP note.
I noticed, no_payload error will be managed to nomal message at SP13....
my XI is SP12....
I ll seek for another way!!
Thank you! noaki -
I'm having with sending emails from my macbookpro
I'm having problem with sending email from MacBook pro
This also happened to me after update to IOS 6. So probably it is cause your email outgoing stopped to work.
So check your outgoing settings and you probably will solve the issue.
Hope it will be helpful -
Trouble with sending emails with Road Runner
I have had little luck with sending email from my iPad with Wifi through my Road Runner Account (Central Florida). Apple Support got it to work with the AT&T 3G set as a secondary Outbound server, but I am still looking for a way to send emails with RR with WiFi. The problem may be that there is no way to turn off the authenication feature in the iPad mail setup, and RR here does not require or permit authentication for its outbound mail servers. Has anyone had this problem and found a solution? Why is there not a selection available in the setup for "no authentication" since I can see that there are accounts which do not support it?
If you had the AT&T network set up and on, and the RR still did not work, there must be another problem with sending emails through RR than I have guessed. I have thought the problem was the incompatible Authentication setting, but if you had the AT&T on as an alternative, that should have resolved the Authentication issue. In any event, I have discussed with Bright House (RR), and they do not seem to acknowledge any compatibility issues with the iPad. Hopefully, it can be resolved.
-
Using Attachments in the Email Adapter
Hi,
I'm using an email adapter(Sender - XIPayload) to send message to XI. It was working fine when my mail content was the XML messsage. But now i have to use the content of an attachment file to do the mapping. The attachment is an XML file. I have checked the Keep attachments option and now i can see that the payload contains two sections. One is the mail content and the attachment content. But the mapping fails. How can i specify that the content of the attachment is to be used for mapping? Can somebody give some inputs on how to achieve this?
Thanks,
SandeepHi Sandeep,
To use attachments in mail adapter, just do the following things:
- Set the Keep Attachments indicator.
- And you use the PayloadSwapBean module to swap the application payload with one of the attachments.
Please also go thru the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm
Regards,
abhy -
Problems with sender mail adapter
Hi XI Gurus
We have gone through a lot of blogs and searched a lot on the XI forum on how to configure the sender mail adapter with attachments but we still can't get it working at our site. Here are the issues -
1. When we define our data type in the IR as let's say out_email_dt with namespace "http://www.xyz.com" the mapping fails. In the monitor(SXMB_MONI) the message from the sender mail adapter comes in like this -
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
<xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30" encoding="quoted-printable">
<Subject>test 10</Subject>
<From>"Test User" <[email protected]></From>
<To>"XI Test Account" <[email protected]></To>
<Content_Type>text/plain;charset="us-ascii"</Content_Type>
<Date>2007-05-08T05:34:38Z</Date>
<Message_ID><[email protected]></Message_ID>
<Content>This is the voice of the Mysterons=0A</Content>
</xim:Mail>
Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
Question 2 - If you look at the content of the <From>,<To>,<Message_ID> tags you will see that there is content with <> tags which is causing the message mapping to fail. Is there a way of telling XI that they are not xml tags but part of some other tags?
2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
3. Can we use masks in the PayloadSwapBean for attachment names like "." as we don't know what the file name is going to be as we have multiple partners who will be sending emails to the same address and with different file formats.
Thanks in advance.
SalilHi,
>>>>Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
do exactly as shown in my blog:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
>>>>2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
do similarly as shown in my blog:
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
the everything will work
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> -
Receive zipfile with sender file adapter
Hello,
I need to receive one zipped file (binary data) with the file sender adapter. This zipped file contains an xml file that I need to process.
What is the best way to do this?
I have looked into writing an adapter module to unzip or base64 encode the file before sending it further into xi from the module chain.
However, it looks like only xmlpayload is available to the adapter modules (and attachments, but in this case there are none). In the module I have the following relevant code (lots of try catch surrrounding)
Object obj = null;
Message msg = null;
obj = inputModuleData.getPrincipalData();
msg = (Message) obj;
XMLPayload xmlpayload = msg.getDocument();
I end up with an xml payload, that is the zip file in my case.
Is it safe to do something like this
InputStream is = xmlpayload.getInputStream();
// zip data into string
String str = is.toString();
// base64 encode
str = MimeUtility.encodeText(str,"base64");
xmlpayload.setContent(str.getBytes());
// send the base64 encoded data to XI
// that is now at least utf-8 text
return inputModuleData;
What do you recommend?
Best regards
/OttoOtto,
Go through this links which may help you:
Multi Attachments with ZIP or Mail Adapter (Outbound)
Re: How to read ZIP files(having PDFs,Image) using IDoc without XI
---Satish -
Read multi-tabbed excel file attachments from Sender Mail Adapter.
There is a need to read excel attachments from incoming email to a
mailbox. We know we can use Sender Mail adapter to easily read .xml, .txt
or .csv attachments.
For excel attachments we know from SDN that you have to write
adapter modules to handle excel. However the excel file we need to read has
multiple worksheets(tabs) and data may be contained in any of them.
Is it possible to use SAP XI Mailsender adapter to read such a file as an attachment? What kind of module development would we need for this? I am not much of a Java programmer so examples or links to other documentation would help.
Thanks,
RudraRudra,
Use Java Mapping. There is a free java api available called JExcelAPI to achieve this.
Shabarish's blog describes about this. This might be helpful to you
/people/shabarish.vijayakumar/blog/2009/04/05/excel-files--how-to-handle-them-in-sap-xipi-the-alternatives -
How to process attachments using an XI-Adapter
Hi together,
I have seen that there are a lot of problems processing attachments of XML messages in SAP XI 7.0. Unfortunately I have the same problem by using an XI sender adapter.
My scenario is as follows:
I will get an PurchaseOrderRequest_Out out of SAP SRM directly transferred to SAP XI. Within the XI only the attachments should be send via mail to the receiver system, the main document is only necessary for generating the text of the mail.
I have seen that a solution should be to write an custom adapter module which converts the attachments into base64 encoding and put them into a tag of the main document. This should give the possibility to have access to the content in e.g. java mapping.
Sadly I'm not that much experienced in the development of custom adapter modules. Maybe someone of you guys has done it and could be so kind and provide me some code snippets how this could be done.
Thanks a lot for your support.
Best Regards.The answer is to either add additional J2EE server nodes to your PI/XI instance or add additional Business Services and configure addition Comms channels for these
Maybe you are looking for
-
Material consumption posting date before MIGO
Hi, I have one issue related to Material Consumption.... If material received and posted on 25.12.2011 then how come system is allowing to consume ( Mtype 261) on 12.12.2011. As material stock on 12.12.2011 is Zero. We have not allowed Negative Sto
-
Creating a title for RSS feeds
Hello- I have a podcast and have made a website for it using iWeb. I went to iTunes to submit my podcast, but later found out that my RSS feed for my podcast has no title in the blue section at the top of the screen. How do I create a title for an RS
-
How can i get lost pics and contacts
Im very sad i just had a baby and all my pics from birth were on my phone Nd i plugged it into comp for the first time and it restored it and i lost everything and it transported the stuff from my old phone to the new one. As well as my contacts so i
-
Hi all I have a report which is a cross tab matrix type. I do the row group by article whoch is varchar2(30). The problem I have is with the order in which I get the items. Let's supose that I have this three diferent items in the table: 'CA000' 'CH0
-
wy my jdk don't have the class javax.servlet.* and javax.servlet.http.*;