<?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 tunning required.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning-required/m-p/3273040#M782437</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 can do the performance tuning in transaction &lt;STRONG&gt;SE30&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;There go to &lt;STRONG&gt;Tips and Tricks&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you can compare the time taken by diffrerent queries and you can select the best one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2008 09:43:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-11T09:43:09Z</dc:date>
    <item>
      <title>Performance tunning required..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning-required/m-p/3273039#M782436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please do tell me what is the best alternative of writing the below select queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;r_matnr&lt;/STRONG&gt;       is a range having 30,000 entries in it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;R_LGNUM&lt;/STRONG&gt;  is a range having 10,000 entries in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DELETE FROM s031 WHERE werks = p_werks AND matnr IN r_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)TABLES: LTAP.&lt;/P&gt;&lt;P&gt; select distinct tanum from LTAP into ltap-tanum&lt;/P&gt;&lt;P&gt;   WHERE LGNUM IN R_LGNUM AND    &lt;/P&gt;&lt;P&gt;   MATNR IN R_MATNR.&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;     select * from ekko where ekorg in r_ekorg.&lt;/P&gt;&lt;P&gt;      select single * from ekpo where ebeln = ekko-ebeln&lt;/P&gt;&lt;P&gt;                                  and matnr in r_matnr.&lt;/P&gt;&lt;P&gt;      check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      add 1 to count_pu.&lt;/P&gt;&lt;P&gt;      check p_test ne 'X'.&lt;/P&gt;&lt;P&gt;      PERFORM DELETE_PURCHASING_DOCS.&lt;/P&gt;&lt;P&gt;      PERFORM COMMIT_CHECK USING count_pu.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 07:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning-required/m-p/3273039#M782436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T07:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tunning required..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning-required/m-p/3273040#M782437</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 can do the performance tuning in transaction &lt;STRONG&gt;SE30&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;There go to &lt;STRONG&gt;Tips and Tricks&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you can compare the time taken by diffrerent queries and you can select the best one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 09:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning-required/m-p/3273040#M782437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T09:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tunning required..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning-required/m-p/3273041#M782438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Syed Husain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try following&lt;/P&gt;&lt;P&gt;(Assuming all your entries in r_matnr and r_lgnum as inclusive equal I EQ )&lt;/P&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;&amp;lt;all key fields of S031&amp;gt;&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;select &amp;lt;key_fields&amp;gt; from s031 &lt;/P&gt;&lt;P&gt;into table itab &lt;/P&gt;&lt;P&gt;for all entries in r_matnr&lt;/P&gt;&lt;P&gt;where werks = p_werks AND matnr = r_matnr-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete s031 from table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;data : begin of itab.&lt;/P&gt;&lt;P&gt;tanum type S031-tanum,&lt;/P&gt;&lt;P&gt;lgnum type S031-lgnum,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;data : itab_final like table of itab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;f_tab&amp;gt; like line of itab.&lt;/P&gt;&lt;P&gt;select tanum lgnum&lt;/P&gt;&lt;P&gt;into table itab.&lt;/P&gt;&lt;P&gt;for all entries in r_matnr&lt;/P&gt;&lt;P&gt;from LTAP &lt;/P&gt;&lt;P&gt;WHERE MATNR = R_MATNR-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab assiging &amp;lt;f_tab&amp;gt;.&lt;/P&gt;&lt;P&gt;if &amp;lt;f_tab&amp;gt;-lgnum in r_lgnum.&lt;/P&gt;&lt;P&gt;itab_final = &amp;lt;f_tab.&amp;gt;&lt;/P&gt;&lt;P&gt;append itab_final&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab_final tanum.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab_final comparing tanum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_ekko type table of ekko with header line,&lt;/P&gt;&lt;P&gt;l_ekpo type table of ekpo with header line,&lt;/P&gt;&lt;P&gt;final_ekpo type table of ekpo with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;f_ekpo&amp;gt; like line of l_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check p_test &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;into l_ekko&lt;/P&gt;&lt;P&gt;from ekko where ekorg in r_ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;into table l_ekpo&lt;/P&gt;&lt;P&gt;for all entries in l_ekko&lt;/P&gt;&lt;P&gt;where ebeln = l_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at l_ekpo assigning &amp;lt;f_ekpo&amp;gt;.&lt;/P&gt;&lt;P&gt;if &amp;lt;f_ekpo&amp;gt;-matnr in r_matnr.&lt;/P&gt;&lt;P&gt;final_ekpo = &amp;lt;f_ekpo&amp;gt;.&lt;/P&gt;&lt;P&gt;append final_ekpo.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;clear l_ekpo[], l_ekpo.&lt;/P&gt;&lt;P&gt;free l_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at final_ekpo assigning &amp;lt;f_ekpo&amp;gt;.&lt;/P&gt;&lt;P&gt;on change of &amp;lt;f_ekpo&amp;gt;-ebeln.&lt;/P&gt;&lt;P&gt;clear count_pu&lt;/P&gt;&lt;P&gt;endon.&lt;/P&gt;&lt;P&gt;add 1 to count_pu.&lt;/P&gt;&lt;P&gt;PERFORM DELETE_PURCHASING_DOCS.&lt;/P&gt;&lt;P&gt;PERFORM COMMIT_CHECK USING count_pu.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 10:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning-required/m-p/3273041#M782438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T10:26:15Z</dc:date>
    </item>
  </channel>
</rss>

