cancel
Showing results for 
Search instead for 
Did you mean: 

Add field heading in receiver file

Former Member
0 Kudos

Hi friends,

My requirement is to put the column headings in file for just a recap of what each column represents.

My structure contains only one root node: Records

Please tell me the structure that need to be defined for displaying the field headings.

As per my knowledge, by adding

“Records.addHeaderLine = 1” provides first column by space to the file. If I am correct then how can I display the columns heading.

If not correct please suggest the correct way for approaching the same.

Thanks in advance,

Regards,

Prathibha.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prathibha,

You are absolutly on right track...you could use the Records.addHeaderLine to add the column header lines.

xml.addHeaderLine=<n>

Specify whether the text file should have a header line with column names. The following values are permitted:

&#9632; 0 – No header line

&#9632; 1 – Header line with column names from the XML document

&#9632; 2 – as for 1, followed by a blank line

&#9632; 3 – Header line is stored as xml.headerLine in the configuration and is applied

&#9632; 4 – as for 3, followed by a blank line

This specification is mandatory.

&#9675; xml.headerLine=<headerLineString>

Specify the header line that is generated in the text file if xml.addHeaderLine has the value 3 or 4. This specification is mandatory.

Refer,

Configuring the Receiver File/FTP Adapter

http://help.sap.com/saphelp_nw04/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm

Thanks

Swarup

Former Member
0 Kudos

Hi Prathibha!

You are right..

Check this blog as a guide:

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Regards,

Matias

ps: please award points if helpful