cancel
Showing results for 
Search instead for 
Did you mean: 

Misplaced XML tags order

Former Member
0 Kudos

Hi all,

In my target XML structure order/sequencer of few XML tags under a node is changed

Is the order really an issue. My client complains about the order.

Any pointers ?

-Keerthi

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

I have noticed once, that an external definition requires a "sequence" command in XSD to keep the order.

Otherwise the order might be changed be PI.

prateek
Active Contributor
0 Kudos

Sequence of tags shouldn't be a problem. Is it inbound Order in SAP? What is the complaint?

Regards,

Prateek

Former Member
0 Kudos

Its inbound to a third party logistics system.

The XML actually is as follows.

<Partner>

<Name>USA</Name>

<Description>country</Description>

</Partner>

But they complain that <Description> should come before <Name> .

The must be having a different processing mechanism. I dont know. But sure they have problem with this

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

You defined target structure as a data type or it is external message.??

which mapping are you using??

Regards,

Raj

Former Member
0 Kudos

Target is External Definition.

i used Message Mapping

former_member200962
Active Contributor
0 Kudos

Does Description come before Name in the External Definition?

Former Member
0 Kudos

> But they complain that <Description> should come before <Name> .

> The must be having a different processing mechanism. I dont know. But sure they have problem with this

Then why don't you edit the target external definition and move the Description tag before the Name tag.

rajasekhar_reddy14
Active Contributor
0 Kudos

External message structure is correct like what you are expoecting??check once..

Regards,

Raj

Former Member
0 Kudos

Thanks guys.

External definition has Name followed by Description as follows

<Partner>

<Name>USA</Name>

<Description>country</Description>

</Partner>

But the output xml files has Description followed by name as follows..

<Partner>

<Description>country</Description>

<Name>USA</Name>

</Partner>

former_member200962
Active Contributor
0 Kudos

Did you ask the client to provide file which has Description followed by Name?

try changing the ED (in notepad/ textpad) and send the message....have Description before Name

Former Member
0 Kudos

The External Definition is perfect. as expected (Name followed by Description). In the Test Tab of the message mapping the output is as expected.

But only when it execute end to end the order of these two tags is misplaced

stefan_grube
Active Contributor
0 Kudos

> In the Test Tab of the message mapping the output is as expected.

> But only when it execute end to end the order of these two tags is misplaced

When the test tab shows something different as runtime, I suppose that the runtime cache is not updated.