<?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/3570006#M859196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the select statement is not correct as it is presented in your thread: there is no ENDSELECT required. This failure should cause a simple check-error and this is not the reason for the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSEG is a huge table. Try to use &lt;U&gt;ALL&lt;/U&gt; or &lt;U&gt;as many as possible&lt;/U&gt; mseg key words in the where clause and try to restrict your entry table iekpo (best is 1 entry only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and press your thumbs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 20:40:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-18T20:40:13Z</dc:date>
    <item>
      <title>performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570004#M859194</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;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 07:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570004#M859194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T07:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570005#M859195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MSEG table has huge data. So got to include all the key fields in the where condition of your select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key Fields to be included.&lt;/P&gt;&lt;P&gt;MBLNR&lt;/P&gt;&lt;P&gt;MJAHR&lt;/P&gt;&lt;P&gt;ZEILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 07:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570005#M859195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570006#M859196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the select statement is not correct as it is presented in your thread: there is no ENDSELECT required. This failure should cause a simple check-error and this is not the reason for the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSEG is a huge table. Try to use &lt;U&gt;ALL&lt;/U&gt; or &lt;U&gt;as many as possible&lt;/U&gt; mseg key words in the where clause and try to restrict your entry table iekpo (best is 1 entry only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and press your thumbs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 20:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570006#M859196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T20:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570007#M859197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anand ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  When you used INTO TABLE there is no need of  " end select".&lt;/P&gt;&lt;P&gt;&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 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;Now it works fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 03:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570007#M859197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T03:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570008#M859198</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not &lt;STRONG&gt;iekpo[]&lt;/STRONG&gt; is initial.&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 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;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and 'End select' is not required here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 13:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570008#M859198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570009#M859199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhumita Vasu has given you the correct solution&lt;/P&gt;&lt;P&gt;You have written ekpo[] instead iekpo[].&lt;/P&gt;&lt;P&gt;so below it should be iekpo[].&lt;/P&gt;&lt;P&gt;if not &lt;STRONG&gt;iekpo[]&lt;/STRONG&gt; is initial.&lt;/P&gt;&lt;P&gt;select mblnr mjahr menge erfmg erfme ebeln 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 &lt;/P&gt;&lt;P&gt;                                             and    ebelp = iekpo-ebelp.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;No need to put endselect here put endif only at last.Endselect is only used for the loop where one by one the data of a structure is put into the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok Take care ,bye.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards.&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2008 08:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570009#M859199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-20T08:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570010#M859200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As already said by many of our friends 'ENDSELECT' is not necessary, but I dont think that the problem you have mentioned is because of that. &lt;/P&gt;&lt;P&gt;As it is known that MSEG contains many records, so while fetching data from the table if we do not use keys then the select query takes longer time and gives short dump.&lt;/P&gt;&lt;P&gt;You need to use indexes here so that the data fetches fastly. Check if the existing Indexes helps you or try to create a new index for the table. &lt;/P&gt;&lt;P&gt;This should work and it will also. I personally had an issue similar to this and I have solved by using indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 09:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570010#M859200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570011#M859201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since MSEG is a huge table it is causing the problem so make sure you are using all key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if it is necessary to use this to field EBELN and EBELP than try making the secondary index in SE11 on this table than i think it will improve the performance of the select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 05:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3570011#M859201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T05:50:01Z</dc:date>
    </item>
  </channel>
</rss>

