<?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 vs Field level Routine-performance issue in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418840#M3777280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rubane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you check as to where exactly its taking by Debugging...&lt;/P&gt;&lt;P&gt;Is it in the start Routine or is it in the Read. ? based on that we can optimize the code.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are u doing Sorting of Records.&lt;/LI&gt;&lt;LI&gt;Are u doing binary Search.&lt;/LI&gt;&lt;LI&gt;Are u picking the data from P table of masters with Version as A.&lt;/LI&gt;&lt;LI&gt;Are u doing Select * or Select Single or Select Particular fields.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also check with an ABAPer and he should be able to ZERO in on the code issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also use it in the End routine..at records will be processed once for all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SVU&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 18:50:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-01T18:50:33Z</dc:date>
    <item>
      <title>Start routine vs Field level Routine-performance issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaq-p/10418837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've scenario wherein I've to update 4 char fields by looking up DSO values in transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Characteristics are A B C D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info-objects A B C D mapping is available in DSO so before updating this value in cube for these IOS I need to look master data table for Sales Org text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I need to look at sales text , therefore I can not straightway read by rule type "read from DSO" because I need to match text first from text table with char IO A at DSO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this&amp;nbsp; I populated the internal tables with master data value and DSO values and have data ready at start routine level for all my transformation need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next step i've done is that ,in transformation at every rule type-I mean individual rule type(routine) for characteristics I'm using read statement to read internal tables for master data and DSO to update individual characteristics value based on matching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like for A separate read(2 read statements one for reading DSO and one for MD ) statements at individual rule type in transformation&lt;/P&gt;&lt;P&gt;for B&amp;nbsp; separate read(2 read statements one for reading DSO and one for MD ) statements at individual rule type in transformation&lt;/P&gt;&lt;P&gt;for C&amp;nbsp; separate read(2 read statements one for reading DSO and one for MD ) statements at individual rule type in transformation&lt;/P&gt;&lt;P&gt;for D&amp;nbsp;&amp;nbsp; separate read(2 read statements one for reading DSO and one for MD ) statements at individual rule type in transformation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the thing is code is working fine but I realized the performance of the transformation degraded significantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is ,Is this the right way to do this or is there any other way to achive good performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be updating all the fields at once ,rather then, running&amp;nbsp; two read statements at one individual char routine in transformation for all chars?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 00:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaq-p/10418837</guid>
      <dc:creator>former_member196080</dc:creator>
      <dc:date>2014-07-01T00:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Start routine vs Field level Routine-performance issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418838#M3777278</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;Open the DTP log and observe where the load is taking time - is it in the start routine or in the field routines?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get a little improvement by moving the field routines into an End routine. That is also more maintainable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect some of your performance hit is due to the text lookup too. Try to see if there is a workaround which can avoid looking up based on text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 03:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418838#M3777278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-01T03:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Start routine vs Field level Routine-performance issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418839#M3777279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks like the time its taking in rules ,transformation rules level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you give some examples ,how to do at end routine level that way it will be helpful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 17:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418839#M3777279</guid>
      <dc:creator>former_member196080</dc:creator>
      <dc:date>2014-07-01T17:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Start routine vs Field level Routine-performance issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418840#M3777280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rubane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you check as to where exactly its taking by Debugging...&lt;/P&gt;&lt;P&gt;Is it in the start Routine or is it in the Read. ? based on that we can optimize the code.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are u doing Sorting of Records.&lt;/LI&gt;&lt;LI&gt;Are u doing binary Search.&lt;/LI&gt;&lt;LI&gt;Are u picking the data from P table of masters with Version as A.&lt;/LI&gt;&lt;LI&gt;Are u doing Select * or Select Single or Select Particular fields.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also check with an ABAPer and he should be able to ZERO in on the code issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also use it in the End routine..at records will be processed once for all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SVU&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 18:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418840#M3777280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-01T18:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Start routine vs Field level Routine-performance issue</title>
      <link>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418841#M3777281</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;Mainly you have to move the code from the field routine to the End routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;SPAN style="font-size: 10pt;"&gt; in the End routine you'd write:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT RESULT_PACKAGE ASSIGNING &amp;lt;result_fields&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;&amp;lt;similar read stmt as the one currently used in the field routine&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;result_fields&amp;gt;-fieldname = work_area_of_the_above_itab-fieldname. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 03:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-routine-vs-field-level-routine-performance-issue/qaa-p/10418841#M3777281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-02T03:57:40Z</dc:date>
    </item>
  </channel>
</rss>

