cancel
Showing results for 
Search instead for 
Did you mean: 

FCC -- Need two header lines

Former Member
0 Kudos

Hi All,

In my file receiver communication channel, I need to have 2 header line.

In first header line hardcoded "UTF-8" needs to be written and second line will have actual column names.

If its just one header with actual column names, I am able to achieve. But not sure how to add one more line on Top with "UTF-8".

Please advice.

Thanks

Shivi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gagandeep,

I am not clear with your target structure, where exactly this value field which you are mapping with constant UTF-8, as well as all other headers like encode and Record.

Could you please help.

Thanks

Shivi

former_member184789
Active Contributor
0 Kudos

Hi,

Gagandeep is saying that first these header values such as UTF-8 should be populated using FCC followed by the fields values. You can have a dummy segment before your original segment as suggested by Venkat & in the field of this segment you will populate these headers & since the end separator is nl, the two headers will be populated like:

Header-1

Header-2

Fields........

FIelds.......

The header-1 & 2 will be there in the dummy segment & will be mapped as constant.

For eg:

Dummy Header

Constant(UTF-8)-> Heading1

Constant(Preferred Language,Email,etc)->Heading2

Original Segment

Field1

Field2

etc.

Answers (4)

Answers (4)

gagandeep_batra
Active Contributor
0 Kudos

Hi Shivanjali,

We also face same requirement and we done this as below:

create a target structure as below and map the hard coded value

and in FCC we used below:

Regards

GB

Former Member
0 Kudos

Hi,

Add One more segment and value as below in receiver structure and map segment with constant and value as UTF-8

DummyHeader  1..1    segment

     HeaderVal   1..1  value

Regards

Venkat

iaki_vila
Active Contributor
0 Kudos

Hi Shivanjli,

Have you tried with?:

Header.addHeaderLine      3

Header.headerLine             UTF-8


(Converting File Content in the Receiver Adapter (SAP Library - Partner Connectivity Kit))


Regards.

Former Member
0 Kudos

Hi Shivanjali,

Add below FCC parameter and check the result.

Header.beginSeparator = UTF-8'nl'

Regards,

Krupa

Former Member
0 Kudos

Hi Krupa,

I tried this, it doesn't work 😞

Regards

Shivi