<?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>Question Re: Start Routine Issue in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683988#M3463675</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;Production system is pretty different than other system and lot of time it happens the things which run fine on DEV and QA may not work on PRD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to run the load when the access to the server is minimum may be in the late evening and also make sure no load is happening that time and see if that makes some difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are guessing that it might be the cause with indexing then in RSRV you may do complete check of those objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing as pointed out by Bose--check which process is taking longer time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gives you some clue to move ahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Sep 2013 15:06:15 GMT</pubDate>
    <dc:creator>anshu_lilhori</dc:creator>
    <dc:date>2013-09-07T15:06:15Z</dc:date>
    <item>
      <title>Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaq-p/9683979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mates,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have are facing one strange issue in our production system we just fed up, i need all your valuable support in resolving this issue, Hope i will succeeded in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is delta DTP which is part of daily process chain which will load the data from DSO(standard) to Cube as usual in the transformation level their is some business logic is written both in the start &amp;amp; end routine but this DTP will approximately 1.5 million records for this it will take &lt;/P&gt;&lt;P&gt;approx 10-14 hrs runtime,so after analysis we have found code which is written in the start routine is not optimized so we have done some minor changes in the code to improve the load performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But issue started from here onward we have done changes on development and transported to quality we have ran same DTP which is their in the production it's performance has improved drastically for 1.7 million records it took only 15 mins runtime so we felt very happy and on the same day we have transported code to production but big magic has happened here only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when that particular DTP has ran in the production through schedule process chain it running for long time like for one data package(50000) to complete it is taking 3-4 hours so to pull all 1.5 million records it is running for 2 days due to this long run it has impacted entire production system means other loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my doubt here is why it is take acting strange in the production, Please give your valuable reviews on my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the piece of code which is there is in the start routine &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : s_material&amp;nbsp; TYPE /bi0/pmaterial ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_material&amp;nbsp; LIKE STANDARD TABLE OF s_material,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_material LIKE LINE OF t_material,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_matunit&amp;nbsp;&amp;nbsp; TYPE /bi0/pmat_unit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_matunit&amp;nbsp;&amp;nbsp; LIKE STANDARD TABLE OF s_matunit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_matunit&amp;nbsp; LIKE LINE OF t_matunit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : s_primrate TYPE /bic/azsd_o01900,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_primrate LIKE STANDARD TABLE OF s_primrate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_primrate LIKE LINE OF t_primrate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min_calday LIKE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF r_compcode OCCURS 100,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sign&amp;nbsp;&amp;nbsp; TYPE c LENGTH 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option TYPE c LENGTH 2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; low&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE c LENGTH 4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; high&amp;nbsp;&amp;nbsp; TYPE c LENGTH 4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF r_compcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : s_/BI0/PCOMP_CODE&amp;nbsp; type /BI0/PCOMP_CODE ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t_/BI0/PCOMP_CODE&amp;nbsp; like STANDARD TABLE OF s_/BI0/PCOMP_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_/BI0/PCOMP_CODE LIKE LINE OF t_/BI0/PCOMP_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data&amp;nbsp; wa_r_compcode like LINE OF r_compcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_transform IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; METHOD start_routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SOURCE_FIELDS&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE _ty_s_SC_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA:&lt;SPAN style="font-size: 10pt;"&gt; MONITOR_REC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE rstmonitor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min_calday = sy-datum - 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if SOURCE_PACKAGE is NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE t_material&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM /bi0/pmaterial&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN SOURCE_PACKAGE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE material eq SOURCE_PACKAGE-material&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp; objvers EQ 'A'.&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE t_matunit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM /bi0/pmat_unit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN SOURCE_PACKAGE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE material eq SOURCE_PACKAGE-material&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and objvers EQ 'A'.&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into table T_/BI0/PCOMP_CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from /BI0/PCOMP_CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where COUNTRY eq 'PK'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and OBJVERS eq 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loop at t_/BI0/PCOMP_CODE into wa_/BI0/PCOMP_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-sign&amp;nbsp;&amp;nbsp; = 'I'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-low&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_/BI0/PCOMP_CODE-COMP_CODE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-high&amp;nbsp;&amp;nbsp; = ''.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append wa_r_compcode to r_compcode.&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF SOURCE_PACKAGE[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; REFRESH: t_primrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DELETE SOURCE_PACKAGE[] WHERE comp_code NOT IN r_compcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE t_primrate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM /bic/azsd_o01900&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN SOURCE_PACKAGE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE salesorg EQ SOURCE_PACKAGE-salesorg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and comp_code EQ SOURCE_PACKAGE-comp_code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and division EQ SOURCE_PACKAGE-division&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and distr_chan EQ SOURCE_PACKAGE-distr_chan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and calday GT min_calday&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and customer&amp;nbsp; EQ SOURCE_PACKAGE-/bic/zsd_dist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and material EQ SOURCE_PACKAGE-material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SORT t_material BY material objvers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SORT t_matunit&amp;nbsp; BY material mat_unit objvers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SORT t_primrate BY salesorg&amp;nbsp;&amp;nbsp; comp_code division&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distr_chan calday&amp;nbsp;&amp;nbsp;&amp;nbsp; customer material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ENDMETHOD.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD inverse_start_routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ENDCLASS.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please free to ask me if you have any doubts regarding my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 02:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaq-p/9683979</guid>
      <dc:creator>former_member184884</dc:creator>
      <dc:date>2013-09-07T02:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683980#M3463667</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;Their is lot of scope of improvement in you code i feel..Even though i am not an expert in ABAP but still can give you few pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of select * use select with the field name you need to select.Because select * picks all the fields from that particular table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be good choice if you define your own structure with the required fields rather than accessing the complete table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check this out:Might be helpful and useful in improving performance of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/docs/DOC-45849"&gt;http://scn.sap.com/docs/DOC-45849&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 08:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683980#M3463667</guid>
      <dc:creator>anshu_lilhori</dc:creator>
      <dc:date>2013-09-07T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683981#M3463668</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;I would seek help it the ABAP Development space there is too many select * and loops across all material master. Most of us here aren't ABAP experts so I would try it over there &lt;A __default_attr="2015" __jive_macro_name="community" class="jive_macro jive_macro_community" href="https://community.sap.com/"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 08:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683981#M3463668</guid>
      <dc:creator>MGrob</dc:creator>
      <dc:date>2013-09-07T08:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683982#M3463669</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 huge difference in the total entries in the tables where you are doing SELECT * could be the reason. My advise to look into applying JOINS instead of FOR ALL ENTRIES should help also instaed of * SELECT necessary fields only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 08:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683982#M3463669</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-09-07T08:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683983#M3463670</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;Check out this wonderful document on performance tuning in BI ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30190066-8d2d-2c10-718a-9b1b0a82972c?overridelayout=true"&gt;http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30190066-8d2d-2c10-718a-9b1b0a82972c?overridelayout=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 08:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683983#M3463670</guid>
      <dc:creator>anshu_lilhori</dc:creator>
      <dc:date>2013-09-07T08:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683984#M3463671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is really lot of scope of improvement in your code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use only required fields instead of select *. Doing this only you would see lot of performance improvement in your loading.&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt; select *&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into table T_/BI0/PCOMP_CODE&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from /BI0/PCOMP_CODE&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where COUNTRY eq 'PK'&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and OBJVERS eq 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loop at t_/BI0/PCOMP_CODE into wa_/BI0/PCOMP_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-sign&amp;nbsp;&amp;nbsp; = 'I'.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-option = 'EQ'.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-low&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_/BI0/PCOMP_CODE-COMP_CODE.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-high&amp;nbsp;&amp;nbsp; = ''.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append wa_r_compcode to r_compcode.&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt; &lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;You are only using COMP_CODE here to populate r_compcode so select COMP_CODE only in the select statement used above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;3. Also can you please let us know i see you are preparing lot of internal tables in start routine such as &lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt; t_material ,&lt;/SPAN&gt;t_matunit&amp;nbsp; ,t_primrate. Are you reading them in your field routines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;4. Does rest of the coding in your transformation end routine etc is working fine. Check those as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 11.818181991577148px; background-color: #ffffff; color: #333333;"&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 09:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683984#M3463671</guid>
      <dc:creator>KamalMehta</dc:creator>
      <dc:date>2013-09-07T09:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683985#M3463672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;Hi Anshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;Thanks for your quick reply we are aware of their is so much scope to optimize my code but my question here is it is working fine in quality system why it is acting so strange when comes to production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;for your information we have checked version management and all those stuff but they are fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;and even we have also checked in the source DSO is their any NULL or duplicate values are their but their is no as such entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;Note: Source DSO(standard) and the lookup which i am doing is ZSD&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;_O019 it is direct update DSO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;with my limited knowledge i am asking all you experts is their any DB level indexes inconsistency happened.......!!!! because we are suspecting that is their any chances due this we are facing this strange behavior in the production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;**i have already checked the link which you have shared and i asked my ABAP team to look into it but they told it doesn't make much sense by using DB join concepts and even it is not relevant to our scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;Please assist me how to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;Regards,&lt;/P&gt;&lt;P style="font-style: inherit; font-size: 11.818181991577148px; font-family: inherit; background-color: #ffffff; color: #333333;"&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 12:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683985#M3463672</guid>
      <dc:creator>former_member184884</dc:creator>
      <dc:date>2013-09-07T12:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683986#M3463673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arindam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes your are right the one which i am doing lookup &lt;SPAN style="color: #333333; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;zsd_o019&lt;/SPAN&gt; have huge number of entries because it contains data for all the countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for your information the same piece of code is working fine for other country in the production but here daily data volume is less when compare to the country which we are facing issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 12:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683986#M3463673</guid>
      <dc:creator>former_member184884</dc:creator>
      <dc:date>2013-09-07T12:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683987#M3463674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haraish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing you should do is to check which part in DTP is taking time ...&amp;nbsp; Open DTP monitor and let us know which part is taking time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) start routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Field routine ( Rules)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) End Routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 ) Conversion of Char to SID....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Extraction from the DSO is taking time? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Anindya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 13:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683987#M3463674</guid>
      <dc:creator>anindya_bose</dc:creator>
      <dc:date>2013-09-07T13:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683988#M3463675</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;Production system is pretty different than other system and lot of time it happens the things which run fine on DEV and QA may not work on PRD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to run the load when the access to the server is minimum may be in the late evening and also make sure no load is happening that time and see if that makes some difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are guessing that it might be the cause with indexing then in RSRV you may do complete check of those objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing as pointed out by Bose--check which process is taking longer time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gives you some clue to move ahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 15:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683988#M3463675</guid>
      <dc:creator>anshu_lilhori</dc:creator>
      <dc:date>2013-09-07T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683989#M3463676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the screenshot for your reference do let me know if you need any inputs from my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/275802" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 00:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683989#M3463676</guid>
      <dc:creator>former_member184884</dc:creator>
      <dc:date>2013-09-08T00:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683990#M3463677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable inputs, i'll accept there is so wide scope to improve my code but my real concern is already expressed here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit; color: #333333;"&gt;t_material ,&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;t_matunit&amp;nbsp; ,t_primrate. are used in field routines and as well as in end routines to perform some business logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;rest of the code is working fine because we have not touched that piece of code as it is not time consuming one so we have just concentrated on to optimize start routine code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;i have attached screenshot DTP run monitor screen hope it may help you in some extent for better understanding of my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let me know if you need any inputs from my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;Harish&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 01:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683990#M3463677</guid>
      <dc:creator>former_member184884</dc:creator>
      <dc:date>2013-09-08T01:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683991#M3463678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harsih,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing is clear after seeing the above screen shot that issue is with the start routine only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this process is taking time of 4 hrs and 3 hrs so on you can also check the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest still to get your code optimized with some good Abaper and let them also know that this process is consuming time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can think of creating secondary indexes on the Dso fields which are not keyfileds and used in where statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a068bb0a-daf5-2e10-f6b8-fc3076070ced?QuickLink=index&amp;amp;overridelayout=true"&gt;http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a068bb0a-daf5-2e10-f6b8-fc3076070ced?QuickLink=index&amp;amp;overridelayout=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 06:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683991#M3463678</guid>
      <dc:creator>anshu_lilhori</dc:creator>
      <dc:date>2013-09-08T06:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683992#M3463679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its clearly evident from your screenshot that start routine is consuming most of the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we have already given you several pointers where you need to check and take care of i.e. Select * and loops if possible in your code , Populate &lt;SPAN style="color: #333333; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;t_/BI0/PCOMP_CODE&lt;/SPAN&gt; with company code only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please optimize them in the code and lets verify the DTP runtime now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 10:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683992#M3463679</guid>
      <dc:creator>KamalMehta</dc:creator>
      <dc:date>2013-09-08T10:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683993#M3463680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to implement the suggestions given by our experts in your code. I would advice you to take the help of any ABAPer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One important thing is please check the &lt;SPAN style="color: #333333; font-style: inherit; background-color: #ffffff; font-family: inherit; font-weight: inherit; padding: 0 0 1px;"&gt;&lt;STRONG&gt;number of parallel processes for a your DSO to Cube DTP.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Because it seems same code took 15 minutes in Quality. but it's taking long time in Production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So in your DSO to Cube DTP screen navigate to below path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-style: inherit; background-color: #ffffff; font-family: inherit; padding: 0 0 1px;"&gt;Goto -&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="padding: 0 0 1px; font-family: arial, sans-serif; color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-style: inherit; background-color: #ffffff; font-family: inherit; padding: 0 0 1px;"&gt;Batch Manager Setting&lt;/SPAN&gt;&lt;SPAN style="padding: 0 0 1px; font-family: arial, sans-serif; color: #333333; background-color: #ffffff;"&gt;. Under &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-style: inherit; background-color: #ffffff; font-family: inherit; padding: 0 0 1px;"&gt;Number of Processes&lt;/SPAN&gt;&lt;SPAN style="padding: 0 0 1px; font-family: arial, sans-serif; color: #333333; background-color: #ffffff;"&gt;, check how many background processes&amp;nbsp; used to process the DTP for Quality and Production.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="padding: 0 0 1px; font-family: arial, sans-serif; color: #333333; background-color: #ffffff;"&gt;I doubt there are more number of process allocated in your quality than Production that's why it's taking less time in quality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-family: arial, sans-serif; font-size: 10pt;"&gt;Harshawardhan. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 14:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683993#M3463680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-08T14:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683994#M3463681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Harish..&amp;nbsp; Good , now I can see where exactly DTP is spending time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall this code was done in&amp;nbsp; inefficient manner . Instead of definition your internal table as TYPE of P table of Material , you should only take those fields which you need and only select those instead of using select *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;loop at t_/BI0/PCOMP_CODE into wa_/BI0/PCOMP_CODE.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-sign&amp;nbsp;&amp;nbsp; = 'I'.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-option = 'EQ'.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-low&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_/BI0/PCOMP_CODE-COMP_CODE.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-high&amp;nbsp;&amp;nbsp; = ''.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append wa_r_compcode to r_compcode.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endloop.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF SOURCE_PACKAGE[] IS NOT INITIAL.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&amp;nbsp; REFRESH: t_primrate.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;DELETE SOURCE_PACKAGE[] WHERE comp_code NOT IN r_compcode.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;basically you are taking only those comp code for which country is PK ... Deleting anything else from the Source_Package..&amp;nbsp; right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt; Either you should do this in DTP filter , if country selection is available.&amp;nbsp;&amp;nbsp; Or, you should do this step before executing any other select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically if you delete all other data from source_package where Comp Code is not in your range table, then "For All Entries" statement would select much lower data set for every select and would increase the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if my understanding is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Anindya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Sep 2013 18:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683994#M3463681</guid>
      <dc:creator>anindya_bose</dc:creator>
      <dc:date>2013-09-08T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683995#M3463682</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 should also change DTP setting to have less data packet size and more number of parallel process.&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, 09 Sep 2013 01:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683995#M3463682</guid>
      <dc:creator>KamalMehta</dc:creator>
      <dc:date>2013-09-09T01:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683996#M3463683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi Bose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;DELETE SOURCE_PACKAGE[] WHERE comp_code NOT IN r_compcode.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;this piece of&amp;nbsp; code is not their earlier but which is added recently by one of my ABAPer colleague he told me it will improve performance so even i am aware of it does not make much sense because here source package is DSO means it is not common DSO, it is country specific DSO so obviously it will have country relevant data only.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Because he is core ABAPer i don't have option to listen his words.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;as you are saying there is code needs to be change do let me know what part of code needs to change so that we can discuss in team and proceed accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 05:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683996#M3463683</guid>
      <dc:creator>former_member184884</dc:creator>
      <dc:date>2013-09-09T05:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Start Routine Issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683997#M3463684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain you in detail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Part A:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; select *&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into table T_/BI0/PCOMP_CODE&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from /BI0/PCOMP_CODE&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where COUNTRY eq 'PK'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and OBJVERS eq 'A'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This piece of code is selecting all company codes where Country is PK. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;Part B: &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;loop at t_/BI0/PCOMP_CODE into wa_/BI0/PCOMP_CODE.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-sign&amp;nbsp;&amp;nbsp; = 'I'.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-option = 'EQ'.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-low&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_/BI0/PCOMP_CODE-COMP_CODE.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_r_compcode-high&amp;nbsp;&amp;nbsp; = ''.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append wa_r_compcode to r_compcode.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endloop.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This piece of code is filling up a range table ; only with those comp codes which has country = PK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Part C :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;STRONG&gt; DELETE SOURCE_PACKAGE[] WHERE comp_code NOT IN r_compcode.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This part is deleting any source data where comp code is not in range table; that means when Country for Comp Code is &lt;STRONG&gt;not&lt;/STRONG&gt; PK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;so basically you are left with only those records which are for comp codes which has country as PK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am not sure if this is your business requirement . But if you use this Part A, Part B and Part C before issuing any other &lt;STRONG&gt;SELECT&lt;/STRONG&gt; statement , that will decrease the total number of records fetched from database table and routine will finish faster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Another thing you can look at...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;SELECT *&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE t_primrate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM /bic/azsd_o01900&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN SOURCE_PACKAGE&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE salesorg EQ SOURCE_PACKAGE-salesorg&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and comp_code EQ SOURCE_PACKAGE-comp_code&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and division EQ SOURCE_PACKAGE-division&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and distr_chan EQ SOURCE_PACKAGE-distr_chan&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and calday GT min_calday&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and customer&amp;nbsp; EQ SOURCE_PACKAGE-/bic/zsd_dist&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and material EQ SOURCE_PACKAGE-material.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG style="font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;how many records do you have in DSO &lt;EM style="color: #333333; font-size: 12px;"&gt;zsd_o019&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&amp;nbsp; What are the keys of this DSO? Just change the order of Where&amp;nbsp; like below...and see if you get some better performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;SELECT *&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE t_primrate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM /bic/azsd_o01900&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN SOURCE_PACKAGE&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE &lt;EM style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt; comp_code EQ SOURCE_PACKAGE-comp_code&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt; and calday GT min_calday&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and salesorg EQ SOURCE_PACKAGE-salesorg&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;and division EQ SOURCE_PACKAGE-division&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and distr_chan EQ SOURCE_PACKAGE-distr_chan&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;and customer&amp;nbsp; EQ SOURCE_PACKAGE-/bic/zsd_dist&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and material EQ SOURCE_PACKAGE-material.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM&gt;&lt;STRONG style="font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;EM style="font-size: 10pt; font-family: inherit;"&gt;You can also create Secondary Index on Comp Code for this DSO &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit;"&gt;Anindya&lt;/SPAN&gt;&lt;EM style="font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 07:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-issue/qaa-p/9683997#M3463684</guid>
      <dc:creator>anindya_bose</dc:creator>
      <dc:date>2013-09-09T07:28:36Z</dc:date>
    </item>
  </channel>
</rss>

