01-25-2008 7:52 PM
Hi to all,
I need info about the class CL_XML_DOCUMENT and his methods.
I only have seen information of a few methods.
Where can I find more information and examples of use about this class?
01-26-2008 7:32 PM
Hello Kata
You may have a look at package SIXML and its sub-packages for sample reports using class CL_XML_DOCUMENT.
Regards
Uwe
01-26-2008 8:09 PM
01-29-2008 8:49 AM
Hello Kata
Following is a sample coding to display an IDoc as XML:
DATA:
ld_rc TYPE i,
ld_xmldata TYPE string,
lo_idoc_xml1 TYPE REF TO cl_idoc_xml1,
lo_doc TYPE REF TO cl_xml_document.
CREATE OBJECT lo_idoc_xml1
EXPORTING
docnum = <number of IDoc>.
CALL METHOD lo_idoc_xml1->get_xmldata_as_string
IMPORTING
data_string = ld_xmldata.
CREATE OBJECT lo_doc.
" Parse XML string
CALL METHOD lo_doc->parse_string
EXPORTING
stream = ld_xmldata
receiving
retcode = ld_rc.
lo_doc->display( ). " Display IDoc-XML
Regards,
Uwe