cancel
Showing results for 
Search instead for 
Did you mean: 

XML error

Former Member
0 Kudos

Hi,

I am using an idoc in my mapping. There is no data element created for that.

1. import idoc.

2. Import idoc XSD into External definition.

3. now i am mapping in the MM.

Everything is fine and working good.

result: one file is coming in and creating one idoc.

If the filw contains two idoc information, then it needs to create two idocs.

As of now it is not possible as it is used as 1:1, i am trying to change the xsd and trying to give 0:unbounded.

it wouldnot able to do that, where as for child segments, i would able to do.

Can it be possible or not? any other ways.

Thanks,

Manju

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Cleared

Former Member
0 Kudos

Manju,

The best way to do this is export the XSD from PI and import them to any client like XML spy change the occurrence to 0 to unbounded, or 1 to unbounded and import back to PI as an external definition.

Regards,

Pavan

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Use XMLSPY or standard tool to edit your idoc. Change (root)idoc tag from 1 to 1 to 0 to unbounded. Then export it in external definition. Clear cache also. It should work. I have done few idoc interfaces with the above changes. Worked fine.

Former Member
0 Kudos

Hi,

I have edited using XML marker.

PERXOO2 1:1

IDOC 0:unbounded

Begin

Segments.

I have changed the Idoc from 1:1 to 0:unbounded. I could not able to change the PERX002, if i do it also while uploading in external definition its giving an error.

Thanks,

Manju.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

If you could change the idoc element occurence from 1 to 1 to o to many. Then everything should work. You dont even worry about the root node.

Steps:

a) export your xsd.

b) Edit using tool

c) import via external definition.

Then test it. Use this link.... I'm sure we can fix this issue easily.

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Former Member
0 Kudos

Hi,

I am geeting an error after i changed the occurrence value as below.

BaseRuntimeException:The markup in the document following the root

element must be well-formed.

But the XML hasn't error's.

Thanks,

Manju.

Former Member
0 Kudos

Hi Manju.

Just change the occurence of idoc node(1or 0 to unbound ) and import it in ESR, no need to change any element or node names.Validate the xsd if you are usign xml spy.

if any doubts have a look at this blog for step by step

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Regards,

Srinivas

Former Member
0 Kudos

Hi,

Please try the below syntax to change the occurence of the Idoc in the XSD structure in the External Definition.

<xsd:element name="IDOC" minOccurs="0" maxOccurs="unbounded" type="<IDOCTYPE>" />

<IDOCTYPE> is the name of the Idoc.

Please revert back if the issue is not resolved.

Regards,

Subbu

former_member189420
Active Participant
0 Kudos

Hello,

It is possible if you change the occurrence from 0...1 to 0...unbounded for the IDOC tag. It has been used in one of the scenarios I am working on.

Cheers,

Anand Patil

sunil_pandey6
Explorer
0 Kudos

This thread might help you... how to do 1:n maaping between File to IDOC.

Sunil

former_member200962
Active Contributor
0 Kudos

try changing the occurence of the IDOC in mapping --> signature tab and then check.

Regards,

Abhishek.