<?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: Reading data from XML to Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-xml-to-internal-table/m-p/2704761#M626546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Structure to Get the Client Details as in XML format
  DATA: BEGIN OF client,
          BEGIN OF Personal_Details,
            kunnr like kna1-kunnr,
            name1 like kna1-name1,
            adrnr like kna1-adrnr,
          END OF Personal_Details,
          BEGIN OF Address,
            street like adrc-street,
            city1  like adrc-city1,
          END OF Address,
          BEGIN OF Communication,
            fax_number like adrc-fax_number,
            tel_number like adrc-tel_number,
          END OF Communication,
        END OF client.
  
  DATA: it_client TYPE TABLE OF client WITH HEADER LINES,
        result LIKE client.

  DATA: xml_string TYPE string.

*  Get the Client Details into the structure to be made as an XML string

  TRY.
*  Convert the Structure to XML string
      CALL TRANSFORMATION  ('ID')
        SOURCE para = it_client
        RESULT XML xml_string.

*  Convert the XML string to structure - result
      CALL TRANSFORMATION  ('ID')
        SOURCE XML xml_string
        RESULT para = result.
 
  CATCH cx_st_error.

  ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Thangesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2007 07:55:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-27T07:55:01Z</dc:date>
    <item>
      <title>Reading data from XML to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-xml-to-internal-table/m-p/2704760#M626545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a requirement to read the data fom xml to internal table.is it possible to store deep internel table data into flat internal tables?my internel table contains 4 internel table and these 4 internel table contains 2 internel tables each...can any one help me o this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 04:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-xml-to-internal-table/m-p/2704760#M626545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T04:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from XML to Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-xml-to-internal-table/m-p/2704761#M626546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Structure to Get the Client Details as in XML format
  DATA: BEGIN OF client,
          BEGIN OF Personal_Details,
            kunnr like kna1-kunnr,
            name1 like kna1-name1,
            adrnr like kna1-adrnr,
          END OF Personal_Details,
          BEGIN OF Address,
            street like adrc-street,
            city1  like adrc-city1,
          END OF Address,
          BEGIN OF Communication,
            fax_number like adrc-fax_number,
            tel_number like adrc-tel_number,
          END OF Communication,
        END OF client.
  
  DATA: it_client TYPE TABLE OF client WITH HEADER LINES,
        result LIKE client.

  DATA: xml_string TYPE string.

*  Get the Client Details into the structure to be made as an XML string

  TRY.
*  Convert the Structure to XML string
      CALL TRANSFORMATION  ('ID')
        SOURCE para = it_client
        RESULT XML xml_string.

*  Convert the XML string to structure - result
      CALL TRANSFORMATION  ('ID')
        SOURCE XML xml_string
        RESULT para = result.
 
  CATCH cx_st_error.

  ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Thangesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 07:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-xml-to-internal-table/m-p/2704761#M626546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T07:55:01Z</dc:date>
    </item>
  </channel>
</rss>

