<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304589#M504000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joins reduce the performance of a program.&lt;/P&gt;&lt;P&gt;Better dont use joins and write separate select queries for each table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT VBELN&lt;/P&gt;&lt;P&gt;         AUGRU INTO CORRESPONDING FIELDS OF TABLE IT_VBAK&lt;/P&gt;&lt;P&gt;               FROM VBAK&lt;/P&gt;&lt;P&gt;               WHERE VBELN IN S_VBELN.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT VBELN&lt;/P&gt;&lt;P&gt;           POSNR&lt;/P&gt;&lt;P&gt;           MATNR&lt;/P&gt;&lt;P&gt;           ZMENG INTO CORRESPONDING FIELDS OF TABLE IT_VBAP&lt;/P&gt;&lt;P&gt;                 FROM VBAP&lt;/P&gt;&lt;P&gt;                 FOR ALL ENTRIES IN IT_VBAK&lt;/P&gt;&lt;P&gt;                 WHERE VBELN = IT_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT SPRAS&lt;/P&gt;&lt;P&gt;             AUGRU&lt;/P&gt;&lt;P&gt;             BEZEI INTO CORRESPONDING FIELDS OF TABLE IT_REASON&lt;/P&gt;&lt;P&gt;                   FROM TVAUT&lt;/P&gt;&lt;P&gt;                   FOR ALL ENTRIES IN IT_VBAK&lt;/P&gt;&lt;P&gt;                   WHERE AUGRU = IT_VBAK-AUGRU.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT VBELN&lt;/P&gt;&lt;P&gt;               PARVW&lt;/P&gt;&lt;P&gt;               KUNNR INTO CORRESPONDING FIELDS OF TABLE IT_VBPA&lt;/P&gt;&lt;P&gt;                     FROM VBPA&lt;/P&gt;&lt;P&gt;                     FOR ALL ENTRIES IN IT_VBAK&lt;/P&gt;&lt;P&gt;                     WHERE VBELN = IT_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pritha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Pritha Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 06:05:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T06:05:09Z</dc:date>
    <item>
      <title>performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304588#M503999</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;Kindly let me know how can i improve performance of the below query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT c&lt;SUB&gt;bukrs c&lt;/SUB&gt;waers c&lt;SUB&gt;prctr b&lt;/SUB&gt;kostl &lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;kstar a&lt;/SUB&gt;versn a~gjahr &lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;wkg001 a&lt;/SUB&gt;wkg002 a&lt;SUB&gt;wkg003 a&lt;/SUB&gt;wkg004 a&lt;SUB&gt;wkg005 a&lt;/SUB&gt;wkg006 &lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;wkg007 a&lt;/SUB&gt;wkg008 a&lt;SUB&gt;wkg009 a&lt;/SUB&gt;wkg010 a&lt;SUB&gt;wkg011 a&lt;/SUB&gt;wkg012 &lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;wkg013 a&lt;/SUB&gt;wkg014 a&lt;SUB&gt;wkg015 a&lt;/SUB&gt;wkg016 &lt;/P&gt;&lt;P&gt;APPENDING TABLE i_temp &lt;/P&gt;&lt;P&gt;FROM coss AS a &lt;/P&gt;&lt;P&gt;JOIN cssl AS b ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr &lt;/P&gt;&lt;P&gt;JOIN csks AS c ON b&lt;SUB&gt;kostl = c&lt;/SUB&gt;kostl &lt;/P&gt;&lt;P&gt;WHERE ( a~lednr EQ '00' &lt;/P&gt;&lt;P&gt;AND a~versn EQ '000' &lt;/P&gt;&lt;P&gt;AND b~kostl IN r_ccde &lt;/P&gt;&lt;P&gt;AND a~wrttp EQ '04' &lt;/P&gt;&lt;P&gt;AND a~gjahr EQ p_fy &lt;/P&gt;&lt;P&gt;AND a~kstar GE '0000000000' &lt;/P&gt;&lt;P&gt;AND a~kstar LE '0000999999' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304588#M503999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304589#M504000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joins reduce the performance of a program.&lt;/P&gt;&lt;P&gt;Better dont use joins and write separate select queries for each table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT VBELN&lt;/P&gt;&lt;P&gt;         AUGRU INTO CORRESPONDING FIELDS OF TABLE IT_VBAK&lt;/P&gt;&lt;P&gt;               FROM VBAK&lt;/P&gt;&lt;P&gt;               WHERE VBELN IN S_VBELN.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT VBELN&lt;/P&gt;&lt;P&gt;           POSNR&lt;/P&gt;&lt;P&gt;           MATNR&lt;/P&gt;&lt;P&gt;           ZMENG INTO CORRESPONDING FIELDS OF TABLE IT_VBAP&lt;/P&gt;&lt;P&gt;                 FROM VBAP&lt;/P&gt;&lt;P&gt;                 FOR ALL ENTRIES IN IT_VBAK&lt;/P&gt;&lt;P&gt;                 WHERE VBELN = IT_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT SPRAS&lt;/P&gt;&lt;P&gt;             AUGRU&lt;/P&gt;&lt;P&gt;             BEZEI INTO CORRESPONDING FIELDS OF TABLE IT_REASON&lt;/P&gt;&lt;P&gt;                   FROM TVAUT&lt;/P&gt;&lt;P&gt;                   FOR ALL ENTRIES IN IT_VBAK&lt;/P&gt;&lt;P&gt;                   WHERE AUGRU = IT_VBAK-AUGRU.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT VBELN&lt;/P&gt;&lt;P&gt;               PARVW&lt;/P&gt;&lt;P&gt;               KUNNR INTO CORRESPONDING FIELDS OF TABLE IT_VBPA&lt;/P&gt;&lt;P&gt;                     FROM VBPA&lt;/P&gt;&lt;P&gt;                     FOR ALL ENTRIES IN IT_VBAK&lt;/P&gt;&lt;P&gt;                     WHERE VBELN = IT_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pritha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Pritha Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304589#M504000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304590#M504001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you are not joining tables on the basis of keys of those tables, you can use FOR ALL ENTRIES as explained above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fetch data from one table first into internal table and then use FOR ALL ENTRIES in &amp;lt;itab&amp;gt; for second SELECT QUERY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304590#M504001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304591#M504002</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 for all enries instead of join to improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) select data from table coss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT objnr kstar versn gjahr &lt;/P&gt;&lt;P&gt;wkg001 wkg002 wkg003 wkg004 wkg005 wkg006 &lt;/P&gt;&lt;P&gt;wkg007 wkg008 wkg009 wkg010 wkg011 wkg012 &lt;/P&gt;&lt;P&gt;wkg013 wkg014 wkg015 wkg016 &lt;/P&gt;&lt;P&gt;into  TABLE i_coss &lt;/P&gt;&lt;P&gt;FROM coss &lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;lednr EQ '00' &lt;/P&gt;&lt;P&gt;AND versn EQ '000' &lt;/P&gt;&lt;P&gt;AND wrttp EQ '04' &lt;/P&gt;&lt;P&gt;AND gjahr EQ p_fy &lt;/P&gt;&lt;P&gt;AND kstar GE '0000000000' &lt;/P&gt;&lt;P&gt;AND kstar LE '0000999999' ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_coss is not intial.&lt;/P&gt;&lt;P&gt;select objnr  kostl&lt;/P&gt;&lt;P&gt;          into i_cssl&lt;/P&gt;&lt;P&gt;          from cssl&lt;/P&gt;&lt;P&gt;for all entries in i_coss&lt;/P&gt;&lt;P&gt;where objnr = i_coss-objnr&lt;/P&gt;&lt;P&gt;and kostl IN r_ccde .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_cssl is not initial.&lt;/P&gt;&lt;P&gt;select bukrs waers prctr kostl &lt;/P&gt;&lt;P&gt;into table i_csks&lt;/P&gt;&lt;P&gt;from csks&lt;/P&gt;&lt;P&gt;for all entries in i_cssl&lt;/P&gt;&lt;P&gt;where kostl = it_cssl-kostl.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points igf useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304591#M504002</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-05-31T06:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304592#M504003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the inner join and try maintain the views and make the select query from the same..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2304592#M504003</guid>
      <dc:creator>Neslinn</dc:creator>
      <dc:date>2007-05-31T06:28:52Z</dc:date>
    </item>
  </channel>
</rss>

