cancel
Showing results for 
Search instead for 
Did you mean: 

Missing lines in an XML message

Former Member
0 Kudos

Hello,

The scenario is as follows

[SAP] --> Idoc --> [XI] --> XML --> [Mail]

The XML structure is imported as an external definition.

In the created XML message the following lines are missing:

mlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.ean.nl Order.xsd".

Does someone have any idea how I can add these lines ?

Thanks.

Regards,

Marco van Iersel

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey,

i think u can try creating a XSD for the xml structure using any of the xml editors and then import the xsd as external defnition.

if u try to import the xml directly then the error may occur,it will be created without those 2 lines.

regards

jithesh

Former Member
0 Kudos

Hi,

I already created a xsd using XML SPY, and imported this as external definition.

This has no effect however, the lines are still missing.

Regards,

Marco

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Marco,

I think u can use standard functions in message mapping...

May be SplitByValue() or check other..

Check this http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm

Regards,

Sridhar

Former Member
0 Kudos

Hello Sridhar,

Thanks for the quick reaction, only I don't think this is the solution.

I'll give some more info.

Now the beginning of the message looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<Order>

<OrderHeader>

<OrderVersion>1.1</OrderVersion>

...

And it should be like this:

<?xml version="1.0" encoding="UTF-8"?>

<Order xmlns="http://www.ean.nl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ean.nl Order.xsd">

<OrderHeader>

<OrderVersion>1.1</OrderVersion>

...

How can I do this?

Kind regards,

Marco