<?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: xml to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722907#M631733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello San&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the function module &amp;lt;b&amp;gt;EPS_FTP_PUT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2007 13:21:00 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-08-15T13:21:00Z</dc:date>
    <item>
      <title>xml to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722902#M631728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;     I have a requirement like , i need to convert xml file to internal table,and the file will be present in application server,, i got a code from sdn , it is working fine for presentation server file(conversion of xml to internal table),, and i want to know is there any function module to do the same,,,,,,,,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me urgent...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 03:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722902#M631728</guid>
      <dc:creator>former_member842213</dc:creator>
      <dc:date>2007-08-15T03:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: xml to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722903#M631729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello San&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following sample report &amp;lt;b&amp;gt;BCCIIXMLT2&amp;lt;/b&amp;gt; (package SIXML_TEST, on ECC 5.0) shows how to process XML files stored on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*  BCCIIXMLT2 - sample program
*
*  This sample program shows how to read an XML document from a file
*  in the appserver's file system, parse the document into a DOM
*  representation and display the content as a list.
*  Additionally the DOM representation is rendered back into an XML
*  stream and stored as an output XML file on the appserver machine.
*
*  This sample program uses ABAP strings to represent the XML input
*  and output streams. See BCCIIXMLT1 for using internal tables.
*

report bcciixmlt2 message-id bcciixmlt3_msg line-size 1000.

start-of-selection.

parameters: filename(80) type c
              default 'tempREC-xml-19980210.xml'. "#EC NOTEXT

*-- read the XML document from a dataset into a string
data: inputstring type xstring.
open dataset filename for input in binary mode.
if sy-subrc ne 0.
  message e000.
endif.
read dataset filename into inputstring.
close dataset filename.

*-- create the main factory
data: pixml type ref to if_ixml.
pixml = cl_ixml=&amp;gt;create( ).

*-- create the initial document
data: pdocument type ref to if_ixml_document.
pdocument = pixml-&amp;gt;create_document( ).

*-- create the stream factory
data: pstreamfactory type ref to if_ixml_stream_factory.
pstreamfactory = pixml-&amp;gt;create_stream_factory( ).

*-- create a stream for the input (string)
data: pistream type ref to if_ixml_istream.
pistream = pstreamfactory-&amp;gt;create_istream_xstring( inputstring ).


*-- create the parser
data: pparser type ref to if_ixml_parser.
pparser = pixml-&amp;gt;create_parser( stream_factory  = pstreamfactory
                                  istream       = pistream
                                  document      = pdocument ).

*-- parse the stream
if pparser-&amp;gt;parse( ) ne 0.
  if pparser-&amp;gt;num_errors( ) ne 0.
    data: count type i.
    count = pparser-&amp;gt;num_errors( ).
    write: count, ' parse errors have occured:'.    "#EC NOTEXT
    data: pparseerror type ref to if_ixml_parse_error,
          i type i.
    data: index type i value 0.
      while index &amp;lt; count.
        pparseerror = pparser-&amp;gt;get_error( index = index ).
        i = pparseerror-&amp;gt;get_line( ).
        write: 'line: ', i.                         "#EC NOTEXT
        i = pparseerror-&amp;gt;get_column( ).
        write: 'column: ', i.                       "#EC NOTEXT
        data: string type string.
        string = pparseerror-&amp;gt;get_reason( ).
        write: string.
        index = index + 1.
      endwhile.
  endif.
endif.

*-- we don't need the stream any more, so let's close it...
clear pistream.


*-- just for fun: render the DOM back into an output stream/xstring
data: postream type ref to if_ixml_ostream,
      outputstring type xstring.
postream = pstreamfactory-&amp;gt;create_ostream_xstring( outputstring ).
call method pdocument-&amp;gt;render( ostream = postream ).

*-- write the XML document as a dataset
data: dsn(80) type c.
concatenate filename '.out' into dsn.              "#EC NOTEXT
transfer outputstring to dsn.


*-- print the whole DOM tree as a list...
data: pnode type ref to if_ixml_node.
pnode = pdocument.
perform print_node using pnode.





*---------------------------------------------------------------------*
*       FORM print_node                                               *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
form print_node using value(pnode) type ref to if_ixml_node.
  data: indent      type i.
  data: ptext       type ref to if_ixml_text.
  data: string      type string.

  indent  = pnode-&amp;gt;get_height( ) * 2.

  case pnode-&amp;gt;get_type( ).
    when if_ixml_node=&amp;gt;co_node_element.
      string  = pnode-&amp;gt;get_name( ).
      write: at /indent '&amp;lt;', string, '&amp;gt; '.          "#EC NOTEXT
    when if_ixml_node=&amp;gt;co_node_text.
       ptext ?= pnode.
       if ptext-&amp;gt;ws_only( ) is initial.
        string = pnode-&amp;gt;get_value( ).
        write: at /indent string.
       endif.
  endcase.

  pnode = pnode-&amp;gt;get_first_child( ).
  while not pnode is initial.

     perform print_node using pnode.
     pnode = pnode-&amp;gt;get_next( ).

  endwhile.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 03:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722903#M631729</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-15T03:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: xml to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722904#M631730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;can i use the same in 4.7c...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 06:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722904#M631730</guid>
      <dc:creator>former_member842213</dc:creator>
      <dc:date>2007-08-15T06:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: xml to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722905#M631731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello San&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to check whether the classes are already available on SAP Basis 6.20 (=&amp;gt; 4.70).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 06:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722905#M631731</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-15T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: xml to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722906#M631732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks it is working fine,, may i know how to transfer the xml file from one directory to another directory in application server...i tried , the file is transfered but it doesnt ve any data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 10:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722906#M631732</guid>
      <dc:creator>former_member842213</dc:creator>
      <dc:date>2007-08-15T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: xml to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722907#M631733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello San&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the function module &amp;lt;b&amp;gt;EPS_FTP_PUT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 13:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/2722907#M631733</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-15T13:21:00Z</dc:date>
    </item>
  </channel>
</rss>

