on 08-22-2011 5:09 AM
Hi,
I have got an Idoc and want to make it an external definitionwith rth occurrence as 0to unbounded.
I should export it as XSD and need to change the coding in it as 0 to unbounded,right?
If so,then which segment of the XSD is supposed to be chaged to 0 to unbounded?
After that,I need to import it into PI as external defintion,right?
How will I come to know that the Idoc is changed after importing it into PI?
Please help me.
Thanks in advance
Hi,
I should export it as XSD and need to change the coding in it as 0 to unbounded,right? If so,then which segment of the XSD is supposed to be chaged to 0 to unbounded?
Yes, You need to open this with some XML editor and change the occurrences. For the other question, you have to decide that for which segments you need to change it.
After that,I need to import it into PI as external defintion,right?
How will I come to know that the Idoc is changed after importing it into PI?
Yes, If you want to use this in PI, you have to import it as external definition. After importing it as external definition you can see occurrences in Message Tab once you double click on your ext def. So you can see changed IDoc definition there.
Regards
Aashish Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thankd for the quick replies.
I changed this segment of the code which was earlier as
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="ORDERS02">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="IDOC" type="ZORDER.ORDERS02" />
</xsd:sequence>
</xsd:complexType>
to
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="ORDERS02">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="IDOC" type="ZORDER.ORDERS02" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
What should be the format for mentioning the unbounded occurrence?
Thanks in advance.
Hi,
I normally use something like below.
<xs:sequence maxOccurs="unbounded" minOccurs="0">
<xs:element ref="ns1:GrpHdr" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="ns1:OrgnlGrpInfAndSts" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="ns1:TxInfAndSts" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
Regards
Aashish Sinha
Hi Raja,
Thanks for the quick reply.
<xsd:complexType>
<xsd:sequence>
<xsd:element name="IDOC" minOccurs="1" maxOccurs="unbounded" type="ZORDER.ORDERS02" />
</xsd:sequence>
</xsd:complexType>
Is it the only change in the entire XSD?
Don't I need to add the occurrence part for all the nodes in the XSD?
Thanks in advance
you have to change IDoc segment occurance, when you export XSD in to local desktop,open notepad and check for IDoc segment.and add min occurance1 max unbounded.
after changing it import in to PI and view it in Mapping,there you will see diference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.