File to mail adapter scenario.
Hi All,
i have a file to mail adapter scenario.
here i get the data from tthe different vendors and what ever comes in should be validated and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.
my questions are...
<b>1.whare should we validate the data..is it in the XI server or receiver mail adapter..
if so..how to do that validation
2.how can we send as attachments ..
3.how can we detach them..i.e if attachments are not required 4.if content conversion conversion has to be done where is that done..
4.after coming out of the receiver adapter....how can we send it to the appliocation server.</b>
Thanks in advance..
cheers,
raghavesh
Message was edited by:
Raghavesh Reddy
Message was edited by:
Raghavesh Reddy
Raghavesh,
Not sure if i follow the entire question.
><i>here i get the data from tthe different vendors and what ever comes in should be validated</i>
I guess you are getting files using the file adapter.
><i>and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.</i>
Not sure I follow this part. You validate your incoming file and what do you do
1. If the file is valid?
2. If the file is invalid?
are you sending mails in both cases.
Like pinted out there are multiple places where validations can be done,
1. Module --> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
2. Mapping --> Graphical / Java
There are many options and they all depend on the incomuing payload and the entire process.
So , if you can give us more details, maybe an optimum solution can be discusses.
Regards
Bhavesh
Similar Messages
-
Help Required on File to Mail Adapter scenario
Hi all,
Can someone give me some links or material regarding the step by step procedure to configure a file to mail adapter scenario (including the design and configuration). I have already gone through help.sap.com, but I need more clarification. So please guide me accordingly
Regards
V.KartikHi Karthik,
Also check these links on File to Mail adapter scenario:
Blogs:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
Sap File on Mail Adapter:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
Also check these similar threads:
How to implement file to mail scenario
What is the process for sending file thru email using Mail Adapter ???
Regards,
Subhasha Ranjan -
E-Mail reporting in file to mail adapter scenario
Experts,
I am working on a file to mail adapter in which, have to just send a mail to the recipient by putting a subject line and mail body.
am following the following example
/people/community.user/blog/2006/09/07/email-reporting
but my requirement is not to send the mail attachment. I just need to send a mail body stating the error location.
here at teh receiver side, have downloaded a mail.xsd. in this "subject line","from field" , "to" field is there but there is no "mail body" field .
Can any one please help me out. I just require to send a mail body to the recipient.
Thanks
VeeruExpert,
I have used but still am getting teh attachment not as a mail body.
Isit possible to send the mail body via XSLT mapping , for eg
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://perks.com/MailTest">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Error files from XI</Subject>
<From>from mail ID</From>
<To>to mail id</To>
<Content_Type>text/html</Content_Type>
<Content>
<xsl:text xsl:space="preserve">The error files for which service entry has not been created:</xsl:text>
<xsl:value-of select="$break"/>
<xsl:value-of select="$break"/>
<xsl:value-of select="$tableB"/>
<xsl:value-of select="$thB"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:
</Content>
</ns1:Mail>
</xsl:template>
</xsl:stylesheet>
Any suggestions?
Thanks
Veeru -
Mail Adapter Scenario ----- Need help
Hi All
Again with same mail adapter scenarios .
I am trying to send my e-mail on Microsoft Exchange server to a FTP server .
So flow is like Mail system->XI-> File system.
While configuring sender mail adapter , i gave the following URL imap://S4DE8PSAANH.ibm.com/InBox as i am using IMAp4 as the protocol.
Now i have set of doubts and questions for which i need input from you all
a>I am still seeing my sender communication channel with green light (running ), its not picking up any new mail i came to my inbox. Any reasons why it did not pick up ?
b> Now to set up Receiver Determination and Interface Determination , i need to have inbound interface created, but here when my requirenent is just to send a e-mail content as XML to fle system , what interface should i use or how should i create a interface with interface mapping or message mapping ?
c>Any idea whether just configuring a sender mail adapter with certain poll interval will result in a XML message that can be seen in SXMB_MONI txn ? Or do i need to fullly set up my receiver system and complete whole configuration of the entire flow.
My intent is just to get a simple mail body into XI , how do i achieve it ?
I gave URL as imap://S4DE8PSAANH.ibm.com/InBox , still i did not get any XML message in SXMB_MONI txn ..or should i give IP address of my exchange server instead of S4DE8PSAANH.ibm.com ? ...
Can we see a XML message if only a sender communication channel is set up with no receiver ? .. I am just wondering why new mail in my inbox is not getting picked up into XI.
Thanks a lot to all who helped to me earlier , i guess i rewarded points to all those who guided me : -) and will do same again as promised.
Please help .
Thanks and Regards
rohanHi Rohan -
Here's what I can tell you:
- if the hostname is wrong, you'll get a 'UnknownHostException'.
- if the path (e.g. Inbox) is wrong or doesn't exist, you'll get a 'IOException... The requested item could not be found'.
- if you don't configure user authentication, you'll get a 'NullPointerException'.
This is all within Adapter Monitor - so since your mail CC status is green, we can only assume that your mail host is valid, your path is valid, and your user id/pwd is valid.
One thing to try, since 'Inbox' is common to any mailbox, try creating a new folder at the Inbox level (e.g. called 'Test1') and specify the URL as:
imap://S4DE8PSAANH.ibm.com/Test1
and see if your CC status is still green in the Adapter Monitor (make sure to look at the ID Cache Notifications and the timestamp in the adapter monitor).
Outside of this, SP9 is relatively old. You should patch your XI system as soon as you get a chance - with or without this problem.
Regards,
Jin -
Hi
I require some input on including a mail adapter to an existing scenario
The scenarios is as follows,
I have to create some files around 20 and place them in two folders , that build has been done and tested , so I have a multi mapping , for those 20 files , and enhanced interface determination and is working fine
Now a new requirement is to send an email ,
kindly tell me the steps in IR and ID to include the mail adapter in this interface ??
considering it as an additional feature, nthing to do with Files ,,,
which means that an email adapter has to be called with the file adapters ( not before not after....the precedence doesnt matter )
its just that along with creating the files an email has to be sent ... thats all
I want to know what am i required to create :
in IR : is there a separate interface required .. smthing to do in mapping also ? i am presuming not since it is inbound
in ID : can i create a dummy busines service and what all do i need to create ???
please help
thanks
DevHi,
You create a message type for mail adapter and an message interface. You can also use the predefined message type from sap. So now in multimapping you add this message type and map from your source to this mail mapping. Add the same message interface in interface mapping.
Create a mail receiver communicaiton channel with your mailbox parameters. Then add this to your receiver determination. Also you need to create a receiver agreement for this one.
You can see some help here:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
You can do a search for more blogs and tutorials on mail adapter.
Regards,
---Satish -
I am working on a scenario where XI will send the xml to the receiver via e-mail. I am not getting any e-mail from the XI system. Can I specify gmail or yahoo account ids along with the property settings?
Do I have to do anything on the SCOT transaction?
Regards,
N.SMoorthy,
I wanted to let you know that am working on a RFCBPM-XI-Mail adapter scenario. This scenario worked on a regular file adatper scenario. Now I am just changing the sender communication channel to selec the mail adatper.
I am getting the following error in the mail adapter:
<b>'error occured: [2006-09-27T00:21:04Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.0 Must issue a STARTTLS command first 40sm120265wrl"</b>
Here are the parameters:
Transport protocol : SMTP
Message Protocol : XIPAYLOAD
Adapter Engind : Integration Server
url:smtp://gmail.com (also tried the IP address of this server)
Authentication mode: plain
user: [email protected]
password : no password
Mail attributes:
From : [email protected]
To : [email protected]
subject : sample e-mail
Content Encoding: base64
Please let me know where the error is;
N.S -
Sending Text File through Mail Adapter
Hi Group,
I need to send my Target as Mail attachment in the Text File?Can any body SuggestHi swabap,
You need to use PayloadSwapBean module in the Mail receiver adapter. This module will send the payload as an attchment to the mail server.
Check the following link
<a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure:///people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Regards,
Akshay -
I am trying FILE-TO-MAIL ADAPTER senorio
I have file contains following data(more than one row data in file)
emailaddress,subject, content
I used receiver Data type
https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
If text file is only one record it is sending mails as mail defininition is 1..1 in ximail30_xsd
I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.
I am getting validation error.
please advice me.Hi,
><i>I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.</i>
Maybe you can consider using MultiMapping to send the multiple Mails out of XI.
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Is this what you want?
Regards
Bhavesh -
hey guys
i m doing a file to Mail scenario in which i have to send mail in report format and assign the receivers dynamically,i m making use of /people/community.user/blog/2006/09/07/email-reporting to send mail in report format and /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address to assign receiver dynamically but m kinda lost in hoe should i combine these two scenarios,what will be the structure of my source and target message be?
can anyone help me in deciding how will my source and target datatypes look like?
thanx and really appreciate ur help
ahmadYour structure is dependent upon the messages that you want to import and export. What file formats are you trying to use?
If you are trying to follow Michal Krawczyk's Mail Adapter weblog then take a look at the XML message in his blog, it has fields <subject><to><from><content>. It appears that he imported an Email structure from an XSD, but there is no reason you can't create that structure yourself in the IR.
As for the weblog by Prakash Arunachalam, he provides an XML structure in his weblog at the bottom I believe.
Message was edited by:
Harrison Holland -
Send .bmp or .jpg File over Mail Adapter
Hi All,
I need assistance on the scenario: .jpeg or .bmp File -> XI -> SapInbox
The contents of a file will be only the image and nothing else.Hi All,
I have configured my Sender as File Adapter and Receiver Mail Adapter.
I have my source File (.jpg) on my PC.
I have the following problems in RWB when I check my Adapters :
File = Sender Adapter v2727 for Party '',Service
MyServiceName': Configured at 2006-10-11
09:40:39 GMT
History:
- 2006-10-11 10:16:50 GMT: Error: No suitable
sender agreement found
Mail = I get Status Green MyServicName:MyCommunicationChannel running: started
I cannot create a Sender Agreement as my interface is only going to get the File and send it out to Mail.
What is it that I am missing. -
Configurations required for sender/ reciever mail adapter scenario...
Hi,
I have to work on few mail scenario's i.e, sender and reciever.
Please let me know what all configurations are required in XI server to make the system ready to send and recieve mail like SMTP configurations...
Thanks..Hi,
how to use mail adapter
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
XI: Dynamic name in the mail attachment - pseudo "variable substitution"
The specified item was not found.
XI: Sender mail adapter - PayloadSwapBean - Step by step
The specified item was not found.
XI: HTML e-mails from the receiver mail adapter ?
The specified item was not found.
Mail Adapter (XI) - how to implement dynamic mail address
The specified item was not found.
S/MIME Security for the MAIL-Adapter within XI
S/MIME Security for the MAIL-Adapter within XI
Configuring sender mail adapter
http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm
Thanks,
Madhu
Edited by: Madhu sudhan Reddy on Jul 18, 2008 7:54 AM -
Hi,
I have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
Please give me some links or information related to this. What interface we need to take for file and Mail, How we need to do the mapping and all.
Points will be rewarded for helpful answers.
Thanks in Advance,
Best Regards,
VijayI have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
file( attachment ) to mail
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]
Best Regards,
Srikanth
Reward the useful answers and you will get one point yourself -
File to Mail Adapter but only payload no namespace
Hi SAP Guru's,
I want to know how to handle File to Mail interface with only payload in the text file.
I am only getting this in the file
ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS
and I want to transform the structure like this to perform mapping otherwise mapping won't work.
<ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
<payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
</ns0:ContentContainer>
I believe it is only possible through xslt but I don't to know how to use it.
Can somebody please help me to resolve this issue.
Thanks,
IqbalHi
You can use FCC in sender channel, with slight change in ur structure,
ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
*<data>*
<payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
*</data>*
</ns0:ContentContainer>
Parameters
Record set str data,1
data.fieldNames payload
data.fieldSeparator 'nl'
Try it
Regards
Ramg -
Need to send a mail back to the user in Sender Mail adapter Scenario
Hi all,
I have a scenario where the user fills the Price form or the Article form (which is a Adobe Form).When the user clicks on the "submit" button,the form is converted into xml , gets attached to the mail and sent to PI.
Now the user sometimes attaches the pdf directly instead of submitting the form. This results in the mail being sent
with pdf as attachment.
Now my requirement is to send a mail back to the user asking them to send an xml instead of a pdf.
How can this be done ?
Kindly let me know friends.
Quick Response is appreciated.hi Sanjay,
Have a look on Michal's blog, it's for JMS, but it works for others: [PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean|PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean]
Mickael -
File to Mail Scenario- Error in Mail Adapter
Hi,
I am working on File to Mail Scenario- I am getting the below Error in Mail Adapter
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.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: no receiver address specified.
Could any one please provide a solution
Rgards,
VarunPlease recheck the mail adapter configuration.Check the url field.
Ref for Mail adapter
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm
Maybe you are looking for
-
How to send 997 for a partner documents to multiple IDs?
We are using EDI X12, and we are facing a challenge to send 997's to different IDs based on transaction type. The partner in this case sends documents to us from different ISA/GS IDs for different document types, so we are required to send 997s to th
-
How to see the MM invoice changes in sap?
Hi How to see the MM invoice changes in sap ?
-
Bridge 2.1.1.9 Crashes When Illustrator File Updated
This same topic was posted at 12:40pm on Nov 28, 2007 by Jon Bitpusher Paul. I cannot find an answer to this problem, so I'll just repeat most of his message here, with appropriate edits regarding my PC: Hello, Here's another consistent crash scenari
-
InvalidFieldtype from mysql-tables: chars instead of decimals
Fieldtype form mysql-tables accessed via ODBC are in Crystal Reports 2008 almost all chars instead of decimals with Crystal Reports 8 it works, with 2008 german (even with SP1) all fieldtypes are false ! Mysql -> CrystalReports Decimal(1,0) -> Char[
-
Intercompany STO with inbound delivery with freight....Urgent
Hi, I have following scenario to map. There are 2 company codes A & B and a shipment of goods is to be transferred from A to B. I wish to use Intercompany STO process with UB. However, A & B are geographycally separated so there involves transportati