on 04-19-2013 11:53 AM
I am using file content conversion for the first time, using a very simple example to try to get working.
I read the file in okay, a CSV file and try to write out, via FTP a flat file.
The payload I can see is :
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_EXCEL xmlns:ns="http://hillarys.co.uk/TEST">
<Worksheet>
<Row>
<Column1>Col1</Column1>
<Column2>Col2</Column2>
</Row>
<Row>
<Column1>R1C1</Column1>
<Column2>R1C2</Column2>
</Row>
</Worksheet>
</ns:MT_EXCEL>
On the File content converson I have
Recordset Structure Row
Row.fieldNames Column1, Column2
Row.fieldFixedLengths 10,10
Row.addHeaderLine 0
the output is just one line
Col1 R1C1
It seems to be not picking up the second column.
What am I doing wrong ?
Thanks
Paul
I thank everyone for their suggestions and links to the SAP help.
But is there anyone who can explain why I am not getting the second column in the output.
Thanks
Paul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
The problem could be with your structure. We all know that the File Content Conversion doesn't works with more than 3 levels of hierarchy.
Since your structure contains the data at the 4th level, it might be messing up the conversion.
DT_EXCEL/Worksheet/Row/Column1
Try reducing it to 3 levels i.e.
DT_EXCEL/Row/Column1.
Regards
Abhishek
Hi Paul,
Try configuring receiver file channel as below,
Refer below help document for more details,
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards
Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I set Recordset Structure to Row,*
I get error message
Conversion initialization failed:
java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters
found: Parameter '*.fieldFixedLengths' or '*.fieldSeparator' is missing
This is a receiver, your screen prints appear to be a sender adapter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
as ninad said use record set structure as Row,*,
and use ignoreRecordsetName = true as below:
here i am not using fixed length.
for more information check below:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Regards
Gagan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Row is repeating twice , Put the recordset structure as Row,*
Thanks
Ninad Sane
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.