<?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/4641845#M1092669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: TRUXS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: d_filename LIKE IBIPPARMS-PATH,&lt;/P&gt;&lt;P&gt;      it_type   TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of it_new occurs 0,&lt;/P&gt;&lt;P&gt;      knttp type eban-knttp,&lt;/P&gt;&lt;P&gt;      txz01 type eban-txz01,&lt;/P&gt;&lt;P&gt;      menge type eban-menge,&lt;/P&gt;&lt;P&gt;      meins type eban-meins,&lt;/P&gt;&lt;P&gt;      lfdat type eban-lfdat,&lt;/P&gt;&lt;P&gt;      matkl type eban-matkl,&lt;/P&gt;&lt;P&gt;      werks type eban-werks,&lt;/P&gt;&lt;P&gt;      lgort type eban-lgort,&lt;/P&gt;&lt;P&gt;      ekgrp type eban-ekgrp,&lt;/P&gt;&lt;P&gt;      bednr type eban-bednr,&lt;/P&gt;&lt;P&gt;      flief type eban-flief,&lt;/P&gt;&lt;P&gt;      ekorg type eban-ekorg,&lt;/P&gt;&lt;P&gt;      preis type eban-preis,&lt;/P&gt;&lt;P&gt;      waers type eban-waers,&lt;/P&gt;&lt;P&gt;      peinh type eban-peinh,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     sakto type ebkn-sakto,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ps_psp_pnr type ebkn-PS_PSP_PNR,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      end of it_new.&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;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      program_name  = syst-cprog&lt;/P&gt;&lt;P&gt;      dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;      field_name    = 'd_filename'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name     = d_filename.&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;  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; I_FIELD_SEPERATOR          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_LINE_HEADER              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_tab_raw_data             =  it_type&lt;/P&gt;&lt;P&gt;      i_filename                 =  d_filename&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      i_tab_converted_data       =  it_new[].&lt;/P&gt;&lt;UL&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;  CONVERSION_FAILED          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                     = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&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;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP at it_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; it_new-menge.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;******************************&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 13:38:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T13:38:14Z</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/4641841#M1092665</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;&lt;/P&gt;&lt;P&gt;I need to move data from XML flat file to internal table. Please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;srik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 16:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/4641841#M1092665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T16:04:07Z</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/4641842#M1092666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please make a search in Blogs section you can find lot of threads related to your query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 16:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/4641842#M1092666</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-10-15T16:15:58Z</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/4641843#M1092667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Befor posting just search SDN you will be getting your answer ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out these threads,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="88926"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="400266"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="82510"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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="406258"&gt;&lt;/A&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;Midhun abraham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Midhun Abraham on Oct 15, 2008 6:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 16:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/4641843#M1092667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T16:29:59Z</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/4641844#M1092668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link....i FOUND IT on this forum....very usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://heidoc.net/joomla/content/view/15/1/" target="test_blank"&gt;http://heidoc.net/joomla/content/view/15/1/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 16:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/4641844#M1092668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T16:35:13Z</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/4641845#M1092669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: TRUXS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: d_filename LIKE IBIPPARMS-PATH,&lt;/P&gt;&lt;P&gt;      it_type   TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of it_new occurs 0,&lt;/P&gt;&lt;P&gt;      knttp type eban-knttp,&lt;/P&gt;&lt;P&gt;      txz01 type eban-txz01,&lt;/P&gt;&lt;P&gt;      menge type eban-menge,&lt;/P&gt;&lt;P&gt;      meins type eban-meins,&lt;/P&gt;&lt;P&gt;      lfdat type eban-lfdat,&lt;/P&gt;&lt;P&gt;      matkl type eban-matkl,&lt;/P&gt;&lt;P&gt;      werks type eban-werks,&lt;/P&gt;&lt;P&gt;      lgort type eban-lgort,&lt;/P&gt;&lt;P&gt;      ekgrp type eban-ekgrp,&lt;/P&gt;&lt;P&gt;      bednr type eban-bednr,&lt;/P&gt;&lt;P&gt;      flief type eban-flief,&lt;/P&gt;&lt;P&gt;      ekorg type eban-ekorg,&lt;/P&gt;&lt;P&gt;      preis type eban-preis,&lt;/P&gt;&lt;P&gt;      waers type eban-waers,&lt;/P&gt;&lt;P&gt;      peinh type eban-peinh,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     sakto type ebkn-sakto,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     ps_psp_pnr type ebkn-PS_PSP_PNR,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      end of it_new.&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;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      program_name  = syst-cprog&lt;/P&gt;&lt;P&gt;      dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;      field_name    = 'd_filename'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name     = d_filename.&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;  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; I_FIELD_SEPERATOR          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_LINE_HEADER              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_tab_raw_data             =  it_type&lt;/P&gt;&lt;P&gt;      i_filename                 =  d_filename&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      i_tab_converted_data       =  it_new[].&lt;/P&gt;&lt;UL&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;  CONVERSION_FAILED          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                     = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&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;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP at it_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; it_new-menge.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;******************************&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/4641845#M1092669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:38:14Z</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/4641846#M1092670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 15:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-internal-table/m-p/4641846#M1092670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T15:30:35Z</dc:date>
    </item>
  </channel>
</rss>

