<?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: how to tune expencesive sql statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-tune-expencesive-sql-statement/m-p/4609480#M1086177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your using only OBJID field in for all entering deleting adajcent duplicate comparing only with oBJID should be done . Did you do that ??? If not do it it will have impact on your performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT LT_OBJID by OBJID.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM lt_objid comparing OBJID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 12:11:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-16T12:11:41Z</dc:date>
    <item>
      <title>how to tune expencesive sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-tune-expencesive-sql-statement/m-p/4609479#M1086176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I have an expencesive sql statement.&lt;/P&gt;&lt;P&gt; how to tune this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Q linked to position&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lt_objid[] = I_OBJID_TAB[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT LT_OBJID[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT OBJID SOBID INTO TABLE LT_STOQ&lt;/P&gt;&lt;P&gt;    FROM HRP1001&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN LT_OBJID&lt;/P&gt;&lt;P&gt;    WHERE  OTYPE =  'S'&lt;/P&gt;&lt;P&gt;    AND    OBJID =  LT_OBJID-OBJID&lt;/P&gt;&lt;P&gt;    AND    PLVAR =  '01'&lt;/P&gt;&lt;P&gt;    AND    RSIGN =  'A'&lt;/P&gt;&lt;P&gt;    AND    RELAT =  'ZPC'&lt;/P&gt;&lt;P&gt;    AND    ISTAT =  '1'&lt;/P&gt;&lt;P&gt;    AND    BEGDA &amp;lt;= KDATE&lt;/P&gt;&lt;P&gt;    AND    ENDDA &amp;gt;= KDATE&lt;/P&gt;&lt;P&gt;    AND    SCLAS =  'Q'.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      LOOP AT LT_STOQ.&lt;/P&gt;&lt;P&gt;        LT_OBJID2-OBJID = LT_STOQ-SOBID.&lt;/P&gt;&lt;P&gt;        APPEND LT_OBJID2.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;      SORT LT_OBJID2.&lt;/P&gt;&lt;P&gt;      DELETE ADJACENT DUPLICATES FROM lt_objid2.&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;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 12:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-tune-expencesive-sql-statement/m-p/4609479#M1086176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T12:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to tune expencesive sql statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-tune-expencesive-sql-statement/m-p/4609480#M1086177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your using only OBJID field in for all entering deleting adajcent duplicate comparing only with oBJID should be done . Did you do that ??? If not do it it will have impact on your performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT LT_OBJID by OBJID.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM lt_objid comparing OBJID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 12:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-tune-expencesive-sql-statement/m-p/4609480#M1086177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T12:11:41Z</dc:date>
    </item>
  </channel>
</rss>

