DATA itab TYPE TABLE OF i WITH EMPTY KEY.
itab = VALUE #( ( 1 ) ( 2 ) ( 3 ) ).
CALL TRANSFORMATION id SOURCE itab = itab
RESULT XML DATA(xml).
cl_abap_browser=>show_xml( xml_xstring = xml ).
DATA itab TYPE TABLE OF i WITH EMPTY KEY.
itab = VALUE #( ( 1 ) ( 2 ) ( 3 ) ).
DATA(json_writer) = cl_sxml_string_writer=>create(
type = if_sxml=>co_xt_json ).
CALL TRANSFORMATION id SOURCE itab = itab
RESULT XML json_writer.
DATA(json) = json_writer->get_output( ).
cl_abap_browser=>show_xml( xml_xstring = json ).
cl_abap_browser=>show_html( html_string =
cl_abap_codepage=>convert_from( json ) ).
cl_demo_output=>display_json( json ).
CALL TRANSFORMATION sjson2html SOURCE XML json
RESULT XML DATA(html).
cl_abap_browser=>show_html( html_string =
cl_abap_codepage=>convert_from( html ) ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
4 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |