cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

aashish_sinha
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

aashish_sinha
Active Contributor
0 Kudos

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

rajasekhar_reddy14
Active Contributor
0 Kudos

Try below one.

<xsd:complexType>
         <xsd:sequence>
            <xsd:element name="IDOC" minOccurs="1" maxOccurs="unbounded" type="ZORDER.ORDERS02" />
         </xsd:sequence>
      </xsd:complexType>

Former Member
0 Kudos

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

rajasekhar_reddy14
Active Contributor
0 Kudos

only this change required.

former_member854360
Active Contributor
0 Kudos

Hi ,

Only occeuernce of the IDOC node need to be changed..

Former Member
0 Kudos

this will also work (but in this case ur IDOC occ will be "1..Unbounded"):



<xsd:complexType>
<xsd:sequence>
<xsd:element name="IDOC" type="ZORDER.ORDERS02" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>

Former Member
0 Kudos

Hi Raja,

Thanks for the quick reply.

I need the occurrence to be 0 to unbounded,so can I use this code?

<xsd:complexType>
         <xsd:sequence>
            <xsd:element name="IDOC" minOccurs="0" maxOccurs="unbounded" type="ZORDER.ORDERS02" />
         </xsd:sequence>
      </xsd:complexType>

Thanks in advance

Former Member
0 Kudos

yes...

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

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.