cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver file Content Conversion with Header line

Former Member
0 Kudos

Hi,

Here I am doing receiver file content conversion with header line.

I am able to get the output file correct, when I open the file in notepad the header line and data appearing in the same line (not accepted).

But when I tried to open the name file in internet explorer I can see the header line and data in two different lines (accepted).

What should I do I want to see the same output in the notepad?

Please help me out.

Thanks in advance,

Srikanth.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You can use NameA.addHeaderLine.

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

0 u2013 No header line

1 u2013 Header line with column names from the XML document

2 u2013 As for 1, followed by a blank line

3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied

4 u2013 As for 3, followed by a blank line

The below weblinks will help you to know the other paramters.

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

http://help.sap.com/saphelp_nwpi71/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm

dirk_freyaldenhoven
Active Participant
0 Kudos

I'm using 3, the problem is the missing CRLF for the header line.

dirk_freyaldenhoven
Active Participant
0 Kudos

Hello Srikanth,

I also have the problem, that the line feed is missing for the header line.

We have following content conversion parameters in file receiver communication channel:

ROW.fieldSeparator = \r\n

ROW.endSeparator = \r\n

ROW.fieldNames = CompleteLine

ROW.addHeaderLine = 3

ROW.headerLine = Header line

The result in notepad looks like:

Header line01DataRec

02DataRec

03DataRec

04DataRec

Did you get a solution for this issue?

Thanks, Best Regards, Dirk

Shabarish_Nair
Active Contributor
0 Kudos

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

<i>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

Note: This specification is only permitted if exactly one structure is defined.

NameA.headerLine

Specify the header line that is generated in the text file if NameA.addHeaderLine has the value 3 or 4. This specification is mandatory in this case.</i>

use the headerline option !!!

Also have you used the endSeparator option ? Give it as a new line !!!