<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: internal table to XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091854#M733368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use FM:GUI_DOWNLOAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 07:37:33 GMT</pubDate>
    <dc:creator>former_member188829</dc:creator>
    <dc:date>2007-11-29T07:37:33Z</dc:date>
    <item>
      <title>internal table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091853#M733367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to convert an internal table to XML. I found class CL_XML_DOCUMENT, wehre i can put an internal table, display it as xml, save it as xml in a local file on the presentation server, but i miss retrieving of the xml document as a string table, Method get_as_table dumps for an unknown reason. Does some have a code snippet of how to put an internal table into that and getting the result as a string tab? Or may be another class/function group which will offer this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 07:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091853#M733367</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-11-29T07:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091854#M733368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use FM:GUI_DOWNLOAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 07:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091854#M733368</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2007-11-29T07:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091855#M733369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please read my question carefully. I dont have any problems putting that to a file, i want to have the XML as a string table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 07:46:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091855#M733369</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-11-29T07:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091856#M733370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether the following piece of helps u.&lt;/P&gt;&lt;P&gt;  LOOP AT i_xml INTO w_xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT FIRST .&lt;/P&gt;&lt;P&gt;      v_text = text-001.                                              " Purchase Order Collection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Creating a ixml factory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_ixml = cl_ixml=&amp;gt;create( ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Creating the dom object model&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_document = v_ixml-&amp;gt;create_document( ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Fill root node with value PurchaseOrderCollection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_element_podes  = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name = v_text&lt;/P&gt;&lt;P&gt;                  parent = v_document ).&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_origin      = w_xml-country.&lt;/P&gt;&lt;P&gt;    v_supplier    = w_xml-supplier.&lt;/P&gt;&lt;P&gt;    v_mode        = w_xml-mode.&lt;/P&gt;&lt;P&gt;    v_buyingterms = w_xml-buyingterms.&lt;/P&gt;&lt;P&gt;    v_buyingagent = w_xml-buyingagent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;Conversion of Date format&lt;/STRONG&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_orddate  = w_xml-orderdate+6(2).&lt;/P&gt;&lt;P&gt;    v_ordmonth = w_xml-orderdate+4(2).&lt;/P&gt;&lt;P&gt;    v_ordyear  = w_xml-orderdate+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE v_orddate v_slash v_ordmonth v_slash v_ordyear INTO v_orderdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_shpdate  = w_xml-shipdate+6(2).&lt;/P&gt;&lt;P&gt;    v_shpmonth = w_xml-shipdate+4(2).&lt;/P&gt;&lt;P&gt;    v_shpyear  = w_xml-shipdate+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE v_shpdate v_slash v_shpmonth v_slash v_shpyear INTO v_shipdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_delvdate  = w_xml-deliverydate+6(2).&lt;/P&gt;&lt;P&gt;    v_delvmonth = w_xml-deliverydate+4(2).&lt;/P&gt;&lt;P&gt;    v_delvyear  = w_xml-deliverydate+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE v_delvdate v_slash v_delvmonth v_slash v_delvyear INTO v_deliverydate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT NEW purchaseorder .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'PurchaseOrder' as child of 'PurchaseOrderCollection'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-002.                                              " Purchase Order&lt;/P&gt;&lt;P&gt;      v_element_poid     = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  parent = v_element_podes  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create attribute 'ID' of node 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_value = w_xml-purchaseorder.&lt;/P&gt;&lt;P&gt;      v_rc = v_element_poid-&amp;gt;set_attribute( name = 'id' value = v_value ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ********* Filling up header fields ******* START&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'Order' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-003.                                              " Order&lt;/P&gt;&lt;P&gt;      v_value = w_xml-purchaseorder.&lt;/P&gt;&lt;P&gt;      v_element_ebeln    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  value  = v_value&lt;/P&gt;&lt;P&gt;                  parent = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'OrderDate' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-004.                                              " Order Date&lt;/P&gt;&lt;P&gt;      v_value = v_orderdate.&lt;/P&gt;&lt;P&gt;      v_element_aedat      = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                   name    = v_text&lt;/P&gt;&lt;P&gt;                   value   = v_value&lt;/P&gt;&lt;P&gt;                   parent  = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'Vendor' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-005.                                              " Supplier&lt;/P&gt;&lt;P&gt;      v_value = v_supplier.&lt;/P&gt;&lt;P&gt;      v_element_lifnr    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  value  = v_value&lt;/P&gt;&lt;P&gt;                  parent = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'origin' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-006.                                              " Origin&lt;/P&gt;&lt;P&gt;      v_value = v_origin.&lt;/P&gt;&lt;P&gt;      v_element_ekgrp    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  value  = v_value&lt;/P&gt;&lt;P&gt;                  parent = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'Buying Agent' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-007.&lt;/P&gt;&lt;P&gt;      v_value = v_buyingagent.                                        " Buying Agent&lt;/P&gt;&lt;P&gt;      v_element_buyer    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  value  = v_value&lt;/P&gt;&lt;P&gt;                  parent = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'Mode' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-008.                                              " Mode&lt;/P&gt;&lt;P&gt;      v_value = v_mode.&lt;/P&gt;&lt;P&gt;      v_element_mode     = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  value  = v_value&lt;/P&gt;&lt;P&gt;                  parent = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'ShipDate' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-009.                                              " Ship Date&lt;/P&gt;&lt;P&gt;      v_value = v_shipdate.&lt;/P&gt;&lt;P&gt;      v_element_zzshpdat  = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name    = v_text&lt;/P&gt;&lt;P&gt;                  value   = v_value&lt;/P&gt;&lt;P&gt;                  parent  = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element'Buyingterm' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-010.                                              " Buying Terms&lt;/P&gt;&lt;P&gt;      v_value = v_buyingterms.&lt;/P&gt;&lt;P&gt;      v_element_zterm    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  value  = v_value&lt;/P&gt;&lt;P&gt;                  parent = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ********* Filling up header fields ******* END&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'LineItemsCollection' as child of 'PurchaseOrder'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-011.                                              " Line items Collection&lt;/P&gt;&lt;P&gt;      v_element_lines    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  parent = v_element_poid  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AT NEW lineitem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Create element 'LineItem' as child of 'LineItemsCollection'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      v_text = text-012.                                              " Line Item&lt;/P&gt;&lt;P&gt;      v_element_line     = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                  name   = v_text&lt;/P&gt;&lt;P&gt;                  parent = v_element_lines  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create element 'Line' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-013.                                                " Line&lt;/P&gt;&lt;P&gt;    v_value = w_xml-lineitem.&lt;/P&gt;&lt;P&gt;    v_element_item     = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'matnr' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-014.                                                " Product Code&lt;/P&gt;&lt;P&gt;    v_value = w_xml-productcode.&lt;/P&gt;&lt;P&gt;    v_element_matnr    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'description' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-015.                                                " Description&lt;/P&gt;&lt;P&gt;    v_value = w_xml-productdescription.&lt;/P&gt;&lt;P&gt;    v_element_makt     = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'quantity' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-016.                                                " Quantity&lt;/P&gt;&lt;P&gt;    v_value = w_xml-quantity.&lt;/P&gt;&lt;P&gt;    v_element_menge    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'warehouse' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-017.                                                " Warehouse&lt;/P&gt;&lt;P&gt;    v_value = w_xml-warehouse.&lt;/P&gt;&lt;P&gt;    v_element_wareh    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'Color' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-018.                                                " Color&lt;/P&gt;&lt;P&gt;    v_value = w_xml-color.&lt;/P&gt;&lt;P&gt;    v_element_color    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'size' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-019.                                                " Size&lt;/P&gt;&lt;P&gt;    v_value = w_xml-productsize.&lt;/P&gt;&lt;P&gt;    v_element_size     = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'netpr' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-020.                                                " Price&lt;/P&gt;&lt;P&gt;    v_value = w_xml-price.&lt;/P&gt;&lt;P&gt;    v_element_netpr    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'orderstatus' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-021.                                                " Order Status&lt;/P&gt;&lt;P&gt;    v_value = w_xml-orderstatus.&lt;/P&gt;&lt;P&gt;    v_element_ordst    = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Create attribute 'Deliverydate' as child of 'LineItem'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    v_text = text-022.                                                " Delivery Date&lt;/P&gt;&lt;P&gt;    v_value = v_deliverydate.&lt;/P&gt;&lt;P&gt;    v_element_delvdt   = v_document-&amp;gt;create_simple_element(&lt;/P&gt;&lt;P&gt;                name   = v_text&lt;/P&gt;&lt;P&gt;                value  = v_value&lt;/P&gt;&lt;P&gt;                parent = v_element_line ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR w_xml.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Creating a stream factory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  v_streamfactory = v_ixml-&amp;gt;create_stream_factory( ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Connect internal XML table to stream factory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  v_ostream = v_streamfactory-&amp;gt;create_ostream_itable( table = i_xml_table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Rendering the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  v_renderer = v_ixml-&amp;gt;create_renderer( ostream  = v_ostream&lt;/P&gt;&lt;P&gt;                                        document = v_document ).&lt;/P&gt;&lt;P&gt;  v_rc = v_renderer-&amp;gt;render( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " P_XML&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  P_xml_SAVE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Saving the XML file in the Application layer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM p_xml_save .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;                      Saving the XML document                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; v_xml_size = v_ostream-&amp;gt;get_num_written_raw( ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     bin_filesize = v_xml_size&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     filename     = 'C:\Documents and Settings\231539.tcsdz\desktop\test.xml'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     filetype     = 'BIN'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     data_tab     = i_xml_table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS       = 24.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kavitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 07:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091856#M733370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T07:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091857#M733371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have not already checked this blog... &lt;/P&gt;&lt;P&gt;&amp;lt;a href="/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach:///people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it was very useful when i had a similar requirement... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 07:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091857#M733371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T07:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091858#M733372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following code to translate an internal table to XML. The probelm is that when I transfer the XML to a presentation server # appear at the end of the file. I am transfering the file to a Unix server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Warehouse Instruction&amp;gt;########################################  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get rid of the #.&lt;/P&gt;&lt;P&gt;The other probelm is that the tag &amp;lt;item&amp;gt; always forms part of the XML. I don't want it to appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CREATE THE XML OBJECT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT L_XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CONVERT THE DATA TO XML&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD L_XML-&amp;gt;CREATE_WITH_DATA( NAME = 'WH ' DATAOBJECT =&lt;/P&gt;&lt;P&gt;WHINS[] ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method l_xml-&amp;gt;get_as_table&lt;/P&gt;&lt;P&gt;              importing table = lt_data&lt;/P&gt;&lt;P&gt;                        size  = l_size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET outfile IN BINARY MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRANSFER t_test-t_data to outfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET outfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2008 08:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml/m-p/3091858#M733372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-23T08:25:25Z</dc:date>
    </item>
  </channel>
</rss>

