on 02-04-2015 12:58 PM
Hi Peter,
Please refer below thread.
http://scn.sap.com/thread/3434421
Please let us know what exactly your problem is ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can produce following message
20005934,01.01.2015,Company,Test,01.01.2015,description |
bu i need the name of the datatypes as header like below
UserId,lastModified,cerName,institution,datetaken,description |
20005934,01.01.2015,Company,Test,01.01.2015,description 20005935,01.03.2015,Company,Test,01.03.2015,description 20005936,01.04.2015,Company,Test,01.04.2015,description |
Hi Peter,
you have to set the paramter addHeaderLine Parameter accordingly:
or
From SAP Doku
addHeaderLine
Only define this parameter if you have already defined singleRecordType.
Define whether a header line is to be added to the result of the conversion.
○ none (default)
Does not insert a header line
○ fromXML
The header line is generated from the element name of the first recordset of the XML document
○ fromConfiguration
The header line is determined by the configuration parameter headerLine.
headerLine
Only define this parameter if you have already set addHeaderLine=fromConfiguration.
The value that you define is placed in front of the result of the conversion as a header line.
Can you please try this configuration
xml.addHeaderLine = 3
xml.headerLine = UserId,lastModified,cerName,institution,datetaken,description
○ NameA.addHeaderLine
Specify whether the text file will have a header line with column names. The following values are permitted:
■ 0 – No header line
■ 1 – Header line with column names from the XML document
■ 2 – As for 1, followed by a blank line
■ 3 – Header line is stored as NameA.headerLine in the configuration and is applied
■ 4 – As for 3, followed by a blank line
Please verify that you have no leading or trailing spaces in in the parameter name (e.g. "xml.addHeaderLine ")
Also check that your changes updated the cache (Integration Builder / Environment / Cache Status Overview) - you must not see any errors here.
It would also be great if you could post a screenshot of your latest Module Configuration.
You are mixing conversion to a positional format (xml.fieldFixedLenghts) and conversion to a format with separator (xml.row.fieldseparator). Maybe this is confusing the system.
This is a working configuration, can you try setting up your scenario like this?
This scenario uses SimpleXML2Plain, which from what I see should be sufficient for you. If not, just use this a template and keep using StructXML2Plain.
Please also be sure to verify everything I said in my previous post (space and cache).
And the key to solving this addHeaderLine mystery is below
FCC parameter reference for MessageTransformBean module
That parameter is not available for StructXML2Plain conversion!
Since you just have 1 record type (just "row"), you should be using SimpleXML2Plain. This allows you to use addHeaderLine = 1.
If you need an example for SimpleXML2Plain, you can refer to the wiki entry at the end of the link above.
Rgds
Eng Swee
Hi Peter,
and what exactly is your problem? Are you getting an error message?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.