<?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: perfromance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570442#M859317</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 remove the duplicate entries from the EKPO and not use EBELP since these fields are not primary keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also try use the primary keys from MSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the table EKET (PO order History) to get the information which will be very fast  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and let me know&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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 07:55:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-18T07:55:13Z</dc:date>
    <item>
      <title>perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570440#M859315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all my program is going to dump in quality as i am using MSEG table based on ebeln and ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check the query below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of imseg occurs 0,&lt;/P&gt;&lt;P&gt;mblnr like mseg-mblnr,&lt;/P&gt;&lt;P&gt;mjahr like mseg-mjahr,&lt;/P&gt;&lt;P&gt;menge like mseg-menge,&lt;/P&gt;&lt;P&gt;ERFMG LIKE MSEG-ERFMG,&lt;/P&gt;&lt;P&gt;erfme like mseg-erfme,&lt;/P&gt;&lt;P&gt;ebeln like mseg-ebeln,&lt;/P&gt;&lt;P&gt;ebelp like mseg-ebelp,&lt;/P&gt;&lt;P&gt;end of imseg.&lt;/P&gt;&lt;P&gt;if not ekpo[] is initial.&lt;/P&gt;&lt;P&gt;select mblnr&lt;/P&gt;&lt;P&gt;mjahr&lt;/P&gt;&lt;P&gt;menge&lt;/P&gt;&lt;P&gt;erfmg&lt;/P&gt;&lt;P&gt;erfme&lt;/P&gt;&lt;P&gt;ebeln&lt;/P&gt;&lt;P&gt;ebelp&lt;/P&gt;&lt;P&gt;from mseg into table imseg&lt;/P&gt;&lt;P&gt;for all entries in iekpo&lt;/P&gt;&lt;P&gt;where ebeln = iekpo-ebeln and&lt;/P&gt;&lt;P&gt;ebelp = iekpo-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 07:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570440#M859315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T07:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570441#M859316</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;for the performance issue u hava to look up some stapes .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. use internal table without header line.&lt;/P&gt;&lt;P&gt;   ( first structure then internal table .&lt;/P&gt;&lt;P&gt;     data : &amp;lt; I tanble name &amp;gt; type standard table of &amp;lt; structure name &amp;gt; initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Don't use select * , use required fields &lt;/P&gt;&lt;P&gt;3. don't use corresponding key word&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. from ST05 find out witch select statement is performance bad &lt;/P&gt;&lt;P&gt;5. use upper case letter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. if performance bad then use secondary index.&lt;/P&gt;&lt;P&gt;7. avoid nested select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaning uou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 07:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570441#M859316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T07:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570442#M859317</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 remove the duplicate entries from the EKPO and not use EBELP since these fields are not primary keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also try use the primary keys from MSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the table EKET (PO order History) to get the information which will be very fast  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and let me know&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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 07:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570442#M859317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570443#M859318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some small tuning that you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Select the fields in the same order as in MSEG table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Add this lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lt_ekpo type standard table of ekpo.&lt;/P&gt;&lt;P&gt;lt_ekpo[] = ekpo[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort lt_ekpo by ebeln ebelp.&lt;/P&gt;&lt;P&gt;delete adjacent duplicate from lt_ekpo comparing ebeln ebelop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this sorted and unique driver table to get data from MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also seat with functional person and check if you can access MKPF first followed by MSEG. MKPF is the header table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 12:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570443#M859318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T12:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570444#M859319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the previous answers and recommendations are pretty good and should be realized specifically the table declaration (data: itab type standard table ...). I recognized an incorrect statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not &lt;STRONG&gt;ekpo\[\]&lt;/STRONG&gt; is initial. should be: if not &lt;STRONG&gt;iekpo[]&lt;/STRONG&gt; is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2008 06:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570444#M859319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-22T06:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570445#M859320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the coding i see that you have written ekpo and iekpo. Please decide whether youe internal table name is ekpo or iekpo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you write the correct internal table it should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2008 14:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570445#M859320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-22T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570446#M859321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; The program going for dump could be because the data is too much to be fiited into an internal table . Since you have selected on EBELN and EBELP which are not key fields of MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRy using PACKAGE SIZE  statement in your select clause. You will be able to restrict the number of records which come into your internal table. &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;Soumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 07:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570446#M859321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T07:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570447#M859322</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;select mblnr&lt;/P&gt;&lt;P&gt;mjahr&lt;/P&gt;&lt;P&gt;menge&lt;/P&gt;&lt;P&gt;erfmg&lt;/P&gt;&lt;P&gt;erfme&lt;/P&gt;&lt;P&gt;ebeln&lt;/P&gt;&lt;P&gt;ebelp&lt;/P&gt;&lt;P&gt;from mseg &lt;/P&gt;&lt;P&gt;APPENDING table imseg&lt;/P&gt;&lt;P&gt;for all entries in iekpo&lt;/P&gt;&lt;P&gt;PACKAZE SIZE 20000&lt;/P&gt;&lt;P&gt;where ebeln = iekpo-ebeln and&lt;/P&gt;&lt;P&gt;ebelp = iekpo-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the package size according to your system performace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 08:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570447#M859322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T08:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: perfromance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570448#M859323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any select query for a biger table(more data) needs to use table index in the query.&lt;/P&gt;&lt;P&gt;Please check if any index defined for table MSEG suits your requirement else create an table index.&lt;/P&gt;&lt;P&gt;It will work. If a select query is not using any index defined in the table then it will automatically take loger time and goes to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 09:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perfromance-issue/m-p/3570448#M859323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T09:33:21Z</dc:date>
    </item>
  </channel>
</rss>

