Html to mail scenario?
Hi xi expertsu2026
I am new to xi as well as this scenariou2026
While I am doing HTML to mail scenario when we configure module tab module name u201Clocaljbs/AF_Modules/MessageTransformationBeanu201D and u201Clocaljbs/sap.com/com.sap.aii.adapter.mail.app/Xu2026..u201D what are these and from where we will get this? What is module key and parameter name and parameter value in module configuration?
I am using IDES version for my practice. XI3.0.
thanks in advance.
Hi ,
You can get all the information regarding module and module processing here:
http://help.sap.com/saphelp_nw70/helpdata/EN/84/e8763c997fda50e10000000a11405a/frameset.htm
Regards,
Sarvesh
Similar Messages
-
How to configure receiver communication channel in File to mail scenario?
Hi all,
I'm working in FIle-to-Mail Scenario. I did all the required configuration In Integration repository. As per my Scenario whenever a text file stored in Application server of the R/3 system. it should be sent as a attchment with a mail.so i set a sender communication channel with file adapter in sender R/3 system . i dont know which business system should i refer for my receiver communication channel.because my receiver end is a mail server. should i create any third party business system for this one?
can anyone suggest me to define a receiver comm channel in a right manner?
helpful answers will be rewarded.Hi,
Check these
/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]
/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
Regards
Seshagiri -
Hi,
I have configured a SAP --> PI --> Mail scenario with a receiver Mail Adapter. I have used the required mail message format for this interface.
When I try to execute the scenario using a Message Mapping it is executed successfully and a mail is received in the configured mailbox.
However when I try to execute the scenario using XSLT mapping I do not get any mail. In SXMB_MONI the processing is shown as successful. I need to use XSLT mapping as there is some HTML formatting that has to be done to the messsage.
Please tell me what could be the possible solution.
Thanks,
AbhishekHi,
The problem was in the Date format in the XSLT mapping....
One more doubt is inorder to display the message contents in HTML format what settings need to be done. I am getting the mail in a text format.
XSLT mapping:
<Mail>
<Subject>XYZ</Subject>
<From>Abhishek_at_xyz.com</From>
<To>Abhishek_at_xyz.com</To>
<Content_Type>plain/text</Content_Type>
<Content>
<html>
<body>
The required content with HTML tags for formatting
</body>
</html>
</Content>
</Mail>
I am getting the output in text format as:
<html><body>The required content with HTML tags for formatting</body></html>
Please provide solution to this.
Thanks,
Abhishek. -
How to implement a RFC to XI to Mail scenario?
Hello All,
I need to implement a RFC to XI to Mail Scenario.
RFC should contain the content of the mail.
I need a Integration process which will read the RFC and transform it into a Mail
I have a Mail reciever adapter but how will the content that i have in RFC be send as the content in Mail? what is the Interface mapping required? Do i need to write a XSL to do the transformation and how?
I have already started implementing the scenario. but the mail i get has the content as a attachment and not as a text. i have written a xsl transformation in Interface Mapping that simply has
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<html>
<body>
<li>Hello from XI to meghana</li>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I get this message as a html in the attachment of the mail not as a content.
Could some 1 help me out??
Thanks
MeghanaYes, I am doing a Sender RFC to XI (Integration process) to Reciever Mail Scenario. The program that i have already given is used as a test program to add the values to the table.It calls the function module ZSOSMS2 which has the foll source code:
FUNCTION ZSOSMS2.
""Local Interface:
*" IMPORTING
*" VALUE(I_TEST) TYPE CHAR20 OPTIONAL
*" TABLES
*" ZSOSMS2 STRUCTURE ZSOSMS2
*" EXCEPTIONS
*" ERROR
ENDFUNCTION.
I have been able to read this RFC, have done a Message mapping which maps the CONTENT(present in ZSOSMS" table to some body attribute of the target Message Type attribute.
With this i have been able to read the content from the RFC and put it in as the content of my mail. But i am not sure if this is the best way.
If you are aware of any optimal way of doing it please let me know..
Thanks,
Meghana -
File - XI - Mail Scenario. ( Urgent Issue )
Hi ,
Good Morning...
I am doing File to mail Scenario.
I am Using File & Mail Adapter.
I got 5 files in FTP server named as
SAP1.txt
SAP2.txt
SAP3.txt
SAP4.txt
SAP5.txt
Now File adapter should pick this 5 files and make a attachments to a single mail.
I am able to pick one file and attach and send it to the mail.
But now i have to pick all te files and attach to the single mail with same file names like in source.
How should i proceed for the scenario.
Points will be awarded.
Regards,
Jayasimha JangamHi Jangam,
ur having many files should be maped under one file and then send to a mail adapter
it better to go with BPM is there any any common value in all the files
pls do chk out this blog
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/community.user/blog/2006/09/07/email-reporting
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5992
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
pls do chk this links they r mainly blogs
if found worth pls do the req
Thanx
Sampath -
Sender Mail Adapter - html body mail
Hello Everybody,
I'm facing this strange problem:
I receive an e-mail with an XML attachment with a sender mail adapter and I use the PayloadSwapBean to let the attachment be the real payload as explaned in this 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
If I receive mail in text/plain format everything works fine, but as soon as I get an email with an html body (content-type: multipart/alternative; boundary=...) it doesn't any more (In the XI Monitor i still se 2 payloads, but I can only open the one with the attachment).
In this case the mapping is stuck in "scheduled for outbound process" status and the XI queue gets blocked with status "SYSFAIL" giving this error "Access via 'NULL' object reference not possible".
Is there any way to force XI digest also HTML e-mails?
As always, thanks a lot for your help.
DanieleThanks Akshay,
this really worked!
Fyi I'm using XIPAYLOAD option. I added in the module chain, before the PayloadSwapBean, a MessageTransformBean with this parameter:
Transform.ContentType - text/plain;charset=uft-8
this way I can also see the massage body in the monitornig.
Hope this will be helpful for someone else.
Regards,
Daniele -
WHY OH WHY NO HTML SUPPORT MAIL 5.1????
Guys
First of all well done on Lion. It is a geat looking OS and I personally LOVE IT.
I must however askk wht for the sake of not having to run MS on my mac is there still no support for HTML mails in mail for mac 5.1?
The ONLy reason I am running office 2010 for mac is for HTML mails. Now I know you can pull out your mad HTML skill to code a message as HTML ,but in the world we live in that is not always possible.
Please guys shed some light on this.
ArthurWhy have questions when they're not answerable? You're not talking to Apple, and even if you were, you wouldn't be talking to anyone who could comment on the question of why Mail does not have a WYSIWYG HTML editor built into it. That seems to be all you're asking.
Now, if you are looking for solutions, you can always compose your message in the HTML editor of your choice, load it up in Safari and then choose File -> Mail Contents of This Page. Be aware, though, that Outlook copes extremely poorly with HTML e-mail. -
File - BPM (RFC) - Mail Scenario
My scenario is File to Mail scenario thru BPM. in BPM I need to make RFC Call. I set ASMA in File sender adapter and File Nmae is not accessible in BPM Mapping. we are PI7.0 SP12. Im sure this is possible but for some reason not working. Any clue ?
Hi,
>>So Q1: Im not getting Filename into BPM though I checked ASMA in the Sender File Adapter
You cannot take the filename (using Dynamic Configuration) in Message Mapping inside BPM transformation step. So I will propose to take it before entering into BPM.
>>Q2: I need to send attachment name as Dynamic which I should get from the Input Message. we are on PI7.0 SP12.
Check the blogs in sdn, you will get more idea on this. If I get any I will reply back
Regards
Suraj -
JDBC to Mail scenario with XSLT mapping
Hi all,
I am working on JDBC to Mail scenario. We have to pick the data from Oracle system and mail has to be sent with an attached Excel file.
I am doing this scenario by using of following blog.
eMail Report as Attachment (Excel/Word)
I am getting the output as an attachment but iam not getting the data.
the same xslt coding iam using which has given in blog.
any idea........
Thanks,
Sreedhar Goud.Hi Gaurav,
JDBC is picking the data.In SXMB_MONI outbound payload iam able to see the data but in inbound payload there is no data.i think the problem is in XSLT code only.
My source structure:
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_ORMS_Errors xmlns:ns="http://mg.adityabirla.com/mg/orms/mail">
<row>
<INTERFACE_NAME>MG_SAP_RMS_ITEM_PKG</INTERFACE_NAME>
<RECORD_DETAIL>Item</RECORD_DETAIL>
<ERROR>item</ERROR>
<CREATE_DATE>2008-11-03 00:00:00.0</CREATE_DATE>
<MAIL_SENT>N</MAIL_SENT>
</row>
</ns:MT_ORMS_Errors>
XSLT code:
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:variable name="break"><br></xsl:variable>
<xsl:variable name="tableB"><table></xsl:variable>
<xsl:variable name="tableE"></table></xsl:variable>
<xsl:variable name="trB"><tr></xsl:variable>
<xsl:variable name="trE"></tr></xsl:variable>
<xsl:variable name="tdB"><td></xsl:variable>
<xsl:variable name="tdE"></td></xsl:variable>
<xsl:variable name="nbsp">&nbsp;</xsl:variable>
<xsl:variable name="thB"><tr BGCOLOR="#CCCC99"></xsl:variable>
<xsl:template match="/">
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Deliveries from XI</Subject>
<From></From>
<To></To>
<Content_Type>application/vnd.ms-excel</Content_Type>
<Content>
<xsl:text xsl:space="preserve">These deliveries has been completed:</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:space="preserve">INTERFACE_NAME</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">RECORD_DETAIL</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">ERROR</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:text xsl:space="preserve">CREATE_DATE</xsl:text>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$trE"/>
<xsl:for-each select="MT_ORMS_Errors/row">
<xsl:value-of select="$trB"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="INTERFACE_NAME"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="RECORD_DETAIL"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="ERROR"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$tdB"/>
<xsl:value-of select="CREATE_DATE"/>
<xsl:value-of select="$nbsp"/>
<xsl:value-of select="$tdE"/>
<xsl:value-of select="$trE"/>
</xsl:for-each>
<xsl:value-of select="$tableE"/>
</Content>
</ns1:Mail>
</xsl:template>
</xsl:stylesheet>
Thanks,
Sreedhar Goud. -
Hi All,
I am configuring IDOC-XI-Mail scenario using following web-log:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
I follow following steps:-
1) In IR-create Name Space -"http://sap.com/xi/XI/Mail/30 "
2) In IR-Upload XSD file from SAP note: 748024
3) In IR-Do message mapping with Imported IDOC
4) In ID-Add Business System's for SAP & XI
5) In ID-Create mail receiver communication channel
(URL/User ID/Password/User Mail Package only)
When I test trigger IDOC from SAP, I get Error in SXMB_MONI
(Error category:RCVR_DETERMINATION, Error ID:NO_RECEIVER_CASE_ASYNC)
Is i need to do more configuration's in IR & ID that is not explained in Web-log?
Is there is any other configuration need to be done on server to send mails?
Please guide me in completing Idoc->Mail scenario.
Thanks & RegardsHi Rohan,
"4) In ID-Add Business System's for SAP & XI"
You donot have to create a business system for XI.
First of all you can either create a business system which needs to be created in SLD such that it is pointing to your target system (which here is the mail server) or you can use a business service. Choose any one of them.
"When I test trigger IDOC from SAP, I get Error in SXMB_MONI
(Error category:RCVR_DETERMINATION, Error ID:NO_RECEIVER_CASE_ASYNC)"
Check if you have defined your message interfaces correctly. Since you are not expecting any response from the mail adapter, the inbound and outbound interfaces should be asynchronous.
Also check if you have defined your receiver determination correctly. Here you should give the source and target systems and interfaces correctly. The problem sems to lie here. Check these configurations once again.
Regards,
Sushumna -
Error in SXMB_MONI for HTML to Webservice Scenario
Hi Experts,
I am facing following error Error in SXMB_MONI for HTML to Webservice Scenario
"Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EmailRequest_To_ValidateEmail_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Content is not allowed in prolog."
Only one field is used i.e. email address and mapped properly in IR but still the error is persisting, Please suggest some way out.
Regards,
NitinHi,
Mapping internall follows the SAX parser. Please check if you are trying to process the data of large size.
generally while parsing the large data this exception get raised. Even though there is just one field, what is the data size you are trying to pass.
Thanks
Swarup -
Error in File to Mail Scenario
Hi All,
I am getting the following errror at adapter level in File to Mail Scenario in XI production
Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: server not responding OK to RCPT TO; 554 Relay access denied
In XI development the scenario is working fine. I also checked with basis people for the configurations of the two servers and it is same.
Can any one suggest the possible ways to solve the above error.
Regards
PrakashHi All,
I tried with one more SMTP server in both development and production , In development mail is going. But in production i am facing the following error in receiver adapter.
Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.net.ConnectException: Connection refused
Exception caught by adapter framework: java.net.ConnectException: Connection refused
Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.net.ConnectException: Connection refused.
Kindly provide some solution to solve the above errors.
Regards
Prakash -
Hi All,
I did file to mail scenario. The source structure contain the following elements like <to>....</to>, <Subject>........</subject> etc (the source structure created by me). In Integration Directory I set the Mail adapter Message protocol as "XIPAYLOAD" and Mail attribute "Use Mail Package" selected. So here my scenario should send a mail to which has i given "To Id" in my source structure. But when i go to SXMB_MONI, I found my message as red flag and it is showing information like "thrown during application mapping". Here what is the problem and how can i rectify the problem, please any one help me,
Thanks & Regards,
Satish,Hi,
you should add your email address to your user,add specific users list add you r user in alrtcatdef.
generally you should maitain the email data type format like
subject,from,to,content-type..
se below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
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/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
Regards
Chilla.. -
Hi Experts,
My scenario is Idoc to Mail scenario..
In thie scenario the mail should be delivered to the specific DL (Group Email-ids,DL-> Distribution List) with dynamic subject line so while delivering the mail based on the contents of the Idoc the subject line of the mail will be changed,
For this reason we need to use Mail Package, if so then how to define the structre in the email adapter.
required output in mail is as follow:
Subject LIne: Purchase Order Number;
Email Body :
Delivery Date:
Ship Date:
PO Number:
Desc:
Qty:
So the email body has 5 attributes as delivery date, ship date, PO number, desc, qty;
The email body should go as an attachment with the name "Company Name"+PONumber.csv
Can anyone throw some light regarding to this scenario..
Thanks,
--KishoreHi
For Mail package use this structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Subject</Subject>
<From>nameaATcompany.com</From>
<To>namebATcompany.com</To>
<Reply_To />
<Content_Type>text/plain</Content_Type>
<Content>
payload
</Content>
</ns:Mail>
alternativ you can use Adapter-Specific Message Attributes like SHeaderSUBJECT
take a look at this blog as well:
/people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
regards,
Robin -
File To Mail Scenario Clarification
Hi!
Can someone help me with this....
1)In a File To Mail Scenario, while selecting the mail server, do we need to select only the mail server or we can select any server...I mean, when I was doing this scenario, I selected my Windows 2003 server....as the mail server and the url as smtp://ipaddress....Also, I tested it, by putting the Source payload in the FTP server......Then, used SXMB_MONI to check the file....I saw the success flag... My question here is, how to check the mail......Can, you give me the step by step instructions for testing the File to Mail scenario....
2)I loaded Eclipse on my system, How to open that (execute that)...I mean...I want to learn Java Mappings..Where should I put the code.....etc.... Step by step instructions with screen shots please....
Thanks....>>2)I loaded Eclipse on my system, How to open that (execute that)...I mean...I want to learn Java Mappings..Where should I put the code.....etc.... Step by step instructions with screen shots please....
Open the "eclipse.exe" and go on help. It will say how to create your first java project. Once you are comfortable with tool then go for Java Mapping. (Efficient way of learning
thanks
Farooq
Maybe you are looking for
-
Print one cheque for many open items
Hi all, has anyone encountered the Problem where they have to pay a vendor say more the 50 items but need to print this out on one cheque. im having a problem where the F110 programme prints uses 4 cheques, voides the firt three due to overflow, and
-
My A1208 iMac will no longer power on
I have a iMac core 2 duo model a1208 (late 2006) that has never had any problems whatsoever until last year, it had trouble powering on. It would not respond to the power button for extended periods of time, then would miraculously turn on one day. T
-
TEXT_IO package...
Is there any restriction on the length of record that can be read from text file using text_io package. I want to read a text file that has number of records with length upto 20000 char. I'm putting this data into a table which has 4 columns of varch
-
is there any support somewhere f****g tired of renting movie i cant end and waste money
-
Trouble connecting Canon MX300 to AE
I previously was able to share an older HP printer through my airport. Just got a new canon mx300 and am having trouble. When I first configured the printer, i had to do it with the USB plugged in -- otherwise the printer never showed up in the print