<?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: ABAP Performance Problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336262#M1229489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might shave almost nothing out of the time it takes to run the program, but instead of the move corresponding you might want to assign each field manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2009 11:21:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-12T11:21:04Z</dc:date>
    <item>
      <title>ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336247#M1229474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ABAP program which reads data from one table and loads into another Z table after some transformations. It runs smoothly till 5 millions records are loaded into this Z table. Thereafter it slows down. It takes 30 minutes to load first 5 millions transactions and another 30 minutes to load remaining 1.5 million transactions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about parameters, table settings, basis settings etc???????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moved to correct forum&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 10, 2009 4:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 20:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336247#M1229474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T20:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336248#M1229475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there any secondary indexes on the table?&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, 10 Mar 2009 20:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336248#M1229475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T20:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336249#M1229476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is stand alone. No secondary or primary indexes. ABAP program deletes the contents of table and reloads again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 21:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336249#M1229476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T21:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336250#M1229477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, there has to be a primary index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what is the size category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 10, 2009 5:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 21:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336250#M1229477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T21:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336251#M1229478</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 to refresh the table after some period so that old datas are deleted.....&lt;/P&gt;&lt;P&gt;      check the size category also.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 09:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336251#M1229478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T09:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336252#M1229479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to refresh the table after deleting the records.and also specify the primary index in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 10:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336252#M1229479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336253#M1229480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please be more specific, what are you actually doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You read from table 1, in blocks or all at once?&lt;/P&gt;&lt;P&gt;Into an internal table, what kind of transformations?&lt;/P&gt;&lt;P&gt;And then you insert, update or what a Z-table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should do it in block of 10.000 to 50.000, if you do so then you can run a SQL Trace in &lt;/P&gt;&lt;P&gt;parallel and tell us the time for the SELECT and for the INSERT of one or two blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 10:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336253#M1229480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T10:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336254#M1229481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for prompt responses &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to respond to everyone through this note &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I am doing is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Select all records from a table (Active ODS table in BW) into Internal Table (say IT_A).  &lt;/P&gt;&lt;P&gt;2.	Deleting entire content of Z table&lt;/P&gt;&lt;P&gt;3.	Populate another Internal Table (say IT_B) which is corresponding to Z table.&lt;/P&gt;&lt;P&gt;4.	Insert into Z table from Internal Table IT_B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above process is carried out after every 50K lines in Internal Table IT_B which is then cleared and refreshed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Size category (The Z Table is on BW) is correctly specified as 8 (5,900,000 to 11,000,000). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I find that Data Class is specified as DODS which is assigned by system when ODS (BW Object) is created. It is never available as an option for Z tables. I think, when Z table was copied from active table of ODS, the data class was inherited. I am not sure if it would make any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note, this loading process works fine on QA environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All suggestions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 21:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336254#M1229481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T21:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336255#M1229482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are deleting the entire contents of the Z table at the beginning, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the delete, do a commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After each array insert, do another commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking there may be issues with the rollback segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 22:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336255#M1229482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T22:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336256#M1229483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked this program again and it doing COMMIT after both actions referred by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - I am sorry i referred you earlier as Bob in haste. My Apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 22:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336256#M1229483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T22:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336257#M1229484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's not too big, can you post the code for the building of the second itab and the insert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - don't worry about the Bob thing. You're not the first &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 22:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336257#M1229484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T22:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336258#M1229485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is Rob.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Loop into actual data.&lt;/P&gt;&lt;P&gt;    LOOP AT zco_co06.&lt;/P&gt;&lt;P&gt;      CLEAR: zprofitability_table.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING zco_co06 TO zprofitability_table.&lt;/P&gt;&lt;P&gt;      zprofitability_table-costcenter = zco_co06-piovalue+4(10).&lt;/P&gt;&lt;P&gt;      zprofitability_table-acttype = zco_co06-piovalue+14(2).&lt;/P&gt;&lt;P&gt;      zprofitability_table-comp_code = zco_co06-comp_code.&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;Determine Project for WBS Element&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Read table it_WBS_ELEMT into ws_WBS_ELEMT with Key /BI0/OIWBS_ELEMT = zco_co06-wbs_elemt.&lt;/P&gt;&lt;P&gt;      if sy-subrc = '0'&lt;/P&gt;&lt;P&gt;      	zprofitability_table-project = ws_WBS_ELEMT-/BI0/OIPROJECT.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;****@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      zprofitability_table-zzproc_year = p_year.&lt;/P&gt;&lt;P&gt;      zprofitability_table-metype = '900000'.&lt;/P&gt;&lt;P&gt;      zprofitability_table-pstgdate = sy-datum(8).&lt;/P&gt;&lt;P&gt;      zprofitability_table-rateversion = zco_co06-version.&lt;/P&gt;&lt;P&gt;      APPEND zprofitability_table.                       "Record for actual data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF zco_co06-costelmnt = '0000910010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Loop into standard rates to create a record for each version.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOOP AT zstd_rates&lt;/P&gt;&lt;P&gt;            WHERE costcenter = zprofitability_table-costcenter&lt;/P&gt;&lt;P&gt;            AND   costelmnt  = zprofitability_table-costelmnt&lt;/P&gt;&lt;P&gt;            AND   acttype    = zprofitability_table-acttype&lt;/P&gt;&lt;P&gt;             AND   curtype    = zprofitability_table-curtype&lt;/P&gt;&lt;P&gt;             AND  co_area    = zprofitability_table-co_area&lt;/P&gt;&lt;P&gt;             AND  fiscper(4) = p_year&lt;/P&gt;&lt;P&gt;             AND  fiscvarnt  = zprofitability_table-fiscvarnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data loaded in the standard rate table only one period&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create standard rate record for each version.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          zprofitability_table-rateversion = zstd_rates-version.&lt;/P&gt;&lt;P&gt;          zprofitability_table-amount = zstd_rates-pricecom * zprofitability_table-quantity.&lt;/P&gt;&lt;P&gt;          zprofitability_table-vtype = zstd_rates-vtype.&lt;/P&gt;&lt;P&gt;          zprofitability_table-zzproc_year = p_year.&lt;/P&gt;&lt;P&gt;          zprofitability_table-metype = '900001'.&lt;/P&gt;&lt;P&gt;          APPEND zprofitability_table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         PERFORM database_update.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&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;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To avoid memory problem  (frequent update and itab memory clean up)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      DESCRIBE TABLE zprofitability_table   LINES zlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF zlines &amp;gt; 50000.&lt;/P&gt;&lt;P&gt;        PERFORM database_update.&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;    PERFORM database_update.&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;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  database_update&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM database_update .&lt;/P&gt;&lt;P&gt;  IF zprofitability_table[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    WRITE: 'NO DATA FOR UPDATE'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/'Count before deletion is:', zlines.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRITE zlines.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SORT zprofitability_table ASCENDING BY WBS_ELEMT costcenter costelmnt acttype EMPLOYEE curtype metype CJR2VERSION rateversion fiscper FISCYEAR co_doc_no co_item_no CO_AREA zzproc_year COMP_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DELETE ADJACENT DUPLICATES FROM zprofitability_table COMPARING WBS_ELEMT costcenter costelmnt acttype EMPLOYEE curtype metype CJR2VERSION rateversion fiscper FISCYEAR co_doc_no co_item_no CO_AREA zzproc_year COMP_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE zprofitability_table   LINES zlines.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'Count after deletion is :', zlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    INSERT zprofitability FROM TABLE zprofitability_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    COMMIT work.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      WRITE: 'UPDATE SUCCESS'.&lt;/P&gt;&lt;P&gt;        UPDATE ZDELTALOAD SET LASTSUCCESSDATE = sy-datum.&lt;/P&gt;&lt;P&gt;        commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      WRITE: 'UPDATE FAILED'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR: zprofitability_table[], zlines.&lt;/P&gt;&lt;P&gt;    REFRESH: zprofitability_table[].&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " database_update&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 22:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336258#M1229485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T22:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336259#M1229486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; 1. Select all records from a table (Active ODS table in BW) into Internal Table (say IT_A). &lt;/P&gt;&lt;P&gt;&amp;gt; 2. Deleting entire content of Z table&lt;/P&gt;&lt;P&gt;&amp;gt; 3. Populate another Internal Table (say IT_B) which is corresponding to Z table.&lt;/P&gt;&lt;P&gt;&amp;gt; 4. Insert into Z table from Internal Table IT_B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you should better ask your question in a BW forum, for general OLTP processing I find&lt;/P&gt;&lt;P&gt;your example very strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not move all records from a DB-table in an internal table and delete the db_table&lt;/P&gt;&lt;P&gt;before you save the data successfully somewhere. If you get a dump, system shut-down or time-out, your data will be gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must process in blocks, sooner or later the memory will not be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES ....&lt;/P&gt;&lt;P&gt;also strange, you create your data, you should take care that there are no duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use sorted or hashed tables if you process large internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 08:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336259#M1229486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T08:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336260#M1229487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are doing database update for large volume of data at a time. So reduce the count to update databased to approx 10,000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see if helps to improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sunil Sawaikar on Mar 12, 2009 11:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336260#M1229487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336261#M1229488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;Use open cursor, for the details&lt;/P&gt;&lt;P&gt;[Link|http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3b23358411d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336261#M1229488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336262#M1229489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might shave almost nothing out of the time it takes to run the program, but instead of the move corresponding you might want to assign each field manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 11:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336262#M1229489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T11:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336263#M1229490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajesh - I've had a quick look at your code and can see that if internal tables zco_co06, it_wbs_elemt,  zstd_rates (and possibly one other that I don't see) are standard tables rather than sorted or hashed, you will have performance issues because you are calling your update routine inside doubly or triply nested loops. Have a look at:[Performance of Nested Loops|/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops]. In addition, Siegfried also has some blogs that will help you 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, 12 Mar 2009 13:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336263#M1229490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Performance Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336264#M1229491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for your code, is this code used on extractor ?&lt;/P&gt;&lt;P&gt;  Check this comments on your code:&lt;/P&gt;&lt;P&gt;1. Reduce the copy to workarea time:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;out side the first loop, put:
FIELD-SYMBOL &amp;lt;fs_zco_co06&amp;gt; LIKE LINE OF zco_co06.

change the loop to:
LOOP AT zco_co06 ASSIGNING &amp;lt;fs_zco_co06&amp;gt;.

replace each reference to workarea zco_co06 to &amp;lt;fs_zco_co06&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Read table w/o binary search:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;out side the first loop, put:
SORT it_wbs_element by /BI0/OIWBS_ELEMT.
FIELD-SYMBOL &amp;lt;fs_wbs_elemet&amp;gt; LIKE LINE OF it_WBS_ELEMT.

change the read code to:
READ TABLE it_wbs_element ASSIGNING &amp;lt;fs_wbs_element&amp;gt; WITH KEY /BI0/OIWBS_ELEMT = zco_co06-wbs_elemt BINARY SEARCH.
IF sy-subrc = 0.
  zprofitability_table-project = &amp;lt;fs_wbs_element&amp;gt;-/BI0/OIPROJECT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Code may lead to excessive COMMIT WORK, delete the line PERFORM database_update inside the LOOP AT zstd_rates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Confirm if there's only one record on table ZDELTALOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Perform indexed acess to table zstd_rates (you can change the access from workarea to field-symbols):&lt;/P&gt;&lt;P&gt;out side the first loop, put:&lt;/P&gt;&lt;P&gt;SORT zstd_rates BY costcenter costelmnt acttype curtype co_area fiscvarnt fiscper.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOL &lt;/P&gt;&lt;P&gt;           WITH KEY costcenter = zprofitability_table-costcenter&lt;/P&gt;&lt;P&gt;                    costelmnt  = zprofitability_table-costelmnt&lt;/P&gt;&lt;P&gt;                    acttype    = zprofitability_table-acttype&lt;/P&gt;&lt;P&gt;                    curtype    = zprofitability_table-curtype&lt;/P&gt;&lt;P&gt;                    co_area    = zprofitability_table-co_area&lt;/P&gt;&lt;P&gt;                    fiscvarnt  = zprofitability_table-fiscvarnt.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  lv_tabix = sy-tabix.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start looking direct on the first desired record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT zstd_rates ASSIGNING -fiscvarnt  = zprofitability_table-fiscvarnt ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Stop loop when first undesirable record is found&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CHECK -fiscper(4) = p_year.  " This partial field can't be tunned as the others&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;6. Improve the suggestion:&lt;/P&gt;&lt;P&gt;6.1. Remove all references to workarea fields (use field-symbol since you need greater extractor performance)&lt;/P&gt;&lt;P&gt;6.2. Don't use LIKE LINE OF on declaration... It was used here just because isn't shown. Use TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando Da Ró&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 22:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-performance-problem/m-p/5336264#M1229491</guid>
      <dc:creator>former_member182114</dc:creator>
      <dc:date>2009-03-16T22:16:36Z</dc:date>
    </item>
  </channel>
</rss>

