<?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: Improve AUFM SELECT Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048181#M421925</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 adding MBLNR MJAHR ZEILE in where condition.&lt;/P&gt;&lt;P&gt;if not try creating an index with the fields mentioned in the where condition in the same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WHERE condition you are using doesnt have primary keys or it doesnt trace any index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**reward if helpful&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>Tue, 20 Mar 2007 16:15:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-20T16:15:55Z</dc:date>
    <item>
      <title>Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048180#M421924</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;I was wondering have any of you had issues when selecting from AUFM. It is working fine in the test server however in production it is short dumping saying that I am pulling back too many records. Is there any way to solve this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My statement is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SELECT MBLNR MJAHR ZEILE BUDAT MATNR AUFNR EBELN EBELP SAKTO
         FROM AUFM INTO TABLE ITAB_AUFM
          WHERE BUDAT IN S_BUDAT
          AND  AUFNR IN R_AUFNR
          AND  BWART IN S_BWART
          AND  MATNR IN S_MATNR
          AND  LIFNR IN S_LIFNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 16:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048180#M421924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T16:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048181#M421925</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 adding MBLNR MJAHR ZEILE in where condition.&lt;/P&gt;&lt;P&gt;if not try creating an index with the fields mentioned in the where condition in the same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WHERE condition you are using doesnt have primary keys or it doesnt trace any index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**reward if helpful&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>Tue, 20 Mar 2007 16:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048181#M421925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T16:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048182#M421926</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;Do not start the program without any restrictions. Make obligatory at least the S_BUDAT field on your selection screen, and fill it with a default value, for example with the previous month. You can do it in the INITIALIZATION. event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 16:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048182#M421926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T16:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048183#M421927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid I was going to have to index it. I think it might be the only thing I can do but I was hoping someone else might have an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are restrictions on the selection but if the user selects any more than 2 months it crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 16:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048183#M421927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T16:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048184#M421928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You may consider doing cpl of things..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You may revise the sequence of field extraction..&lt;/P&gt;&lt;P&gt;  MBLNR MJAHR ZEILE BUDAT MATNR AUFNR EBELN EBELP SAKTO to &lt;/P&gt;&lt;P&gt;  MBLNR MJAHR ZEILE BUDAT MATNR EBELN EBELP AUFNR SAKTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  And also based on data size you may use only BUDAT in where clause&lt;/P&gt;&lt;P&gt;  and delete the internal table for rest of the conditions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Jus do some trials on these method and i am sure you wud c a considerable change..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please close the thread if your question is answered..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 18:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048184#M421928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048185#M421929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it fails due to lack of memory and you are OK with the performance, you can redesign your select (if it's OK for your program) to process data in packages - check help for "package size " addition to the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you may use field-groups instead of internall table if it's just a report and you do not have any complex logic involving itab_aufm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 20:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048185#M421929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T20:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048186#M421930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,can you explain field-groups? &lt;/P&gt;&lt;P&gt;if the prg have the complex logic involving itab_aufm? we can't use field-groups???&lt;/P&gt;&lt;P&gt;is it the limit of the field-groups???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 01:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048186#M421930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T01:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048187#M421931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the best way to do this is to create a work around. The reason it is failing is due to the large amount of data being pulled back at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i split the dates in half by picking a date in the middle and doing two select statements instead it should be run OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance will be slower but the business user just wants the report to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 11:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048187#M421931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T11:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Improve AUFM SELECT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048188#M421932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider why you are getting all the data in one hit. If this is the data that drives all the other processes then split your select, by package size. This may not be slower, as the data may not be paged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If however you are going to read / loop this internal table then you search conditions will be critical. Read the Rob Burbank blog &amp;lt;a href="/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops"&amp;gt;Performance of Nested Loops&amp;lt;/a&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MattG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 11:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-aufm-select-statement/m-p/2048188#M421932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T11:21:42Z</dc:date>
    </item>
  </channel>
</rss>

