*&---------------------------------------------------------------------*
*& Report ZDEMO06
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo06.
*----------------------------------------------------------------------*
* CLASS demo DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS demo DEFINITION.
PUBLIC SECTION.
CLASS-METHODS main.
ENDCLASS. "demo DEFINITION
*----------------------------------------------------------------------*
* CLASS demo IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS demo IMPLEMENTATION.
METHOD main.
DATA:BEGIN OF gs_itab,
matnr TYPE makt-matnr,
maktx TYPE makt-maktx,
END OF gs_itab,
gt_itab LIKE TABLE OF gs_itab,
xmlstr TYPE xstring.
SELECT matnr maktx UP TO 20 ROWS
INTO TABLE gt_itab
FROM makt.
CALL TRANSFORMATION id
SOURCE table = gt_itab
RESULT XML xmlstr.
cl_abap_browser=>show_xml( xml_xstring = xmlstr ).
ENDMETHOD. "main
ENDCLASS. "demo IMPLEMENTATION
START-OF-SELECTION.
demo=>main( ).
阅读(1746) | 评论(0) | 转发(0) |