Skip to Content
0
Former Member
Jun 10, 2009 at 05:34 PM

Issue with file content conversion at sender

9 Views

Hi,

I'm having problem in text to xml conversion at sender CC.below is the str and payload.thgere is no key field.

0003 ->header Occurence 1

123452345634567 ->item1 occurence 1--unbound

345672345612345 ->item2 occurence 1--unbound

234563456712345 - >item3 occurence 1--unbound

I want xml structure to be like this

<<ns0:MT_SRC xmlns:ns0="http://com.teldta/ABAPMAP">

<INPUT>

<Header>

<Total>0003</Total>

</Header>

<Item>

<Field1>12345</Field1>

<Field2>23456</Field2>

<Field3>34567</Field3>

</Item>

<Item>

<Field1>34567</Field1>

<Field2>23456</Field2>

<Field3>12345</Field3>

</Item>

<Item>

<Field1>23456</Field1>

<Field2>34567</Field2>

<Field3>12345</Field3>

</Item>

</INPUT>

</ns0:MT_SRC>

But in SXMB_MONI .after conversion at sender side i'm getting below str,

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

- <ns:MT_SRC xmlns:ns="http://com.teldta/ABAPMAP">

- <Header>

<Total>3</Total>

</Header>

- <Item>

<Field1>12345</Field1>

<Field2>23456</Field2>

<Field3>34567</Field3>

</Item>

- <Header>

<Total>3456723456</Total>

</Header>

- <Item>

<Field1>23456</Field1>

<Field2>34567</Field2>

<Field3>12345</Field3>

</Item>

</ns:MT_SRC>

Pls help me to get the correct xml conversion at sender CC.

Thanks,

RP