on 11-05-2013 8:46 AM
Hi Experts,
My input XML file has this structure:
<root>
<record>
<nameA>
<type>1</type>
<name>abc</name>
<age>10</age>
</nameA>
<nameB>
<type>2</type>
<street>qwe<street>
<code>1234</code>
</nameB>
<nameB>
<type>2</type>
<street>rty<street>
<code>5678</code>
<nameB>
<nameC>
<type>3</type>
<nameC>
<nameD>
<type>4</type>
<field>zxcv></field>
</nameD>
</record>
</root>
with the following occurrence:
record: 1
nameA: 1
nameB: 1-unbounded
nameC: 1
nameD: 1
After FCC, the output flat file should be this - just a single line
1 abc 10 2 qwe 1234 2 rty 5678 3 4 zxcv
Is this possible thru FCC? Which specific parameter can I use to achieve this?
Appreciate your inputs.
Thanks!
Hi Mark,
Try with the following settings:
Recordset Structure = Row
Row.fieldSeparator = '0x20'
Row.endSeparator = '0x20'
'0x20' is a Unicode-encoded "space" character. This should do the job for you.
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it might be because your structure is nested one level more than the expected structure mentioned in help:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Try changing your structure to:
<root>
<nameA> ... </nameA>
<nameB> ... </nameB>
...
</root>
so simply remove the <record> node in between.
Regards,
Greg
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.