cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with file content conversion at sender

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

sunilchandra007
Active Contributor
0 Kudos

Hi,

Just check the Content Conversion Parameters- Recordset Structure.

If you have filled in this parameter with

Header,1,Item,1

then change it to

Header,1,Item,3

Regards

Chandra

Former Member
0 Kudos

Hi Chandra,

I tried with Item,3 its working now but with Item,* --its not reading file.I will not know the count of items during runtime.

Is there any way?

Thanks,

Edited by: RP@261 on Jun 17, 2009 8:52 AM

Former Member
0 Kudos

Hi RP,

  • will not work until u have a keyfield. We had the same issue and we kept the count of detail as 99999 and then it worked fine. This is an assumption that details will not be more than 99999 records. So check with your business folks and know the maximum records they got till now. Then you try to put 4 or 5 times more than that number.

Regards,

---Satish

Former Member
0 Kudos

Hi Satish,

Thanks for the reply.I was trying with 999999 and working fine with it.

Thanks again for clearing my doubt.

Regards,

RP

Answers (2)

Answers (2)

GabrielSagaya
Active Contributor
0 Kudos

Please provide following details

Document Name=MT_SRC

Document Namespace=http://com.teldta/ABAPMAP

RecordSet=INPUT

RecordSet Structure =Header,1,Item,*

Header.fieldNames=Total

Header.fieldFixedLengths=4

Item.fieldNames=Field1,Field2,Field3

Item.fieldFixedLengths=4,4,4

Former Member
0 Kudos

Hi,

??

Abid