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

DMEE: XML Encoding UTF-8/UTF-16

Former Member
0 Likes
7,271

Hi,

I'm generating automatic payment files via program run SAPFPAYM_SCHEDULE.

The file is generated under UTF-8 but when generated on SAP server become UTF-16.

=> When double clicking on the Z_XML20022 and clicking on glasses you can see "<?xml version="1.0"

encoding="utf-8"?>"

=> When you have a look under AL11

/interfaces_sec/DECCLNT300/FI_payment_SAP032/out/PSAPCIT.PAYMENT_CN10_1. it's <?xml version="1.0"

encoding="utf-16"?>

I need to have utf-8.

Thanks in advance for your help.

7 REPLIES 7
Read only

Former Member
0 Likes
3,037

Hi,

If you using XSLT, you may use this transformation (based on your XML example, but simplified):

<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:sap="http://www.sap.com/sapxsl"

xmlns:am="http://www.xxx.com/ActionMessage"

version="1.0">

<xsl:strip-space elements="*"/>

<xsl:output encoding="utf-8"/>

"your rest XML data"

</xsl:transform>

PS: I advise you to read the Note 1017101 - Encoding Problems with ABAP XML Processing, which explains better what I said above.

Read only

0 Likes
3,037

Hi sum_it2,

Thanks for your reply.

How do I determine or write the rest of the XML data?

Read only

0 Likes
3,037

Hi Marc,

Is your problem solved, actually i am suffering from the same problem.

Regards,

Kartheek,.

Read only

0 Likes
3,037

Hello,

We are also facing the same problem.

Did you resolve it ?

Thanks

Read only

Former Member
0 Likes
3,037

Please follow the steps in the below link, Add your XML formats in BADI,

  • Go to transaction SE19;
  • Call the classical BAdI DMEE_XML_BADI_01
  • Add your PMW XML file format entries.

http://wiki.scn.sap.com/wiki/display/ERPFI/Common+issue+with+SEPA+File+created+by+PMW+program

Read only

Former Member
0 Likes
3,037

Hello

I had the same issue with a SEPA XML file that the bank want in UTF-8 instead of UTF-16.

I was getting the UTF-16 format when dowloading the file from FDTA transaction. But if you see the file on FDTA directly, you see the coding and the format is UTF-8 on the original file. So from this screen where you can actually see the xml file I did menu XML - Download. Then the file is not converted to UTF-16 but remains in his original format UTF-8.

I hope this workarround helps you.

David

Read only

tamil_arasan
Active Contributor
0 Likes
3,037

Hi,

We had same problem and applied the note 1730272 resolve the issue. hope it will be useful to anyone.

Thanks,

Pradeep