cancel
Showing results for 
Search instead for 
Did you mean: 

MAIL Adapter

Former Member
0 Kudos

Hi All,

I am new to Mail Adapter.Can you please help me on any File to Mail or Mail to File Scenerio step by step?

I searched on SDN but only thing that I got which was mentioning either Sender or Receiver part and not the entire Scenerio.

Thanks and regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Hi VenkataRamesh,

Thanks for the reply.

Check this links
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0707964150DB10895407238997083833End?blog=/pub/wlg/2849
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0707964150DB10895407238997083833End?blog=/pub/wlg/1798
http://help.sap.com/saphelp_nw04/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm

Is there any other Scenerio mentioning SAP to MAIL interface or vice -versa?

Also, can you provide me any scenerio where in Mapping is done in any MAIL Scenerio?.

Thanks in advance.

Edited by: Shweta Kullkarni on Dec 8, 2009 3:15 PM

Former Member
0 Kudos

Hi VenkataRamesh,

Thanks for the reply.

Check this link for sender side (R/3) config.
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0707964150DB10895407238997083833End?blog=/pub/wlg/3509
Check this for receiver mail 
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0707964150DB10895407238997083833End?blog=/pub/wlg/1798

Means,by combining both these configurations a SAP to MAIL Scenerio is created.Is it?

Also, please tell me cant we generate the XSD to be used as Message Type for the MAIL Adapter ?If yes then how and if not then how to get it?Is there any standard format?

Thanks in advance

Former Member
0 Kudos

Hi

> Means,by combining both these configurations a SAP to MAIL Scenerio is created.Is it?

yes

> Also, please tell me cant we generate the XSD to be used as Message Type for the MAIL Adapter ?If yes then how and if not then how to get it?Is there any standard format?

Default structure is available for the mail adapter, we can download that file from sap and we can use.

Regards

Ramesh

Former Member
0 Kudos

Hi VenkataRamesh,

Thanks for the reply.

Default structure is available for the mail adapter, we can download that file from sap and we can use.

Can you please explain?

Also,please tell me when to use the default XSD structure and when to genereate the XSD?

Thanks in advance.

Former Member
0 Kudos

Hi,

Check this link

Take this below data to notepad and save it. after import to PI through external definition and use it

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions targetNamespace="http://sap.com/xi/XI/Mail/30" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:types><xsd:schema targetNamespace="http://sap.com/xi/XI/Mail/30" xmlns="http://sap.com/xi/XI/Mail/30" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="Mail"><xsd:annotation><xsd:documentation>Mail package for XI - Mail Adapter</xsd:documentation></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="Subject" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="From" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="To" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="Reply_To" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="Content_Type" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="Date" type="xsd:dateTime" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="Message_ID" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="X_Mailer" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="Content" minOccurs="0"><xsd:annotation><xsd:documentation>any type</xsd:documentation></xsd:annotation></xsd:element></xsd:sequence><xsd:attribute name="encoding" type="xsd:string" /></xsd:complexType></xsd:element><xsd:element name="MailReceipt"><xsd:annotation><xsd:documentation>Mail Receipt for XI - Mail Adaper</xsd:documentation></xsd:annotation><xsd:complexType><xsd:sequence><xsd:element name="Server" type="xsd:string" /><xsd:element name="Format" type="xsd:string" /><xsd:element name="UseMailPackage" type="xsd:boolean" /><xsd:element name="Encoding" type="xsd:string" /><xsd:element name="Subject" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="From" type="xsd:dateTime" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="To" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /><xsd:element name="Date" type="xsd:dateTime" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" /></xsd:sequence></xsd:complexType></xsd:element></xsd:schema></wsdl:types><wsdl:message name="Mail"><wsdl:part name="Mail" element="generateduniqueprefix2:Mail" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:generateduniqueprefix2="http://sap.com/xi/XI/Mail/30" /></wsdl:message><wsdl:message name="MailReceipt"><wsdl:part name="MailReceipt" element="generateduniqueprefix3:MailReceipt" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:generateduniqueprefix3="http://sap.com/xi/XI/Mail/30" /></wsdl:message></wsdl:definitions>

Regards

Ramesh

Former Member
0 Kudos

Hi VenkataRamesh,

Thanks for the reply.

Can you please explain this?I did not get it.

Check this link <a class="jive_macro jive_macro_message" href="" __jive_macro_name="message" modifiedtitle="true" __default_attr="8391918"></a> Take this below data to notepad and save it. after import to PI through external definition and use it Mail package for XI - Mail Adapterany typeMail Receipt for XI - Mail Adaper

Thanks in advance

Former Member
0 Kudos

Hello Sweta,

For mail scenario as inbound...

you can either use the Mail.xsd package which will have the necessary mail attributes or you can generate the mapping structure required

for your interface ...where the same data can be posted to mail as attachment...

so why cant you share the exact details what you are looking for..so that some experts can tell how to proceed for the same

HTH

Rajesh

Former Member
0 Kudos

Hi Rajesh,

Thanks for the reply.

I am new to mail adapter.

I am looking for FILE-PI-MAIL(and vice-versa) and SAP-PI-MAIL(and vice versa) scenerios.

Also, I need to know how to generate XSD and if any standard format is available then how to use it?

Can you please tell me?

Thanks in advance

Edited by: Shweta Kullkarni on Dec 8, 2009 5:27 PM

Former Member
0 Kudos

Hi Shweta,

Check this link.

Actually i pasted the data type structure code here, but it is not displaying fully (i think space is not enough)

Regards

Ramesh

Former Member
0 Kudos

Hi VenkataRamesh,

Thanks for the reply.

You mean to say only this portion?

Mail Adapterany typeMail Receipt for XI - Mail Adaper

Or this portion ?

Mail package for XI - Mail Adapterany typeMail Receipt for XI - Mail Adaper

What will the XSD for this?

Thanks in advance

Former Member
0 Kudos

Hi VenkataRamesh,

Thanks for the reply.

Actually i pasted the data type structure code here, but it is not displaying fully (i think space is not enough)

Can you please paste the data type structure ?

<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1526743"></a>
Check this link.

XSD generation is not mentioned there.Can you please expalin how to generate XSD?

Thanks in advance.

Edited by: Shweta Kullkarni on Dec 8, 2009 5:35 PM

Former Member
0 Kudos

Hi shweta,

You are confusing.

we can import the XSD file (for structure) to the PI through external definition.

in my previous post i pasted the xsd file code, but that full code is not displaying.

Regards

Ramesh

Answers (1)

Answers (1)

former_member200962
Active Contributor
0 Kudos
I searched on SDN but only thing that I got which was mentioning either Sender or Receiver part and not the entire Scenerio.

To be honest you wont find documentation for each and every type of scenario.....now coming to your Q....the configuration shown in any blog about a File Sender and a Mail receiver (even if two blogs are not related) should help you configure the entire flow.

When you say File_to_Mail scenario do bear in mind that the the basic settings wont change....what changes is the mapping logic and what protocol you want to use in the receiver channel (XIALL/ XIPAYLOAD).....so once you know the difference/ meaning you should be able to do any scenario.

Happy Learning!

Regards,

Abhishek.

Former Member
0 Kudos

Hi Abhishek,

Thanks for the reply.

Can you please give me the Mapping(Preferably Message Mapping not XSLT) that can be done in any MAIL Scenerio?

Also can you give me any scenerio with SAP to MAIL Interface or VIce -versa?

Thanks in advance.

former_member200962
Active Contributor
0 Kudos

Mapping logic remains the same...you have the file MT as source Message Type and the Mail.xsd structure on the target end....

There is no specific/ standard mapping pattern that is to be developed for a File_to_Mail (or vice-versa) scenario.

If you want the Mail.xsd (called the Mail package) then you can get it from SMP:

https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt

Regards,

Abhishek.

EOD

Former Member
0 Kudos

Hi Abhishek,

Thanks for the reply.

Mapping logic remains the same...you have the file MT as source Message Type and the Mail.xsd structure on the target end....
There is no specific/ standard mapping pattern that is to be developed for a File_to_Mail (or vice-versa) scenario.
If you want the Mail.xsd (called the Mail package) then you can get it from SMP: 
https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt

Can't we generate the XSD or use the one generated in the Mapping?Or is there any standard XSD that we need to use?

Thanks in advance.

Former Member
0 Kudos

Hi

> Can't we generate the XSD or use the one generated in the Mapping?Or is there any standard XSD that we need to use?

We can generate the XSD file. No need to require any standard XSD.

Regards

Ramesh

Former Member
0 Kudos

Hi VenkataRamesh,

Thanks for the reply.

We can generate the XSD file. No need to require any standard XSD.

How can we generate it without Mapping as we need it for Mapping?

Thanks in advance.