Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

XML string in unicode system contains junk characters.

Former Member
0 Likes
633

A function module that takes an xml structure as an input and returns a xml string as output is working correctly in a non-unicode system but not in a unicode system. The problem is that the output xml string (of type string) contains some chinese-like characters in the unicode system while it works perfectly in the non-unicode system.

Could someone please suggest what changes should be made to make this work in the unicode as well.

The function module in consideration is in SRM system, it is /SAPPSSRM/CREATE_XML.

The xml structure that it takes as input is of the following type :

dictionary structure : BBPS_XML

fields : version type string

encoding type string

elements type bbpt_xml_table. (this is a table containing xml data)

Any suggestions will be very helpful.

regards,

Priyank

A function module that takes an xml structure as an input and returns a xml string as output is working correctly in a non-unicode system but not in a unicode system. The problem is that the output xml string (of type string) contains some chinese-like characters in the unicode system while it works perfectly in the non-unicode system.

Could someone please suggest what changes should be made to make this work in the unicode as well.

The function module in consideration is in SRM system, it is /SAPPSSRM/CREATE_XML.

The xml structure that it takes as input is of the following type :

dictionary structure : BBPS_XML

fields : version type string

encoding type string

elements type bbpt_xml_table. (this is a table containing xml data)

Any suggestions will be very helpful.

regards,

Priyank

3 REPLIES 3
Read only

Former Member
0 Likes
535

solved...

Read only

Former Member
0 Likes
535

Hi Priyank,

I am having the same problem. Am using the IXML classes here to do it. It works fine in 4.7 (non-unicode) but in ECC6(Unicode) system, the output XML file contains the junk/chinese characters.

Can you explain how you solved the problem?

TQ

Read only

0 Likes
535

Hi Claire,

Its been some time since i was working on this. But as much as i can remember, i changed the encoding value to make this work.

try doing the same. probably it works for you too.