<?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: Loading Text data into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878839#M675982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mau,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the process for loading 10 lines is the same as for 10 million lines: Read one line, check if it is good regarding your specuial quality criteria. If good, append to internal table. If not, do something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your SAP runs on a notebook, 10 million will need some more storage &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 20:41:29 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-10-03T20:41:29Z</dc:date>
    <item>
      <title>Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878835#M675978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a text file to load txt data into internal table. So how to read text data with validation and to load all text data into the internal table?&lt;/P&gt;&lt;P&gt;Say this is the text file:&lt;/P&gt;&lt;P&gt;IO_NAME, IO_TYPE, IO_SHTXT, IO_LONGTEXT, DATATYPE, DATA LENGTH&lt;/P&gt;&lt;P&gt;ZIO_TEST1, CHA, IO TEST1, IO TEST 1, CHAR, 20&lt;/P&gt;&lt;P&gt;ZIO_TEST2, CHA, IO TEST2, IO TEST 2, CHAR, 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mau&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878835#M675978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T20:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878836#M675979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mau,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this&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="2052889"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not help, enter your sibject in the SEARCH field on top of forum thread list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878836#M675979</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-03T20:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878837#M675980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mau,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look this code, maybe it's help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REPORT  ZTXTTOTABLE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: p_file   TYPE string value 'C:\teste.txt',&lt;/P&gt;&lt;P&gt;      BEGIN OF TI_table OCCURS 0,&lt;/P&gt;&lt;P&gt;        COD(5) TYPE C,&lt;/P&gt;&lt;P&gt;        NAME(40),&lt;/P&gt;&lt;P&gt;      END OF TI_table,&lt;/P&gt;&lt;P&gt;      a(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: sel_file(128) TYPE c&lt;/P&gt;&lt;P&gt;            default 'C:\teste.txt' OBLIGATORY LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file = sel_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = p_file&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab = ti_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color COL_TOTAL INTENSIFIED ON.&lt;/P&gt;&lt;P&gt;loop at ti_table.&lt;/P&gt;&lt;P&gt;  write: / sy-vline, ti_table-cod, at 10 sy-vline, ti_table-name,&lt;/P&gt;&lt;P&gt;         at 60 sy-vline.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;write: / sy-uline(60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      def_filename     = ''&lt;/P&gt;&lt;P&gt;      def_path         = 'C:\'&lt;/P&gt;&lt;P&gt;      mask             = ',Documentos de texto (*.txt), *.txt.'&lt;/P&gt;&lt;P&gt;      mode             = ''&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filename         = p_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inv_winsys       = 1&lt;/P&gt;&lt;P&gt;      no_batch         = 2&lt;/P&gt;&lt;P&gt;      selection_cancel = 3&lt;/P&gt;&lt;P&gt;      selection_error  = 4&lt;/P&gt;&lt;P&gt;      OTHERS           = 5.&lt;/P&gt;&lt;P&gt;  find '.txt' IN p_file.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    concatenate p_file '.txt' into sel_file.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    sel_file = p_file.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;  format color COL_HEADING INTENSIFIED ON.&lt;/P&gt;&lt;P&gt;  uline (60).&lt;/P&gt;&lt;P&gt;  write: / sy-vline, 'COD', at 10 sy-vline, 'NAME', at 60 sy-vline.&lt;/P&gt;&lt;P&gt;  write: / sy-uline(60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck!&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878837#M675980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T20:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878838#M675981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;How would you load millions of text data into internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want something to read huge text file and to load into internal table if data is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878838#M675981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T20:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878839#M675982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mau,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the process for loading 10 lines is the same as for 10 million lines: Read one line, check if it is good regarding your specuial quality criteria. If good, append to internal table. If not, do something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your SAP runs on a notebook, 10 million will need some more storage &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878839#M675982</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-03T20:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878840#M675983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But how to find the directory / location of text file and how to read that file before append?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mau&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878840#M675983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T20:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878841#M675984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please search the forum for what you need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878841#M675984</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-03T20:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878842#M675985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mau, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look the code I send up...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have the code to find the directory / location of text file like u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use the FUNCTION &amp;lt;b&amp;gt;'WS_FILENAME_GET'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;def_filename = ''&lt;/P&gt;&lt;P&gt;def_path = 'C:\'&lt;/P&gt;&lt;P&gt;mask = ',text documents (*.txt), *.txt.'&lt;/P&gt;&lt;P&gt;mode = ''&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;filename = p_file&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inv_winsys = 1&lt;/P&gt;&lt;P&gt;no_batch = 2&lt;/P&gt;&lt;P&gt;selection_cancel = 3&lt;/P&gt;&lt;P&gt;selection_error = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 17:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878842#M675985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T17:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Text data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878843#M675986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Allan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 21:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-text-data-into-internal-table/m-p/2878843#M675986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T21:54:43Z</dc:date>
    </item>
  </channel>
</rss>

