<?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 I'm facing performance issue while accessing the PLAF Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707186#M1453255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dar all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing performance issue while accessing the PLAF Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The START-OF-SELECTION of the report starts with the following select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT plnum  pwwrk matnr gsmng psttr FROM plaf&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE it_tab&lt;/P&gt;&lt;P&gt;    WHERE matnr IN s_matnr&lt;/P&gt;&lt;P&gt;      AND pwwrk = p_pwwrk&lt;/P&gt;&lt;P&gt;      AND psttr IN s_psttr&lt;/P&gt;&lt;P&gt;      AND auffx = 'X'&lt;/P&gt;&lt;P&gt;      AND paart = 'LA' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing the report in the &lt;STRONG&gt;Quality system&lt;/STRONG&gt; it does not face any performance issue...&lt;/P&gt;&lt;P&gt;When it comes to &lt;STRONG&gt;Production System&lt;/STRONG&gt; the above said select query itself it is taking 15 - 20 minutes time to move further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to over come this problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jessi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Mar 2010 06:09:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-16T06:09:58Z</dc:date>
    <item>
      <title>I'm facing performance issue while accessing the PLAF Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707186#M1453255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dar all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing performance issue while accessing the PLAF Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The START-OF-SELECTION of the report starts with the following select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT plnum  pwwrk matnr gsmng psttr FROM plaf&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE it_tab&lt;/P&gt;&lt;P&gt;    WHERE matnr IN s_matnr&lt;/P&gt;&lt;P&gt;      AND pwwrk = p_pwwrk&lt;/P&gt;&lt;P&gt;      AND psttr IN s_psttr&lt;/P&gt;&lt;P&gt;      AND auffx = 'X'&lt;/P&gt;&lt;P&gt;      AND paart = 'LA' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing the report in the &lt;STRONG&gt;Quality system&lt;/STRONG&gt; it does not face any performance issue...&lt;/P&gt;&lt;P&gt;When it comes to &lt;STRONG&gt;Production System&lt;/STRONG&gt; the above said select query itself it is taking 15 - 20 minutes time to move further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to over come this problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jessi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 06:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707186#M1453255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T06:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: I'm facing performance issue while accessing the PLAF Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707187#M1453256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"Just implement its primary Key

make your it_tab fields in the Same order as mentioned in the select query or change the order in the select query
to in line with it_tab declaration

SELECT plnum pwwrk matnr gsmng psttr FROM plaf
INTO CORRESPONDING FIELDS OF TABLE it_tab " Remove 
                                "Into Corresponding Fields of table
WHERE PLNUM BETWEEN '0000000001' AND '9999999999' " By this you
                             " are implementing the Primary Key
 AND matnr IN s_matnr
AND pwwrk = p_pwwrk
AND psttr IN s_psttr
AND auffx = 'X'  " You can omit these two
AND paart = 'LA' .
If you omit the above two then
delete it_tab where auffx NE 'X' and
dekete it_tab where paart NE 'LA'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 16, 2010 9:10 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 06:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707187#M1453256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: I'm facing performance issue while accessing the PLAF Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707188#M1453257</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Just implement its primary Key&lt;/P&gt;&lt;P&gt;WHERE PLNUM BETWEEN '0000000001' AND '9999999999' " By this you are implementing the Primary Key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement has nothing to do with performance, because system is not able to use primary key or uses every row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica, your query uses secondary index created by SAP:&lt;/P&gt;&lt;P&gt;1	(Material, plant) which uses fields MANDT MATNR and PLWRK.&lt;/P&gt;&lt;P&gt;but it is not suitable in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can consider adding new one, which would containt all fields: MANDT, MATNR, PWWRK, PSTTR AUFFX PAART&lt;/P&gt;&lt;P&gt;or - but it depends on number of rows meeting and not meeting (auffx = 'X' AND paart = 'LA' ) condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could speed the performance, if you would create secondary index based on fields MANDT, MATNR, PWWRK, PSTTR&lt;/P&gt;&lt;P&gt;and do like Ramchander suggested: remove AUFFX and PAART from index and where section, and remove these unwanted rows&lt;/P&gt;&lt;P&gt;after the query using DELETE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Przemysław&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check how many rows in production system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 09:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707188#M1453257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T09:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: I'm facing performance issue while accessing the PLAF Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707189#M1453258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please see &lt;SPAN __jive_macro_name="thread" id="1283414"&gt;&lt;/SPAN&gt; before posting. Nobody can give you a good answer until you do some research to find out where the problem lays - post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 13:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-facing-performance-issue-while-accessing-the-plaf-table/m-p/6707189#M1453258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T13:11:59Z</dc:date>
    </item>
  </channel>
</rss>

