cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Character encoding issue with EDIseparator while converting to EDIfact xml file.

former_member262051
Participant
0 Likes
3,931

HI Gurus,

I am facing character encoding issue for one of the EDIFACT inbound interface.

We are receiving edifact file from vendor via AS2 adapter in sap PI and it split by Ediseparator.

It will pass to sendor ediseparator and process and converting the edifact message into xml and post the data into ERP.

Here while converting to edifact xml we special character are generating with junk.

Example character is : Å

Please help me here to over come from this issue.

Regards,

Naga Uday.

Accepted Solutions (0)

Answers (7)

Answers (7)

ray_hu
Product and Topic Expert
Product and Topic Expert

Hi Naga,

As you are using EDISeparator receiver channel, please also defines the encoding of the input message in

EDISeparator receiver CC. If you do not use this parameter, the adapter will use encoding ISO-8859-15. For more details you can refer to SAP help document:

https://help.sap.com/viewer/22e34f550ba84f20b35b7652ba94ef9c/1.0.5/en-US/814d166608c54a6d92bacc233b9...

Best Regards

Ray

former_member105769
Participant
0 Likes

From AS2 channel to Splitter, the UTF8 coding gets lost by default at the Splitter Receiver.
This parameter has to be set.

philippeaddor
Active Participant
0 Likes

I had the same problem. I solved it as follows:

I configured the AS2 channel to convert form UTF-8 to ISO-8859-15 (Adaper Sepcific - Gerneal - Charset Conversion). Then, in the Edifact Sender channel (not receiver!) I've set the character encoding option ("General" tab) also to ISO-8859-15 (encoding module parameter seems not necessary anymore, since we have the configuration option on the General tab).

Regards,

Philippe

former_member262051
Participant
0 Likes

Hi Manoj,

Thanks for your Guidance...

Issue got resolved as we have requested vendor to send the data in ISO format. Now the characters coming correctly.

Regards,

Naga Uday.

former_member262051
Participant
0 Likes

Hi Manoj,

We have used module level parameter and it reading as UTF-8 but the characters are not yet changing.

encoding-issue.png

Attached the screen shot of AS2 channel parameters at module level.

Input giving as

MÅRBACKAGATAN 11

After converting into xml before message mapping

<D_3042_1>MÃ…RBACKAGATAN 11</D_3042_1>

After mapping converting to idoc xml

<STRAS>M�RBACKAGATAN 11</STRAS>

Please correct me with your inputs to over come from this issue.

Regards,

Naga Uday.

manoj_khavatkopp
Active Contributor
0 Likes

Uday,

You See the problem is not in module because the Character is represented as it is after Edifact converter module but it is getting converted into illegal character after message mapping in IDOC XML.

I would suggest you to run end to end scenario then check in ECC how the character is psoted.

Br,

Manoj

former_member262051
Participant
0 Likes

Hi Manoj,

I have tried that and alos is have added the same in TPA also. But still no luck.

And while converting the EDIFACT to xml its taking ISO-8859-1 encoding even we have maintained as UTF-8.

Please help me here.

Regads,

Uday.

manoj_khavatkopp
Active Contributor
0 Likes

Uday,

Maintaining in TPM is not mandatory until and unless you are reading the configuration from TPM

ISO-8859-1 is the default encoding taken by module EdifactConverterModule in case if you have not maintained edifact.encoding parameter.

Can you please put the screenshot of the channel configuration along with module and also the Message monitoring log of module execution.

And also do check in your first flow if the the character is coming as expected , if not then you need to enable encoding option in your encoding in AS2 channnel.

https://help.sap.com/saphelp_nw-b2b-addon102/helpdata/en/af/defce0c9a943c69e4a08dd474a9c54/content.h...

Br,

Manoj

manoj_khavatkopp
Active Contributor
0 Likes

Uday,

Did u try Adding parameter :edifact.encoding for edifact convertermodule in sender edi seperator channel.

ex: edifact.encoding utf-8

Br,

Manoj