<?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: cl_xml_document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502247#M232431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. we have to use&lt;/P&gt;&lt;P&gt;  OPEN DATASET, READ DATASET, CLOSE DATASET&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2. concept / commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. for reading file from application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2006 10:02:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-14T10:02:29Z</dc:date>
    <item>
      <title>cl_xml_document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502245#M232429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have a program that reads and xml file. It uses cl_xml_document-&amp;gt;import_from_file to read the file from a given path. This works fine, but my problem is that I need to run the program as a batch jobb and the import_from_file method uses gui_upload which can not be run as a batch (no_batch).&lt;/P&gt;&lt;P&gt;I need to find another way to read the file. Can anyone please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 09:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502245#M232429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T09:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: cl_xml_document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502246#M232430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I heard that it should be posible to use GUI_UPLOAD in background mode also. anyone who knows more about that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 09:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502246#M232430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: cl_xml_document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502247#M232431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. we have to use&lt;/P&gt;&lt;P&gt;  OPEN DATASET, READ DATASET, CLOSE DATASET&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2. concept / commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. for reading file from application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 10:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502247#M232431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: cl_xml_document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502248#M232432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer thses links:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1325487"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 10:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502248#M232432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T10:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: cl_xml_document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502249#M232433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, but if I have to use the open/read/close dataset solution I also have to rewrite my code to find det data in the xml-nodes. &lt;/P&gt;&lt;P&gt;The way I do it now is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&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;CREATE XML DOCUMENT&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;  create object lo_xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;GET XML FROM FILE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  call method lo_xml-&amp;gt;import_from_file&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      filename = p_outfil&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      retcode  = lv_retcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GET ROOT OF XML DOCUMENT --&amp;gt; ORDERS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  w_root1          = lo_xml-&amp;gt;get_first_node( ).&lt;/P&gt;&lt;P&gt;  w_node_name     = lo_xml-&amp;gt;get_node_name( node = w_root1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  w_root2          = lo_xml-&amp;gt;find_node( name  = 'orders'&lt;/P&gt;&lt;P&gt;                                        root  = w_root1 ).&lt;/P&gt;&lt;P&gt;  w_node_name     = lo_xml-&amp;gt;get_node_name( node = w_root2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;NAVIGATE DOWN TO DESIRED NODE AND LOOP AT THESE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  w_index1 = 1.&lt;/P&gt;&lt;P&gt;  clear w_continue1.&lt;/P&gt;&lt;P&gt;  while w_continue1 = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear w_node_level_1.&lt;/P&gt;&lt;P&gt;    w_node_level_1  = lo_xml-&amp;gt;get_node_child( node  = w_root2&lt;/P&gt;&lt;P&gt;                                              index = w_index1 ).&lt;/P&gt;&lt;P&gt;***************&lt;/P&gt;&lt;P&gt;Any tips on how this can be done with the open dataset solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 11:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-xml-document/m-p/1502249#M232433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T11:56:18Z</dc:date>
    </item>
  </channel>
</rss>

