Application Development 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: 

How to convert xml to table, using xml transformation, at utf-8 format.

shiz0frenik
Participant
0 Kudos
450

Hi, experts.

How to convert xml to table, using xml transformation, at utf-8 format?
i'm calling an xml transformation, but cyrillic values are not readable, although it's readable at xml_final.

 

      CALL TRANSFORMATION (lv_trans_name)
      SOURCE XML xml_final
      RESULT root = it_tab.

 



4 REPLIES 4

Sandra_Rossi
Active Contributor
425

CALL TRANSFORMATION considers that a SOURCE XML variable of type XSTRING (bytes) are characters encoded in UTF-8.

So, I guess your ultimate question is "how to encode characters from STRING to XSTRING in UTF-8"? (question unrelated to CALL TRANSFORMATION)

GrahamRobbo
Active Contributor
334

Hi Shiz,

It may not help but you could try populating the itab with data and then converting it to XML. You could then look at the resulting XML for any "features" you may have overlooked. 😜

Cheers
Graham Robbo

raymond_giuseppi
Active Contributor
0 Kudos
207

How is the original XML encoded?

 

<?xml version="1.0" encoding="UTF-8"?>

 

What is  the  current code page of AS ABAP?

 

0 Kudos
203

There is no encoding, original is russian, solved with converting source xml to xstring