<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714665#M894213</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;honestly there is not too much space to improve performance of your program. Probably there is no space at all. The tables VBAK and VBAP are usually very big. You use primary key for reading data from VBAK, hence there is no space for improvement. Then you use part of the primary key for reading data from VBAP. Hence again there is no space for improvement. There should be no records in VBAP with posnr equals to space. So you can get rid of that condition. As I said, these tables are big and you use primary keys to get data from tables. Therefore I do not see so much space for improvements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 May 2008 04:07:06 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2008-05-04T04:07:06Z</dc:date>
    <item>
      <title>Performance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714663#M894211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Please help me improve the performance of my program,it is scanning too many records in the code below and hence taking a lot of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form sub_get_hdr_data  changing xyt_git_vbak type gty_t_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH xyt_git_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;          FROM vbak INTO TABLE xyt_git_vbak&lt;/P&gt;&lt;P&gt;          WHERE vbeln IN s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SORT xyt_git_vbak by vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " sub_get_hdr_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_get_itm_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form sub_get_itm_data  using    xt_git_vbak type gty_t_vbak&lt;/P&gt;&lt;P&gt;                       changing xyt_git_vbap type gty_t_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH xyt_git_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not xt_git_vbak[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select vbeln&lt;/P&gt;&lt;P&gt;           matnr&lt;/P&gt;&lt;P&gt;           BRGEW&lt;/P&gt;&lt;P&gt;           VBELV&lt;/P&gt;&lt;P&gt;           POSNV from vbap into table xyt_git_vbap&lt;/P&gt;&lt;P&gt;           for all entries in xt_git_vbak&lt;/P&gt;&lt;P&gt;           where vbeln = xt_git_vbak-vbeln&lt;/P&gt;&lt;P&gt;           and   posnr ne space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      sort xyt_git_vbap by vbeln.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;Please reply urgently.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Subia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 09:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714663#M894211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T09:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714664#M894212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the select-option S_VBELN is initial then the select statement fetches all the records from table VBAK.&lt;/P&gt;&lt;P&gt;Try to reduce the selection set by giving more fields in the selection criteria.&lt;/P&gt;&lt;P&gt;When using &lt;EM&gt;for all entries&lt;/EM&gt;  in the select statement for fetching item data from VBAP include all the key fields in the table (i.e. VBELN and POSNR) to ensure you get all the items in an order. You can also remove the condition 'posnr ne space'. Create a secondary index for VBAP with the required fields to improve the performanace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this info is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 12:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714664#M894212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714665#M894213</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;honestly there is not too much space to improve performance of your program. Probably there is no space at all. The tables VBAK and VBAP are usually very big. You use primary key for reading data from VBAK, hence there is no space for improvement. Then you use part of the primary key for reading data from VBAP. Hence again there is no space for improvement. There should be no records in VBAP with posnr equals to space. So you can get rid of that condition. As I said, these tables are big and you use primary keys to get data from tables. Therefore I do not see so much space for improvements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2008 04:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714665#M894213</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2008-05-04T04:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714666#M894214</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;&lt;/P&gt;&lt;P&gt;the number of records scannned is based on the value range u specify in s_vbeln.&lt;/P&gt;&lt;P&gt;in your 2nd select, remove posnr &lt;STRONG&gt;ne&lt;/STRONG&gt; space. these unwanted entries can be deleted after the data fetch. specifying inequality condition will bypass the index/key search. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhumitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 04:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714666#M894214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T04:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tunning</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714667#M894215</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;Instead of using a sort statement after both the select statements use the addition 'ORDER BY' of select statement itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 05:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tunning/m-p/3714667#M894215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T05:15:28Z</dc:date>
    </item>
  </channel>
</rss>

