Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Transformation encoding ABAP <-> XML

Dear all!

We're transforming an ABAP-Structure via "Call transformation id" into XML on a non-unicode system. Then the file is given to a unicode system and there we're trying to "unpack" the XML again with "Call transformation id". Now there occurs an error because of the encoding. The XML string inlcudes the encoding = iso-8859-1.

How can I deserialize the XML on an unicode system? How can the "encoding" be manipulated (please do not offer tips to parse the string and to replace the characters... )? What encoding should be used?

Thanks and kind regards,

Klaus

Tags:
replied

Hi Claus,

Check the following piece of documentation:

"Addition 3

... OPTIONS a1 = e1 a2 = e2 ...

Effect

You can use this addition to specify the values e1, e2 ... for addtional control options a1, a2 ... of the transformation. The values e1, e2 ... must be of the type c or string.

For a1, a2 ..., you can specify the following values:

XML_HEADER to control the output of the XML headers in case of a transformation to XML and the storage in a data object of the type c, string or in an internal table.

Possible values Meaning

no: No output of an XML header

without_encoding: Output of an XML header without specification of encodings

full: Default setting, output of an XML header with specification of encodings "

Regards,

Ravi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question