Skip to Content

FCC -- Need two header lines

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

FCC.jpg (42.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Jun 17, 2014 at 06:51 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Jun 17, 2014 at 07:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 17, 2014 at 07:36 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 17, 2014 at 06:58 AM

    Hi Shivanjali,

    Add below FCC parameter and check the result.

    Header.beginSeparator = UTF-8'nl'

    Regards,

    Krupa

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 17, 2014 at 07:18 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded