cancel
Showing results for 
Search instead for 
Did you mean: 

Header Line not being added

alishoukat
Explorer
0 Kudos

I have a receiver file channel (FCC),

I have to add the fieldnames in the first row.

I looked around and found that it can be done thru addHeaderLine.

i configured my channel as follows, but header line in not added in target file.

Please help me

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Shoukat

addHeaderLine is only available if you have only 1 structure defined.

Refer to following section of Help SAP link below.

Converting XML in the Receiver File/FTP Adapter to Text Format - Advanced Adapter Engine - SAP Libra...

Btw, your FCC configuration has a lot of inconsistencies

- what is difference between Row_Record and Data_Record

- you cannot use both fixed length and separator.

I'd suggest that you search in SCN for some examples/wiki on how to properly configure FCC in receiver File channel.

Rgds

Eng Swee

Former Member
0 Kudos

Hi Eng Swee,

We can use both fixed length and fieldSeparator. It worked for me .

As Per help document

NameA.fieldSeparator

Enter a string. It is added as a separator in all columns apart from the last. You can specify this string in addition to NameA.fieldFixedLengths.

If you made no entry for NameA.fieldFixedLengths, this is the only entry to identify the individual columns in a row.

If you made a specification for NameA.fieldFixedLengths, the length of the separator is not taken into account.

Converting XML in the Receiver File/FTP Adapter to Text Format - Advanced Adapter Engine - SAP Libra...

Regards,

Suhale Shaik.

Answers (3)

Answers (3)

alishoukat
Explorer
0 Kudos

Headed line works for only one structure.

And it did not work with field fixed length.

Former Member
0 Kudos

Hi Ali,

What is your exact structure? You mentioned Row_Record.fieldSeparator, What about the other parameters.

Please check your FCC receiver structure and define the parameters as per the structure.

Is there any fields in Row_Record structure?

As per Pradeep's reply please check your structure.

Regards,

Suhale Shaik.

Former Member
0 Kudos

Hello Shoukat,

I am not sure why are you mentioning Row_Record.

As per my assumption Data_Record has multiple Occurance and this node(Data_Record) is sub node of Row_Record.

If this is the case, delete Row_Record from Recordset Structure and from first line in parameter table.

This will resolve your issue.

Award points if helpful...that will encourage people to help each other..:)

Regards,

Pradeep