cancel
Showing results for 
Search instead for 
Did you mean: 

Add header line to the text file in receiver file adapter

Former Member
0 Kudos

Hello Experts,

I have to add a new line to the text file generated at the receiver end.

My structure is

Record

Item......0-unbounded

field1

field2

field3

I have defined below parameters in receiver FCC.

RecordSet Structure : Record,Item

Item.fieldSeparator : ;

Record.fieldSeparator : nl

Record.endSeparator : '0x0D''0x0A' ( this is to get a carriage return at the end of the file)

Item.addHeaderLine : 1

With the above configuration, i am getting the desired output with NO header line.

Please help.

Thanks,

Swetha.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, it looks like that the headerline "specification is only permitted if exactly one structure is defined." Please check [SAP help under Define Parameters for Recordset Structures|http://help.sap.com/saphelp_nw73/helpdata/en/44/686e687f2a6d12e10000000a1553f6/frameset.htm].

One solution would be to generate the header fields in the message payload. Generate an additional first line containing the header names, e.g.

<Item>
<field1>Header1
<field2>Header2
<field3>Header3