on 06-17-2014 6:34 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shivanjali,
Add below FCC parameter and check the result.
Header.beginSeparator = UTF-8'nl'
Regards,
Krupa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.