on 01-04-2010 5:36 AM
Hi Team,
We had a scenario where we are getting multiple records from RFC and needs to send mails to all records with multiple mail ids using PI 7.1. I am using SAP Provided XSD as External Definition for Mail Massage Type. In External Definition it has Occurences as 1 only. if i change the occurences to Unbounded the External Definition is giving XSD Error "Unable to recognize document as valid XSDCheck the selected category".
For example if i send 5 records in RFC i need to send the data for each record as individual Mail to different Mail ID's where these Differnet Mail id's will be given at runtime from an RFC Lookup.
Thanks in Advance,
Sriram
Mail adapter supports Multi-Mapping...however Mail.xsd does not support occurence change.
You can define your own structure (DT....with the required occurence) and then send the mail(s) accordingly.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
I had created a XSD and imported as External Definition. When i am sending the Data to RFC, i m getting an error.
Error is "failed to send mail: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting end tag: Mail, but found {}Mail at state 1"
The below is the XSD I created.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/Mail/30" targetNamespace="http://sap.com/xi/XI/Mail/30">
<xsd:element name="Mail" type="DT_MAIL_RECEIVER" />
<xsd:complexType name="DT_MAIL_RECEIVER">
<xsd:sequence>
<xsd:element name="Mail" minOccurs="0" maxOccurs="unbounded">
<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" />
<xsd:element name="From" type="xsd:string" minOccurs="0" />
<xsd:element name="To" type="xsd:string" minOccurs="0" />
<xsd:element name="CC" type="xsd:string" minOccurs="0" />
<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:sequence>
</xsd:complexType>
</xsd:schema>
Thanks in Advance,
Sriram
I had created a XSD and imported as External Definition.
Why are you following this procedure?
create a new DT in IR --> then MT --> then inbound MI.....do not modify the Mail.xsd....this new DT can have any structure.....just that in the receiver mail channel you should not use Use mail package option
Regards,
Abhishek.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.