<?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: peformance tuning in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424933#M203733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i think these two tables are very big data tables and join of these is taking most of the execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u tell how to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2006 05:53:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-24T05:53:58Z</dc:date>
    <item>
      <title>peformance tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424929#M203729</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;i have got stuck in performance tuning osf one query&lt;/P&gt;&lt;P&gt;how can i tune this query by breaking it into two parts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT a~vguid&lt;/P&gt;&lt;P&gt;         b~vbeln&lt;/P&gt;&lt;P&gt;         b~posnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         b~charg&lt;/P&gt;&lt;P&gt;         b~bwtar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         c~kunnr&lt;/P&gt;&lt;P&gt;         b~kwmeng&lt;/P&gt;&lt;P&gt;         INTO TABLE i_sales&lt;/P&gt;&lt;P&gt;         FROM vlccuorder AS a&lt;/P&gt;&lt;P&gt;         INNER JOIN vbap AS b&lt;/P&gt;&lt;P&gt;         ON ( a&lt;SUB&gt;vbeln EQ b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;         AND  a&lt;SUB&gt;posnr EQ b&lt;/SUB&gt;posnr )&lt;/P&gt;&lt;P&gt;         INNER JOIN vbak AS c&lt;/P&gt;&lt;P&gt;         ON ( b&lt;SUB&gt;vbeln EQ c&lt;/SUB&gt;vbeln )&lt;/P&gt;&lt;P&gt;         JOIN lqua AS d&lt;/P&gt;&lt;P&gt;         ON ( b&lt;SUB&gt;charg EQ d&lt;/SUB&gt;charg )&lt;/P&gt;&lt;P&gt;         WHERE b~vbeln IN s_vbeln&lt;/P&gt;&lt;P&gt;           AND c~kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;           AND d~werks IN s_werks&lt;/P&gt;&lt;P&gt;            AND c~auart EQ 'ZOR'&lt;/P&gt;&lt;P&gt;            AND b~abgru EQ space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wherin primary key fields of tables are:&lt;/P&gt;&lt;P&gt;a)vlccuorder is  vguid&lt;/P&gt;&lt;P&gt;b)vbap  is vbeln and posnr&lt;/P&gt;&lt;P&gt;c)vbak  is vbeln&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>Mon, 24 Jul 2006 05:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424929#M203729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T05:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: peformance tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424930#M203730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't seem to be selecting an fields from the LQUA table....So y r u doing a JOIN on LQUA table?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That apart....I think you shd first do the VBAK n VBAP selects as ur selecting that data based on the selection screen data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then based on the data selected u can go in for the 'vlccuorder' select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aarthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 05:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424930#M203730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T05:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: peformance tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424931#M203731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;idea is i want to break two tables- vbap and vbak &lt;/P&gt;&lt;P&gt;by using "for all entries in" or may be "using corresponding fields of"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks if u can guide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 05:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424931#M203731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T05:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: peformance tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424932#M203732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;y  u  want  to break  into vbak  and  bap...&lt;/P&gt;&lt;P&gt;one  is  item level  and  othe  is  header level table ...&lt;/P&gt;&lt;P&gt;it  is  better  u  take  join  on  both  table  and  fetch  value  in  an internal table ...&lt;/P&gt;&lt;P&gt; now  on the  bases  of  these  value  u  fetch all required values  from  diffrent  table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 05:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424932#M203732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T05:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: peformance tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424933#M203733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i think these two tables are very big data tables and join of these is taking most of the execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u tell how to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 05:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424933#M203733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T05:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: peformance tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424934#M203734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not  rite...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they  have  big  data  but  there  are   lots  of  key  fields  in these table..&lt;/P&gt;&lt;P&gt;data: begin of i_sales occurs 0,&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;charg&lt;/P&gt;&lt;P&gt;bwtar&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;kwmeng&lt;/P&gt;&lt;P&gt;vguid&lt;/P&gt;&lt;P&gt;end of i_sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select b~vbeln&lt;/P&gt;&lt;P&gt;b~posnr&lt;/P&gt;&lt;P&gt;b~charg&lt;/P&gt;&lt;P&gt;b~bwtar&lt;/P&gt;&lt;P&gt;c~kunnr&lt;/P&gt;&lt;P&gt;b~kwmeng&lt;/P&gt;&lt;P&gt;INTO TABLE i_sales&lt;/P&gt;&lt;P&gt;FROM vbap AS b&lt;/P&gt;&lt;P&gt;INNER JOIN vbak AS c&lt;/P&gt;&lt;P&gt;ON  b&lt;SUB&gt;vbeln EQ c&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;inner  JOIN lqua AS d&lt;/P&gt;&lt;P&gt;ON b&lt;SUB&gt;charg = d&lt;/SUB&gt;charg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE b~vbeln IN s_vbeln&lt;/P&gt;&lt;P&gt;AND c~kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;AND d~werks IN s_werks&lt;/P&gt;&lt;P&gt;AND c~auart EQ 'ZOR'&lt;/P&gt;&lt;P&gt;AND b~abgru EQ space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now  select value  vguid for  all entries in i_selecs from&lt;/P&gt;&lt;P&gt;vlccuorder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;vbeln type vbeln,&lt;/P&gt;&lt;P&gt;vguid type vguid,&lt;/P&gt;&lt;P&gt;end of itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select vbeln vguid into table itab from vlccuorder&lt;/P&gt;&lt;P&gt;                    for all entries in i_sales&lt;/P&gt;&lt;P&gt;                    where vbeln = i_sales-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab .&lt;/P&gt;&lt;P&gt;loop at i_sales .&lt;/P&gt;&lt;P&gt;read table itab binary search with key vbeln = i_sales-vbeln&lt;/P&gt;&lt;P&gt;i_sales-vguid = itab-vguid.&lt;/P&gt;&lt;P&gt;modify i_sales.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 06:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424934#M203734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T06:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: peformance tuning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424935#M203735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok&lt;/P&gt;&lt;P&gt;then try and send me the breaked query as the way u are saying.&lt;/P&gt;&lt;P&gt;lets see whether it is tuned or not.&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, 24 Jul 2006 06:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/peformance-tuning/m-p/1424935#M203735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T06:15:48Z</dc:date>
    </item>
  </channel>
</rss>

