<?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 A problem about ABAP Runtime Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617191#M871395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i am responsible for writing a program, including an internal table, which will store 3 million Datensätze.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when ich ran this program, an error happened:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Error: TSV_TNEW_PAGE_ALLOC_FAILED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short Text:&lt;/P&gt;&lt;P&gt;No more storage space available for extending an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;You attempted to extend an internal table, but the required space was not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RRX_GRID_CMD_PROCESS'                  "Query ausführen&lt;/P&gt;&lt;P&gt;        EXPORTING  i_handle           = g_handle&lt;/P&gt;&lt;P&gt;                   i_cmdid            = 'STRT'&lt;/P&gt;&lt;P&gt;                   i_iobjnm           = g_iobjnm&lt;/P&gt;&lt;P&gt;        IMPORTING  e_max_x            = g_x&lt;/P&gt;&lt;P&gt;                   e_max_y            = g_y&lt;/P&gt;&lt;P&gt;        TABLES     i_t_ranges         = g_t_ranges&lt;/P&gt;&lt;P&gt;                   e_t_dim            = g_t_dim&lt;/P&gt;&lt;P&gt;                   e_t_mem            = g_t_mem&lt;/P&gt;&lt;P&gt;                   e_t_cel            = g_t_cel&lt;/P&gt;&lt;P&gt;                   c_t_prptys         = g_t_prptys&lt;/P&gt;&lt;P&gt;                   e_t_atr            = g_t_atr&lt;/P&gt;&lt;P&gt;                   e_t_grid           = g_t_grid&lt;/P&gt;&lt;P&gt;                   e_t_ranges         = g_t_ranges&lt;/P&gt;&lt;P&gt;                   e_t_con            = g_t_con&lt;/P&gt;&lt;P&gt;                   e_t_fac            = g_t_fac&lt;/P&gt;&lt;P&gt;        EXCEPTIONS inherited_error    = 1&lt;/P&gt;&lt;P&gt;                   no_record_found    = 2&lt;/P&gt;&lt;P&gt;                   terminated_by_user = 3&lt;/P&gt;&lt;P&gt;                   no_processing      = 4&lt;/P&gt;&lt;P&gt;                   no_change          = 5&lt;/P&gt;&lt;P&gt;                   dbcl_nosupport     = 6&lt;/P&gt;&lt;P&gt;                   no_authorization   = 7&lt;/P&gt;&lt;P&gt;                   x_message          = 8&lt;/P&gt;&lt;P&gt;                   screen_canceled    = 9&lt;/P&gt;&lt;P&gt;                   launch_url         = 10&lt;/P&gt;&lt;P&gt;                   OTHERS             = 11.&lt;/P&gt;&lt;P&gt;  IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_E_BIW_IOBJ' EXPORTING IOBJNM = 'U_SSTMON'.&lt;/P&gt;&lt;P&gt;    raise QUERY_RUN_ERROR.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_sstmon is initial.&lt;/P&gt;&lt;P&gt;    delete from /bic/pu_sstmon.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_E_BIW_IOBJ' EXPORTING IOBJNM = 'U_SSTMON'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Output der Query in schlanke Tabelle mit erstem Feld 'y' umladen...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  loop at g_t_grid into wa_g_t_grid.&lt;/P&gt;&lt;P&gt;    i_grid-y = wa_g_t_grid-y.&lt;/P&gt;&lt;P&gt;    i_grid-x = wa_g_t_grid-x.&lt;/P&gt;&lt;P&gt;    i_grid-data = wa_g_t_grid-data.&lt;/P&gt;&lt;P&gt;    if i_grid-data(1) = m1.                   "Hochkomma entfernen&lt;/P&gt;&lt;P&gt;      shift i_grid-data.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;append i_grid&lt;/STRONG&gt; .  Error happened hier&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  refresh g_t_grid.&lt;/P&gt;&lt;P&gt;  sort i_grid by y x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Who could give me some suggestion to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 14:38:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T14:38:06Z</dc:date>
    <item>
      <title>A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617191#M871395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i am responsible for writing a program, including an internal table, which will store 3 million Datensätze.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when ich ran this program, an error happened:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Error: TSV_TNEW_PAGE_ALLOC_FAILED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short Text:&lt;/P&gt;&lt;P&gt;No more storage space available for extending an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;You attempted to extend an internal table, but the required space was not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RRX_GRID_CMD_PROCESS'                  "Query ausführen&lt;/P&gt;&lt;P&gt;        EXPORTING  i_handle           = g_handle&lt;/P&gt;&lt;P&gt;                   i_cmdid            = 'STRT'&lt;/P&gt;&lt;P&gt;                   i_iobjnm           = g_iobjnm&lt;/P&gt;&lt;P&gt;        IMPORTING  e_max_x            = g_x&lt;/P&gt;&lt;P&gt;                   e_max_y            = g_y&lt;/P&gt;&lt;P&gt;        TABLES     i_t_ranges         = g_t_ranges&lt;/P&gt;&lt;P&gt;                   e_t_dim            = g_t_dim&lt;/P&gt;&lt;P&gt;                   e_t_mem            = g_t_mem&lt;/P&gt;&lt;P&gt;                   e_t_cel            = g_t_cel&lt;/P&gt;&lt;P&gt;                   c_t_prptys         = g_t_prptys&lt;/P&gt;&lt;P&gt;                   e_t_atr            = g_t_atr&lt;/P&gt;&lt;P&gt;                   e_t_grid           = g_t_grid&lt;/P&gt;&lt;P&gt;                   e_t_ranges         = g_t_ranges&lt;/P&gt;&lt;P&gt;                   e_t_con            = g_t_con&lt;/P&gt;&lt;P&gt;                   e_t_fac            = g_t_fac&lt;/P&gt;&lt;P&gt;        EXCEPTIONS inherited_error    = 1&lt;/P&gt;&lt;P&gt;                   no_record_found    = 2&lt;/P&gt;&lt;P&gt;                   terminated_by_user = 3&lt;/P&gt;&lt;P&gt;                   no_processing      = 4&lt;/P&gt;&lt;P&gt;                   no_change          = 5&lt;/P&gt;&lt;P&gt;                   dbcl_nosupport     = 6&lt;/P&gt;&lt;P&gt;                   no_authorization   = 7&lt;/P&gt;&lt;P&gt;                   x_message          = 8&lt;/P&gt;&lt;P&gt;                   screen_canceled    = 9&lt;/P&gt;&lt;P&gt;                   launch_url         = 10&lt;/P&gt;&lt;P&gt;                   OTHERS             = 11.&lt;/P&gt;&lt;P&gt;  IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_E_BIW_IOBJ' EXPORTING IOBJNM = 'U_SSTMON'.&lt;/P&gt;&lt;P&gt;    raise QUERY_RUN_ERROR.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_sstmon is initial.&lt;/P&gt;&lt;P&gt;    delete from /bic/pu_sstmon.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_E_BIW_IOBJ' EXPORTING IOBJNM = 'U_SSTMON'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Output der Query in schlanke Tabelle mit erstem Feld 'y' umladen...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  loop at g_t_grid into wa_g_t_grid.&lt;/P&gt;&lt;P&gt;    i_grid-y = wa_g_t_grid-y.&lt;/P&gt;&lt;P&gt;    i_grid-x = wa_g_t_grid-x.&lt;/P&gt;&lt;P&gt;    i_grid-data = wa_g_t_grid-data.&lt;/P&gt;&lt;P&gt;    if i_grid-data(1) = m1.                   "Hochkomma entfernen&lt;/P&gt;&lt;P&gt;      shift i_grid-data.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;append i_grid&lt;/STRONG&gt; .  Error happened hier&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  refresh g_t_grid.&lt;/P&gt;&lt;P&gt;  sort i_grid by y x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Who could give me some suggestion to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 14:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617191#M871395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617192#M871396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a basis setting that needs to be amended. But they probably will not do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the command FREE &amp;lt;itab&amp;gt; at the start of your code. This will release the memory back to the system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you  will have to process data in chunks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 14:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617192#M871396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T14:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617193#M871397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;free the tables before using the FM or, before start-of-selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 15:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617193#M871397</guid>
      <dc:creator>praveen_hannu</dc:creator>
      <dc:date>2008-04-02T15:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617194#M871398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the start of my program I have written:  Free i_grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run this program, this runtime error occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 16:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617194#M871398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T16:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617195#M871399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gang...&lt;/P&gt;&lt;P&gt;u will have to extract data in size of 2GB...as the internal table is having a lot of data..&lt;/P&gt;&lt;P&gt;u will find it in one of the blogs....just do a search for package size...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 05:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617195#M871399</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-04-03T05:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617196#M871400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your info. &lt;/P&gt;&lt;P&gt;I think that using package size is only choice to avoid the huge internal tabel.&lt;/P&gt;&lt;P&gt;But now i have a question. I must sort this internal table. When i use package size, then i can only sort a part of internal table. This will cause data uncorrect.&lt;/P&gt;&lt;P&gt;  SELECT * FROM zubpgrid INTO TABLE i_grid &lt;STRONG&gt;PACKAGE SIZE 10000&lt;/STRONG&gt;.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Legende des Grids auswerten (1. Zeile)...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;STRONG&gt;SORT i_grid BY y x&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;  LOOP AT i_grid.&lt;/P&gt;&lt;P&gt;    if i_grid-y ne 1.                                   "1. Zeile Ende&lt;/P&gt;&lt;P&gt;      exit.                          "loop at i_grid&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;leere Titel in der RSRT-Ausgabe fehlen in der int. Tabelle.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Sie sind Texte zum Vorgängerfeld und werden hier für die Steuerung&lt;/P&gt;&lt;/LI&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;eingefügt, mit Name der Schlüsselfeldes + '_TXT'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    l_v_delta_x = i_grid-x - i_gridlegende-x.&lt;/P&gt;&lt;P&gt;    if l_v_delta_x &amp;gt; 1.                                 "da fehlte was&lt;/P&gt;&lt;P&gt;      concatenate i_gridlegende-data '_TXT' into i_gridlegende-data.&lt;/P&gt;&lt;P&gt;      add 1 to i_gridlegende-x.                         "das fehlende x&lt;/P&gt;&lt;P&gt;      append i_gridlegende.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;jetzt das aktuelle Feld aus i_grid...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    i_gridlegende-data = i_grid-data.&lt;/P&gt;&lt;P&gt;    i_gridlegende-x    = i_grid-x.&lt;/P&gt;&lt;P&gt;    append i_gridlegende.&lt;/P&gt;&lt;P&gt;    DELETE i_grid.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDSELECT&lt;/P&gt;&lt;P&gt;Who could help me to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 10:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617196#M871400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617197#M871401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ganf..&lt;/P&gt;&lt;P&gt;Can u tell me wat exactly u wanna sort and how it is gonna effect the later part of the code.&lt;/P&gt;&lt;P&gt;If u can tell me something about it..may be we can go about finding out something..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz do reward for all the useful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 15:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617197#M871401</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-04-05T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617198#M871402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to insert 3 mio Datensätze in an internal table (ii_grid). Because it is very huge, i must divide it into serveral parts with PACKAGE SIZE. &lt;/P&gt;&lt;P&gt;With SELECT....ENDSELECT Package size 10000 will be only 10000 Datensätze inserted into this table each time. Next time the second 10000 Datensätze will be inserted. The old 10000 will be lost. Now i face a problem. I need this 3 mio datensätze to be sorted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;who could help me solve this problem?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 18:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617198#M871402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T18:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617199#M871403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nobody could answer my question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2008 13:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617199#M871403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-06T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617200#M871404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody could answer this question? When somebody could, i will give full points to him.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 08:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617200#M871404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T08:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617201#M871405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; But now i have a question. I must sort this internal table. When i use package size, then i can only sort a part of internal &lt;/P&gt;&lt;P&gt;&amp;gt; table. This will cause data uncorrect.&lt;/P&gt;&lt;P&gt;&amp;gt; SELECT * FROM zubpgrid INTO TABLE i_grid PACKAGE SIZE 10000.&lt;/P&gt;&lt;P&gt;&amp;gt; SORT i_grid BY y x.&lt;/P&gt;&lt;P&gt;&amp;gt; LOOP AT i_grid.&lt;/P&gt;&lt;P&gt;&amp;gt; ....&lt;/P&gt;&lt;P&gt;&amp;gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;gt; ENDSELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys.... why do you try to program in ABAP without any knowledge about SQL and/or programming experience?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you read millions of database records in an internal tables &lt;/P&gt;&lt;P&gt;.... sort the table&lt;/P&gt;&lt;P&gt;.... process each entry one by one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you mad?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... FROM .... ORDER BY y x &lt;/P&gt;&lt;P&gt;  .... &amp;lt;- here you have now each entry of the DB table in the desired order&lt;/P&gt;&lt;P&gt;ENDSELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this saves amounts of memory and it is much faster....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 15:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617201#M871405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617202#M871406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this problem just yesterday....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error appears the we used all memory available appending rows..we already know that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the typical pattern for a program its something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select field1 field2
into lt_table
from table1
where ....

loop at lt_table into ls_table 

...process data...

append gs_alv to gt_alv
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lt_table es too big, then our gt_alv will be big too...if we use a cursor, wich is even faster than the code befeore, we will use only one big table instead two...using only the half of the memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: c_cursor TYPE cursor.

    OPEN CURSOR c_cursor FOR
    SELECT field1 field2
    FROM dbtable
    WHERE .........


    DO.
      FETCH NEXT CURSOR c_cursor INTO gs_alv.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      
.....process data......
     
      APPEND gs_alv TO gt_alv.

    ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sebastian Bustamante on Apr 13, 2010 6:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 16:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617202#M871406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617203#M871407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, before anyone else tries to help, have a look at the date of the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 17:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617203#M871407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: A problem about ABAP Runtime Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617204#M871408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Judging by the typos, anything is possible so Gang Qin might return... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; ...  which will store 3 million Datensätze.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; But when ich ran this program...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 18:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-about-abap-runtime-error/m-p/3617204#M871408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T18:19:13Z</dc:date>
    </item>
  </channel>
</rss>

