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

Overwriting the default XML Encoding

Former Member
0 Likes
506

Hey All,

I am trying to send an IDOC using the xml port to a non sap system. The receiving system wants the xml to be encoded in "sjis" or "big5". but the problem is, sap only supports two formats, unicode and saprelease46. Is there any way I can overwrite this default encoding to the ones I need without doing a code modification.

Thanks

Rohit

2 REPLIES 2
Read only

Former Member
0 Likes
400

Hi,

I have the same problem I do fix it?

Thanks by any clue.

Wilson

Read only

former_member194669
Active Contributor
0 Likes
400

I think it is not possible.

I saw a SAP note 494650


You can only output simple prologs in Release 4.6.
There is no conversion whatsoever within the SAP System.
There is also no user exit for possible manipulation within the SAP System.
In addition to the option available as of Release 4.6, you can generate the IDoc XML file in Unicode format as of Basis Release 6.10. This means that you generally receive a UTF-8 file.
In the prolog, encoding='UTF-8' therefore represents the UTF-8 file. In addition, you cannot change encoding='UTF-8' within the SAP System.


I find encoding stores in include LEDI7TOP as


 start_tag_utf8(38) value
           '<?xml version="1.0" encoding="UTF-8"?>',   "#EC NOTEXT

aRs