<?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: performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748175#M638982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the short dump clearly says that it could not allocate further memory for the data fetched (&amp;lt;i&amp;gt;67108864 bytes of memory space&amp;lt;/i&amp;gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this scenario, i ll suggest you to filter the SELECT on EDISCACT ( DiscDoc.: Activities) - may be u can add some ACTDATE to your selection screen - in that case this first select would return lesses number of records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are going to FKKMAZE (Dunning history of line items) with all these records - number of records returned aer huge too - because ur searching with GPART ( Business Partner Number) only.  Just check if you can do something with FKKMAZE-LAUFD for filteing ur records - may be from ACTDATE-ACTDATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom line is - ur prog is fetching huge amount of data - SAP fails to allocate further memory and gives u a dump. if you can limit the amount of data - its fine .. else talk to ur basis consultant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2007 12:29:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-03T12:29:19Z</dc:date>
    <item>
      <title>performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748169#M638976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing a report  in the back ground from the selection screen,the selection screen contains work centers from 1 to 18 individually.&lt;/P&gt;&lt;P&gt;we can have range 1 to 18 at once or we can execute each work center invidually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when executing  work centers individually the back ground job is getting failed and the reports are leaving to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answers which can fulfill my requirement will be awarded poins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly do the need for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;short dump analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unable to fulfil request for 67108864 bytes of memory space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happend:&lt;/P&gt;&lt;P&gt;Each transaction requires some main memory space to process application data.If the operating system cannot provide any more space, the transaction is terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what can you do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to find out (eg:targeted data selection) whether the transaction will run with less main memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is  a temporary bottle neck execute the transaction again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem at the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_zdrm &amp;lt;&amp;gt; 'X'.   " IF ZDIS Or Summary selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT itvia_zdis[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT ordernum&lt;/P&gt;&lt;P&gt;             discno FROM ediscact&lt;/P&gt;&lt;P&gt;                    INTO TABLE itediscact&lt;/P&gt;&lt;P&gt;                    FOR ALL ENTRIES IN itvia_zdis&lt;/P&gt;&lt;P&gt;                    WHERE ordernum = itvia_zdis-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF NOT itediscact[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SORT itvia_zdis BY aufnr.&lt;/P&gt;&lt;P&gt;        LOOP AT itediscact.&lt;/P&gt;&lt;P&gt;          READ TABLE itvia_zdis WITH KEY aufnr = itediscact-ordernum&lt;/P&gt;&lt;P&gt;                                                 BINARY SEARCH.&lt;/P&gt;&lt;P&gt;          IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;            MOVE itvia_zdis-kunum TO itediscact-gpart.&lt;/P&gt;&lt;P&gt;            MODIFY itediscact TRANSPORTING gpart.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            DELETE itediscact.&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;        SELECT vkont&lt;/P&gt;&lt;P&gt;               discno&lt;/P&gt;&lt;P&gt;               opbel&lt;/P&gt;&lt;P&gt;               gpart   FROM fkkmaze&lt;/P&gt;&lt;P&gt;                       INTO TABLE itfkkmaze&lt;/P&gt;&lt;P&gt;                       FOR ALL ENTRIES IN itediscact&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&amp;gt;                       WHERE gpart = itediscact-gpart.(problem located here)&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      discno = itediscact-discno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF NOT itfkkmaze[] IS INITIAL.&lt;/P&gt;&lt;P&gt;          SORT itediscact BY discno.&lt;/P&gt;&lt;P&gt;          SORT itfkkmaze  BY discno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          LOOP AT itfkkmaze.&lt;/P&gt;&lt;P&gt;             READ TABLE itediscact WITH KEY discno = itfkkmaze-discno&lt;/P&gt;&lt;P&gt;                                                     BINARY SEARCH.&lt;/P&gt;&lt;P&gt;             IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;               DELETE itfkkmaze.&lt;/P&gt;&lt;P&gt;             ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ENDLOOP.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   itfkkmaze_zdis[] = itfkkmaze[].&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF NOT itaufk[] IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ***itvia_zdis&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --Join with fkkmaze using opbel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          SELECT vkont&lt;/P&gt;&lt;P&gt;                 betrw&lt;/P&gt;&lt;P&gt;                 augrd&lt;/P&gt;&lt;P&gt;                 augst&lt;/P&gt;&lt;P&gt;                 augdt&lt;/P&gt;&lt;P&gt;                 hvorg&lt;/P&gt;&lt;P&gt;                 tvorg&lt;/P&gt;&lt;P&gt;                 opbel&lt;/P&gt;&lt;P&gt;                 faedn  FROM dfkkop&lt;/P&gt;&lt;P&gt;                        INTO TABLE itdfkkop_zdis&lt;/P&gt;&lt;P&gt;                        FOR ALL ENTRIES IN itfkkmaze&lt;/P&gt;&lt;P&gt;                        WHERE opbel = itfkkmaze-opbel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                       FOR ALL ENTRIES IN itaufk " change to itfkkmaze&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                       WHERE opbel = itaufk-zz_vkont.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF NOT itdfkkop_zdis[] IS INITIAL.&lt;/P&gt;&lt;P&gt;        itdfkkop[] = itdfkkop_zdis[].&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT vkont&lt;/P&gt;&lt;P&gt;             msalm&lt;/P&gt;&lt;P&gt;             mahns&lt;/P&gt;&lt;P&gt;             laufd  FROM fkkmako&lt;/P&gt;&lt;P&gt;                    INTO TABLE itfkkmako&lt;/P&gt;&lt;P&gt;                    FOR ALL ENTRIES IN itvia_zdis&lt;/P&gt;&lt;P&gt;                    WHERE vkont = itvia_zdis-zz_vkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF. "itediscact not initial&lt;/P&gt;&lt;P&gt;    ENDIF.   "itvia_zdis initial.&lt;/P&gt;&lt;P&gt;  ENDIF.     " ZDIS chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 11:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748169#M638976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T11:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748170#M638977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the LOOP statement, you are directly using the select query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in the LOOP, you are deleting records of table itediscact. and after this loop you are fetching data from fkkmaze for all entries in itediscact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table itediscact gets empty in the loop, means all records gets deleted, then the system will try to fetch all records in the following select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, after the ENDLOOP. put the following SELECT statement in condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT itediscact[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 11:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748170#M638977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T11:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748171#M638978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try giving IN instead of '='.&lt;/P&gt;&lt;P&gt;probably it will be solved or try selecting only say 10 records from each table then it wont go to the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HAPPY OR GET BACK TO ME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 11:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748171#M638978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T11:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748172#M638979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Naveen , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to fine ture ur report at these places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itvia_zdis BY aufnr.&lt;/P&gt;&lt;P&gt;LOOP AT itediscact.&lt;/P&gt;&lt;P&gt;READ TABLE itvia_zdis WITH KEY aufnr = itediscact-ordernum&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MOVE itvia_zdis-kunum TO itediscact-gpart.&lt;/P&gt;&lt;P&gt;MODIFY itediscact TRANSPORTING gpart.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;DELETE itediscact.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;delete  itediscact where gpart eq space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT itediscact[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT vkont&lt;/P&gt;&lt;P&gt;discno&lt;/P&gt;&lt;P&gt;opbel&lt;/P&gt;&lt;P&gt;gpart FROM fkkmaze&lt;/P&gt;&lt;P&gt;INTO TABLE itfkkmaze&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN itediscact&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&amp;gt; WHERE gpart = itediscact-gpart.(problem located here)&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;discno = itediscact-discno.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;IF NOT itfkkmaze[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SORT itediscact BY discno.&lt;/P&gt;&lt;P&gt;SORT itfkkmaze BY discno.&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;Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 11:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748172#M638979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T11:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748173#M638980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is mainly bcoz of selecting all work centers at a time.&lt;/P&gt;&lt;P&gt;To avoid this problem during Background processing of ur report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tcode: &lt;/P&gt;&lt;P&gt;Create the Variants for the report with each Work center as input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tcode SM36:&lt;/P&gt;&lt;P&gt;Create separate steps in a single Background jobs with a different variant for each work center. So that the Load will be less each time. and the Job will be executed successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 11:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748173#M638980</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-03T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748174#M638981</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;SELECT vkont&lt;/P&gt;&lt;P&gt;discno&lt;/P&gt;&lt;P&gt;opbel&lt;/P&gt;&lt;P&gt;gpart FROM fkkmaze&lt;/P&gt;&lt;P&gt;INTO TABLE itfkkmaze&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN itediscact&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&amp;gt; &amp;lt;b&amp;gt;WHERE gpart = itediscact-gpart&amp;lt;/b&amp;gt;.(problem located here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in where condition you need to check the &amp;lt;b&amp;gt;data type&amp;lt;/b&amp;gt; it may be bec of mis matching data type.&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>Mon, 03 Sep 2007 11:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748174#M638981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T11:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748175#M638982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the short dump clearly says that it could not allocate further memory for the data fetched (&amp;lt;i&amp;gt;67108864 bytes of memory space&amp;lt;/i&amp;gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this scenario, i ll suggest you to filter the SELECT on EDISCACT ( DiscDoc.: Activities) - may be u can add some ACTDATE to your selection screen - in that case this first select would return lesses number of records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are going to FKKMAZE (Dunning history of line items) with all these records - number of records returned aer huge too - because ur searching with GPART ( Business Partner Number) only.  Just check if you can do something with FKKMAZE-LAUFD for filteing ur records - may be from ACTDATE-ACTDATE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom line is - ur prog is fetching huge amount of data - SAP fails to allocate further memory and gives u a dump. if you can limit the amount of data - its fine .. else talk to ur basis consultant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 12:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748175#M638982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748176#M638983</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;The problem lies here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SORT itvia_zdis BY aufnr.
LOOP AT itediscact.
READ TABLE itvia_zdis WITH KEY aufnr = itediscact-ordernum
BINARY SEARCH.
IF sy-subrc EQ 0.
MOVE itvia_zdis-kunum TO itediscact-gpart.
MODIFY itediscact TRANSPORTING gpart.
ELSE.
&amp;lt;b&amp;gt;DELETE itediscact.&amp;lt;/b&amp;gt;
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since ur deleting the entries from the table so it becomes empty and thus the select after this does with restriction on the where clause, put a check on &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not tediscact[] is initial. 

SELECT vkont
discno
opbel
gpart FROM fkkmaze
INTO TABLE itfkkmaze
FOR ALL ENTRIES IN itediscact
WHERE gpart = itediscact-gpart.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 05:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2748176#M638983</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2007-09-04T05:54:17Z</dc:date>
    </item>
  </channel>
</rss>

