cancel
Showing results for 
Search instead for 
Did you mean: 

Query on File Adapter - HeaderLine

former_member185846
Active Participant
0 Kudos
46

Hi All,

I've a query related to FCC - header line for the following structure.

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Testxmlns:ns0="urn:test:file">

<Record>

<Record1><field1>X</field1><field2>B</field2></Record1>

<Record2><field2>C</field3><field4>D</field4></Record2>

<Record3><field3>E</field5></Record3>

</Record>

<Record>

<Record1><field1>K</field1><field2>L</field2></Record1>

<Record2><field2>M</field3><field4>N</field4></Record2>

<Record3><field3>O</field5></Record3>

</Record>

</ns0:MT_Test>

And the file output (after FCC) should be as follows, where H1, H2 and H3 are the headers and the rest are the file values.

H1,H2,H3

X;C;E

K;M;O

FCC Param is like: Record1.fieldSeparator = ; and Record1.headerLine = 1 and same for rest two. But the output file generated doesn't have the Header line generated. Please let me know the FCC setting for the same.

Thanks,

Joe.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Joe,

The parameter should be Record1.addHeaderLine = 1([http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm]

Kind regards,

Koen

Answers (1)

Answers (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

1. If u require the header to be same as the XML name then use the FCC

<Field>.addHeaderLine = 1.

2. If u want to specify your own header name use the FCC

<Field>.addHeaderLine = 3

and define the name in the FCC <Field>.headerLine

Thanks

SaNv...