cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in File to File scenario.

Former Member
0 Kudos

Hi Experts,

In file to file scenario the messages are coming with tag encoding=UTF-16 instead of UTF-8 .in SXMB_MONI as shown below:

Error detail:

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

-


Switch from current encoding to specified encoding not supported. Error processing resource 'http://xxx.mdt/messa...

<?xml version="1.0" encoding="utf-16"?><Document xmlns="urn:iso:std:iso:xxxx

Upto last week the messages are observed with the tag <?xml version=''1.0'' encoding=''UTF-8'' in SXMB_MONI. But from yesterday onwards the messages are shown with UTF-16 encoding.

Please share the inputs where is the problem we need to check.

Thanks in advance.

Regards

Mahesh.S

Accepted Solutions (1)

Accepted Solutions (1)

naveen_chichili
Active Contributor
0 Kudos

Hi Mahesh,

There might be some change in the input file format.

if this is the case then you need to change the encoding in communication channel....Refer the below link for ref..

http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

Regards,

Naveen

Edited by: chichilin on Sep 22, 2011 10:16 PM

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Stefen,

<<<Do you mean: The sender of the files provides UTF-16 encoded XML files? >>>

Yes. Your guess is correct. Actually due to the R/3 system upgrade this issue occured. Encoding changed when the data is triggering from R/3 system(source). After upgrade some filters are missing in related BADI and issue resolved.

@ALL: Thank you so much for your replies.

Regards

Mahesh

Former Member
0 Kudos

Hi Mahesh,

Check it out Once

subhro_de
Active Participant
0 Kudos

A number of modules are available to change the encoding which can be used.If this is a text file (MIME type is text/plain) and your XI has SP18 -you can use TextCodepageConversionBean in the file communication channel - with parameter Conversion.charset = 'UTF-8' (using MessageTransformBean is another option). You can also use XmlAnonymizerBean to change the xml encoding definition header to UTF-8 too.But you should check what made the charset to change to UTF-16 in first place , is it that your source system is providing it in this (UTF-16) charset now.

stefan_grube
Active Contributor
0 Kudos

> Upto last week the messages are observed with the tag <?xml version=''1.0'' encoding=''UTF-8'' in SXMB_MONI. But from yesterday onwards the messages are shown with UTF-16 encoding.

Do you mean: The sender of the files provides UTF-16 encoded XML files?

Former Member
0 Kudos

Hi Mahesh,

Check what you have configured in the Receiver FILE channel at File Encoding it should be UTF-8 , find the below details;

File Type = Text

File Encoding = utf-8

If not change accordingly and check whether you are receiving the data as expected.

- Muru