Skip to Content
-2

Unable to get the tag in xml .

Apr 13, 2017 at 06:50 AM

57

avatar image

i am creating an xml without call transformation method .

after creating xml file i am getting this tag <?xml version="1.0"?>.

but the requirement is to get this tag

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

kindly help.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Blesso Joshua Arulraj Apr 13, 2017 at 07:11 AM
0

Try this code.

CALL TRANSFORMATION id_indent
SOURCE main_tag = it_xml
RESULT XML xml_result.
TRY.
CALL METHOD cl_abap_conv_in_ce=>create
EXPORTING
encoding = 'UTF-8'
input = xml_result
RECEIVING
conv = convin.

CALL METHOD convin->read
IMPORTING
data = l_data.
ENDTRY.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

i am working on sap46c so no call transformation is there.

can you please tell th other way

0