on 06-10-2009 6:34 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
??
Abid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.