公众号:matinal 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:【ABAP系列】SAP ABAP解析XML的示例程序 前言部分 大家可以关注我的公众号,公众号里的排版更好,阅读更舒适。 正文部分 TYPE-POOLS:
l_rcTYPEi.DATA: node_rootTYPEREFTOif_ixml_element, node_itemTYPEREFTOif_ixml_element, node_currTYPEREFTOif_ixml_element.DATA: nodeTYPEREFTOif_ixml_node, iteratorTYPEREFTOif_ixml_node_iterator, nodemapTYPEREFTOif_ixml_named_node_map, node_parentTYPEREFTOif_ixml_node, attrTYPEREFTOif...
点击进入:ABAP解析XML的示例程序 代码语言:javascript 复制 TYPE-POOLS: IXML. TYPES: BEGIN OF T_XML_LINE, DATA(256) TYPE X, END OF T_XML_LINE. DATA: L_IXML TYPE REF TO IF_IXML, L_STREAMFACTORY TYPE REF TO IF_IXML_STREAM_FACTORY, L_PARSER TYPE REF TO IF_IXML_PARSER, L_I...
DATA document TYPE REF TO if_ixml_document. ixml = cl_ixml=>create( ). stream_factory = ixml->create_stream_factory( ). document = ixml->create_document( ). 1. 2. 3. 4. 5. 6. 7. 8. 9. 7.40之后-引用声明 DATA(ixml) = cl_ixml=>create( ). DATA(stream_factory) = ixm...
l_item TYPE REF TO if_ixml_element, l_element TYPE REF TO if_ixml_element, l_attribute TYPE REF TO if_ixml_attribute, l_ostream TYPE REF TO if_ixml_ostream, l_factory TYPE REF TO if_ixml_stream_factory. TYPES: BEGIN OF xml_line, ...
lr_xlsheetpr = cl_ixml=>create( )->create_document( )->create_element( name = 'sheetPr' ). DATA:lr_xloutlinepr TYPE REF TO if_ixml_element. lr_xloutlinepr = cl_ixml=>create( )->create_document( )->create_element( name = 'outlinePr' ). ...
工具源代码如下: 999 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 9...
DATA(ixml) = cl_ixml=>create( ).The static type of the reference variable ixml is then the interface IF_IXML, which contains all factory methods required to create further objects, such as streams, XML documents, parsers, or renderers. This factory object is a singleton and can only ...
DATA: lo_http_client TYPE REF TO if_http_client, lv_service TYPE string, lv_result TYPE string. "xml variables DATA: lo_ixml TYPE REF TO if_ixml, lo_streamfactory TYPE REF TO if_ixml_stream_factory, lo_istream TYPE REF TO if_ixml_istream, lo_document TYPE REF TO if_ixml_d...
生成XML文件ABAP程序 REPORT zams_xml_dom_create . TYPE-POOLS: ixml. CLASS cl_ixml DEFINITION LOAD. TYPES: BEGIN OF xml_line, data(256) TYPE x, END OF xml_line. DATA: l_ixml TYPE REF TO if_ixml, l_streamfactory TYPE REF TO if_ixml_stream_factory, l_ostream TYPE REF TO if_i...