<?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: itab problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116232#M107516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I agree with Vijay.. run it in background&lt;/P&gt;&lt;P&gt;2. Pl make the following change to the code for some performance improvement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab by matnr.
LOOP AT RESULT.
    read table ITAB with key MATNR = RESULT-MATNR
                             binary search.
        if sy-subrc eq 0.
        TAMT = RESULT-LBKUM * RESULT-VERPR.
        9MTH = RESULT-QTY1 * RESULT-VERPR.
        10MTH = RESULT-QTY2 * RESULT-VERPR.
        13MTH = RESULT-QTY3 * RESULT-VERPR.
        24MTH = RESULT-FBALQTY * RESULT-VERPR.
 
        MOVE-CORRESPONDING: RESULT TO FINRESULT.
        MOVE: TAMT  TO FINRESULT-FTAMT,
              9MTH  TO FINRESULT-F9MTH,
              10MTH TO FINRESULT-F10MTH,
              13MTH TO FINRESULT-F13MTH,
              24MTH TO FINRESULT-F24MTH.
 
        APPEND FINRESULT.
        CLEAR FINRESULT.
       delete itab where matnr = result-matnr.
      ENDIF.
ENDLOOP.
&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;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2006 10:47:59 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2006-02-23T10:47:59Z</dc:date>
    <item>
      <title>itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116222#M107506</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;In the following code RESULT tab is having 4000 records and ITAB is haing 3,00,000 records.when iam trying to append into FINRESULT, why it is going to dump??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT &amp;lt;b&amp;gt;RESULT&amp;lt;/b&amp;gt;.
    LOOP AT &amp;lt;b&amp;gt;ITAB&amp;lt;/b&amp;gt; WHERE MATNR = RESULT-MATNR.
      IF SY-SUBRC = 0.
        TAMT = RESULT-LBKUM * RESULT-VERPR.
        9MTH = RESULT-QTY1 * RESULT-VERPR.
        10MTH = RESULT-QTY2 * RESULT-VERPR.
        13MTH = RESULT-QTY3 * RESULT-VERPR.
        24MTH = RESULT-FBALQTY * RESULT-VERPR.

        MOVE-CORRESPONDING: RESULT TO FINRESULT.
        MOVE: TAMT  TO FINRESULT-FTAMT,
              9MTH  TO FINRESULT-F9MTH,
              10MTH TO FINRESULT-F10MTH,
              13MTH TO FINRESULT-F13MTH,
              24MTH TO FINRESULT-F24MTH.

        APPEND &amp;lt;b&amp;gt;FINRESULT&amp;lt;/b&amp;gt;.
*        CLEAR FINRESULT.
*        COLLECT FINRESULT.
      ENDIF.
    ENDLOOP.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 09:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116222#M107506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T09:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116223#M107507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ST22 we can know the reason of the dump , what was the first statement of the dump, check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is timeout problem , try to change the logic or run the program in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Laxmana Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116223#M107507</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-02-23T10:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116224#M107508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you show the dump..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116224#M107508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116225#M107509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the ST22, you will see that SAP set a limit of size for internal table. You could try to ask your administrator to modify that limite (maybe with rz10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, the better way, is to change your logic code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OOoops, it's a timeout,  your program is too slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Frédéric Girod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116225#M107509</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-02-23T10:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116226#M107510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
----------------------------------------------------------------------------------------------------
|Error analysis                                                                                |
|    After a certain length of time, the program is terminated. In the case                        |
|    of a work area, this means that                                                               |
|    - endless loops (DO, WHILE, ...),                                                             |
|    - database accesses producing an excessively large result set,                                |
|    - database accesses without a suitable index (full table scan)                                |
|    do not block the processing for too long.                                                     |
|                                                                                |
|    The system profile "rdisp/max_wprun_time" contains the maximum runtime of a                   |
|     program. The                                                                                |
|    current setting is 600 seconds. Once this time limit has been exceeded,                       |
|    the system tries to terminate any SQL statements that are currently                           |
|    being executed and tells the ABAP processor to terminate the current                          |
|    program. Then it waits for a maximum of 60 seconds. If the program is                         |
|    still active, the work process is restarted.                                                  |
|                                                                                |
|    successfully processed, the system gives it another 600 seconds.                              |
|    Hence the maximum runtime of a program is at least twice the value of                         |
|    the system profile parameter "rdisp/max_wprun_time".                                          |
|                                                                                |
|                                                                                |
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
|How to correct the error                                                                          |
|    You should usually execute long-running programs as batch jobs.                               |
|    If this is not possible, increase the system profile parameter                                |
|     "rdisp/max_wprun_time".                                                                      |
|                                                                                |
|    Depending on the cause of the error, you may have to take one of the                          |
|    following measures:                                                                           |
|    - Endless loop: Correct program;                                                              |
|    - Dataset resulting from database access is too large:                                        |
|      Instead of "SELECT * ... ENDSELECT", use "SELECT * INTO internal table                      |
|      (for example);                                                                              |
|    - Database has an unsuitable index: Check index generation.                                   |
|                                                                                |
|    You may able to find an interim solution to the problem                                       |
|    in the SAP note system. If you have access to the note system yourself,                       |
|    use the following search criteria:                                                            |
|                                                                                |
|    ------------------------------------------------------------------------                      |
|    "TIME_OUT" C                                                                                |
|    "Z_AGERPB1_CHANGE" or "Z_AGERPB1_CHANGE"                                                      |
|    "START-OF-SELECTION"                                                                          |
|    ------------------------------------------------------------------------                      |
|    If you cannot solve the problem yourself and you wish to send                                 |
|    an error message to SAP, include the following documents:                                     |
|                                                                                |
|    1. A printout of the problem description (short dump)                                         |
|       To obtain this, select in the current display "System-&amp;gt;List-&amp;gt;                              |
|       Save-&amp;gt;Local File (unconverted)".                                                           |
|                                                                                |
|    2. A suitable printout of the system log                                                      |
|       To obtain this, call the system log through transaction SM21.                              |
|       Limit the time interval to 10 minutes before and 5 minutes                                 |
|       after the short dump. In the display, then select the function                             |
|       "System-&amp;gt;List-&amp;gt;Save-&amp;gt;Local File (unconverted)".                                            |
|                                                                                |
|    3. If the programs are your own programs or modified SAP programs,                            |
|       supply the source code.                                                                    |
|       To do this, select the Editor function "Further Utilities-&amp;gt;                                |
|       Upload/Download-&amp;gt;Download".                                                                |
|                                                                                |
|    4. Details regarding the conditions under which the error occurred                            |
|       or which actions and input led to the error.   
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116226#M107510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116227#M107511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. TIME OUT&lt;/P&gt;&lt;P&gt;   time out problem is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Since your both itab contain 4000 and 3 lakh records,&lt;/P&gt;&lt;P&gt;  the final count is&lt;/P&gt;&lt;P&gt;  4000 X 3 lac&lt;/P&gt;&lt;P&gt;  and it goes more than 10 minutes (600 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Hence, this error (this error is common)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Either increase the time out (by taking&lt;/P&gt;&lt;P&gt;  help of basis team)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Or reduce the number of records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Or do in bunch of records.&lt;/P&gt;&lt;P&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116227#M107511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116228#M107512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort result by matnr.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;read table result where matnr = itab-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding....&lt;/P&gt;&lt;P&gt;append finaltab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above specified code will give better performance and i hope u will not get dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116228#M107512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116229#M107513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dump is not due to a syntax error, it is because the program 'timed out' during execution. Since you are looping at itab within the Result tab, for each record in the Result tab, the program loops at 3,00,000 entries in itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The max runtime set for an ABAP program is usually around 10 mins, and when your program took longer than that to execute, it was terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to re-look at your logic and optimize the performance of your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sudha Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116229#M107513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116230#M107514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned in the log,&lt;/P&gt;&lt;P&gt;The program has exceeded it runtime parameter.&lt;/P&gt;&lt;P&gt;As mentioned earlier you can change the rdisp/max_wprun_time parameter in RZ10 transaction EXTENDED MAINTENANCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116230#M107514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116231#M107515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run Background Job, instead of foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116231#M107515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116232#M107516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I agree with Vijay.. run it in background&lt;/P&gt;&lt;P&gt;2. Pl make the following change to the code for some performance improvement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab by matnr.
LOOP AT RESULT.
    read table ITAB with key MATNR = RESULT-MATNR
                             binary search.
        if sy-subrc eq 0.
        TAMT = RESULT-LBKUM * RESULT-VERPR.
        9MTH = RESULT-QTY1 * RESULT-VERPR.
        10MTH = RESULT-QTY2 * RESULT-VERPR.
        13MTH = RESULT-QTY3 * RESULT-VERPR.
        24MTH = RESULT-FBALQTY * RESULT-VERPR.
 
        MOVE-CORRESPONDING: RESULT TO FINRESULT.
        MOVE: TAMT  TO FINRESULT-FTAMT,
              9MTH  TO FINRESULT-F9MTH,
              10MTH TO FINRESULT-F10MTH,
              13MTH TO FINRESULT-F13MTH,
              24MTH TO FINRESULT-F24MTH.
 
        APPEND FINRESULT.
        CLEAR FINRESULT.
       delete itab where matnr = result-matnr.
      ENDIF.
ENDLOOP.
&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;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116232#M107516</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-02-23T10:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116233#M107517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try to improve the performance by using sorted table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB LIKE SORTED TABLE OF &amp;lt;TYPE_LINE&amp;gt; &lt;/P&gt;&lt;P&gt;             WITH NON-UNIQUE KEY MATNR WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT RESULT.&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB WHERE MATNR = RESULT-MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the reading of itab is faster, it''ll only be slower the uploading of data in ITAB, because while uploading it have to sort them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 10:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116233#M107517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T10:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116234#M107518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you should use "Read" while fetching from second internal table. See the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT RESULT.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;Read Table ITAB With key MATNR = RESULT-MATNR.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        TAMT = RESULT-LBKUM * RESULT-VERPR.&lt;/P&gt;&lt;P&gt;        9MTH = RESULT-QTY1 * RESULT-VERPR.&lt;/P&gt;&lt;P&gt;        10MTH = RESULT-QTY2 * RESULT-VERPR.&lt;/P&gt;&lt;P&gt;        13MTH = RESULT-QTY3 * RESULT-VERPR.&lt;/P&gt;&lt;P&gt;        24MTH = RESULT-FBALQTY * RESULT-VERPR.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        MOVE-CORRESPONDING: RESULT TO FINRESULT.&lt;/P&gt;&lt;P&gt;        MOVE: TAMT  TO FINRESULT-FTAMT,&lt;/P&gt;&lt;P&gt;              9MTH  TO FINRESULT-F9MTH,&lt;/P&gt;&lt;P&gt;              10MTH TO FINRESULT-F10MTH,&lt;/P&gt;&lt;P&gt;              13MTH TO FINRESULT-F13MTH,&lt;/P&gt;&lt;P&gt;              24MTH TO FINRESULT-F24MTH.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        APPEND FINRESULT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       CLEAR FINRESULT.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       COLLECT FINRESULT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think by this you are removing one whole iteration. &lt;/P&gt;&lt;P&gt;I hope it helps. Reward if it is useful.&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;Jignesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 11:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116234#M107518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T11:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116235#M107519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a &amp;lt;a href="/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops on this a couple of weeks ago. Check it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 15:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116235#M107519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T15:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: itab problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116236#M107520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On second thought, why do you loop at ITAB at all? You don't use any of its data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 16:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-problem/m-p/1116236#M107520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-23T16:11:16Z</dc:date>
    </item>
  </channel>
</rss>

