cancel
Showing results for 
Search instead for 
Did you mean: 

Target XSD having Recursive Node

Former Member
0 Kudos

HI All,

We are provided with Target XSD from external system and the scenario is IDoc (ORDERS05) to XML. The issue is when we import the XSD observed that the complex type of both OrderItem(Lineitem) and its OrderItem(SublineItem) is same as a result in message mapping the expansion is not happening.

i.e; OrderItem (Subline item)is Recursive node.

This is a deep nested structure, for time we have changed the subline item type to Item and continued with mapping, but the external system says the changed XSD doesn't reflect the PO Schema. If the external system cannot change their subline item type can you please let me know how to proceed in this case as the message mapping wont work(expansion for subline item is not present).

PFA, let me know if the requirement is not clear.

Regards,

Prasad K

Accepted Solutions (0)

Answers (2)

Answers (2)

gagandeep_batra
Active Contributor
0 Kudos

Hi Prasad,

As i can see the occurrence for OrderItem is 0 to unbounded ,what you can do is disable the subline item in mapping & proceed with your mapping .

Regards

Gagan

Former Member
0 Kudos

Hi Prasad

If you change the XSD in PI, then same change needs to be done for your external system as well.

Please ask the external team to make the change and then u used it in PI. It has to be fixed from there side.

Former Member
0 Kudos

Hi Indrajit,

I agree with you that is the reason for time we have changed the type as Item for subline item, but my question is what if partner not agreeing to change as it is not possible for them to change the type.

Is it possible in PI to work such case? If not we will say "NO", before going to partner i want to seek advice from you people.

Regards,

Prasad K

iaki_vila
Active Contributor
0 Kudos

Hi Prasad,

If the answer is "NO"  there is not problem if you dont use a schema validation. The question is that you couldn't use the classical message mapping and you will need a XSL or JavaMapping transformation.

Regards.