<?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/5696887#M1294250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. first use all available key fields in where condition in proper order and then non-key fields.&lt;/P&gt;&lt;P&gt;2. crerate index and use it in where condition. Index improves performance .&lt;/P&gt;&lt;P&gt;3. Try to avoid * in select stmt if possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope these will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2009 10:03:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-25T10:03:18Z</dc:date>
    <item>
      <title>Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696881#M1294244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moved to correct forum.  Please use a meaningful subject in future&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one issue with select query.getting the data from rbkp table using for all entries statement.&lt;/P&gt;&lt;P&gt;SELECT lifnr  FROM lfb1 INTO TABLE lt_lifnr&lt;/P&gt;&lt;P&gt;   WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;     AND lifnr IN s_lifnr.&lt;/P&gt;&lt;P&gt;IF NOT lt_lifnr[] IS INITIAL.&lt;/P&gt;&lt;P&gt;        SELECT * FROM rbkp INTO TABLE z_rbkp&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN lt_lifnr&lt;/P&gt;&lt;P&gt;               WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;               AND   gjahr IN s_gjahr&lt;/P&gt;&lt;P&gt;               AND   blart IN p_blart&lt;/P&gt;&lt;P&gt;               AND   lifnr = lt_lifnr-lifnr&lt;/P&gt;&lt;P&gt;               AND   xblnr IN s_xblnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;executed this logic.but it is taking much time and giving dump that it exceeded the maximum time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body please advise me to get the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on May 25, 2009 1:29 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;Moderator message - 
Total Posts:  161  
Total Questions:  76 (75 unresolved)    

If you assign po(i)nts and close your old posts, that will encourage people to respond to your new questions.
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 25, 2009 9:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696881#M1294244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696882#M1294245</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;When you are writing the select query for , For all entries try to avoid SELECT * FROM RBKP...&lt;/P&gt;&lt;P&gt;instead of that SELECT FLD1 FLD2 from RBKP like this you can do it. So it will reduce the fetch time in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696882#M1294245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696883#M1294246</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;we need total RBKP data, that is the reason, we choosed select *.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696883#M1294246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696884#M1294247</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;Please try with below select. secondary index is there on xbelnr,lifnr,bukrs.So I changed the order in where condition.Please select the required  fields instead of * . Please try to provide key field belnr in where condition if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT lifnr FROM lfb1 INTO TABLE lt_lifnr&lt;/P&gt;&lt;P&gt;WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND lifnr IN s_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF NOT lt_lifnr[] IS INITIAL.
  SELECT * FROM rbkp INTO TABLE z_rbkp
  FOR ALL ENTRIES IN lt_lifnr
         WHERE xblnr IN s_xblnr
         AND lifnr = lt_lifnr-lifnr
        AND bukrs = *lt_lifnr-bukrs*
        AND gjahr IN s_gjahr
        AND blart IN p_blart.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Suma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696884#M1294247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696885#M1294248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand the first select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
         SELECT * FROM rbkp INTO TABLE z_rbkp
         where lifnr in s_lifnt
         WHERE bukrs IN s_bukrs
                AND   gjahr IN s_gjahr
                AND   blart IN p_blart
                AND   lifnr = lt_lifnr-lifnr
                AND   xblnr IN s_xblnr.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 10:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696885#M1294248</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-05-25T10:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696886#M1294249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well i dont think it will help much but you may give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to fetch RBKP data matching your selection criterias, without for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try to check your for all entries criteria with internal table management (loop [condition] endloop).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 10:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696886#M1294249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696887#M1294250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. first use all available key fields in where condition in proper order and then non-key fields.&lt;/P&gt;&lt;P&gt;2. crerate index and use it in where condition. Index improves performance .&lt;/P&gt;&lt;P&gt;3. Try to avoid * in select stmt if possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope these will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 10:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696887#M1294250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T10:03: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/5696888#M1294251</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;SELECT lifnr bukrs FROM lfb1 INTO TABLE lt_lifnr
        WHERE bukrs IN s_bukrs
          AND lifnr IN s_lifnr.

IF NOT lt_lifnr[] IS INITIAL.
  SELECT BELNR GJAHR BLART BLDAT BUDAT
         USNAM TCODE CPUDT CPUTM VGART " Select what all required Fields
         FROM rbkp INTO TABLE it_rbkp 
      FOR ALL ENTRIES IN lt_lifnr
      WHERE bukrs IN lt_lifnr-bukrs " make it like this
        AND gjahr IN s_gjahr 
        AND blart IN p_blart   " is p_blart is select-option or parameter
        AND lifnr = lt_lifnr-lifnr
        AND xblnr IN s_xblnr
        AND RBSTAT NE '2'.  " Can be control by field too
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suneel G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 10:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696888#M1294251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696889#M1294252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is p_blart parameter or select-option. You are using In operator in your select query for comparing it.&lt;/P&gt;&lt;P&gt;Also what is the type for yor it_lifnr internal table??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 10:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696889#M1294252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T10:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696890#M1294253</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;&lt;/P&gt;&lt;P&gt;In the where clause the fields used should be in the order they are in the table rbkp and also use SORT and DELETE DUPLICATE as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;P&gt;IF NOT lt_lifnr[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT lt_lifnr BY lifnr&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES COMPARING LIFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM rbkp INTO TABLE z_rbkp&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN lt_lifnr&lt;/P&gt;&lt;P&gt;where  gjahr in  s_gjahr  AND&lt;/P&gt;&lt;P&gt;          blart IN p_blart  AND&lt;/P&gt;&lt;P&gt;           xblnr IN s_xblnr AND&lt;/P&gt;&lt;P&gt;           bukrs IN s_bukrs AND&lt;/P&gt;&lt;P&gt;           lifnr = lt_lifnr-lifnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Suraj S Nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 10:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696890#M1294253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T10:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696891#M1294254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moved to correct forum.  Please use a meaningful subject in future&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 11:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696891#M1294254</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-05-25T11:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696892#M1294255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;"Check s_bukrs first if you want that it should have some value on sel-screen.

IF NOT s_bukrs IS INITIAL.

"-----Include BUKRS along with LIFNR in below SELECT-----*

    SELECT bukrs lifnr FROM lfb1 INTO TABLE lt_lifnr
         WHERE bukrs IN s_bukrs
              AND lifnr IN s_lifnr.

ENDIF.

IF NOT lt_lifnr[] IS INITIAL.
  SORT lt_lifnr BY bukrs lifnr.	"All LIFNR of one BUKRS first and then LIFNR of next  BUKRS

"Use DELETE ADJACENT... if there are duplicate records for BUKRS/LIFNR Combination in lt_lifnr.

SELECT * FROM rbkp INTO TABLE z_rbkp
   FOR ALL ENTRIES IN lt_lifnr
   WHERE bukrs = lt_lifnr-bukrs	"Change s_bukrs (and hence the "IN" operator to "=")
      AND gjahr IN s_gjahr	"Check value of s_gjahr-low there should be 1 entry on sel-screen
      AND blart IN p_blart    "Check if it is parameter or select-options change "IN" to "=" appropriately
      AND lifnr = lt_lifnr-lifnr
      AND xblnr IN s_xblnr.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"If above SELECT statement still takes time then make use of PACKAGE SIZE on First SELECT on table lfb1 (if the number of records from lfb1 are too high) and fetch data from rbkp based on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF NOT s_bukrs IS INITIAL.
  SELECT bukrs lifnr FROM lfb1 INTO TABLE lt_lifnr PACKAGE SIZE 50
         WHERE bukrs IN s_bukrs
              AND lifnr IN s_lifnr.

    IF NOT lt_lifnr IS INITIAL.
      SELECT * FROM rbkp INTO TABLE z_rbkp
        FOR ALL ENTRIES IN lt_lifnr
        WHERE bukrs = lt_lifnr-bukrs	"Change s_bukrs (and hence the "IN" operator to "=")
        AND gjahr IN s_gjahr	"Check value of s_gjahr-low there should be 1 entry on sel-screen
        AND blart IN p_blart    "Check if it is parameter or select-options change "IN" to "=" appropriately
        AND lifnr = lt_lifnr-lifnr
        AND xblnr IN s_xblnr.
    ENDIF.

"MOVE z_rbkp into another internal table
    z_rbkp1[] = z_rbkp[].

"Reinitialize both lt_lifnr and z_rbkp Internal Tables for fetching another set of data.
    REFRESH: lt_lifnr, z_rbkp.
  ENDSELECT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manuj Bhardwaj on May 26, 2009 10:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 12:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696892#M1294255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T12:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696893#M1294256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PACKAGE SIZE can help reduce memory usage, but it will not speed up a SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 21:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696893#M1294256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T21:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696894#M1294257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abap_Inter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  When you have many clauses as yours:&lt;/P&gt;&lt;P&gt;AND lifnr IN s_lifnr.                   &amp;lt;- s_lifnr have any data in it?&lt;/P&gt;&lt;P&gt;IF NOT lt_lifnr[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT * FROM rbkp INTO TABLE z_rbkp&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN lt_lifnr&lt;/P&gt;&lt;P&gt;WHERE bukrs IN s_bukrs         &amp;lt;- s_bukrs contains data?&lt;/P&gt;&lt;P&gt;AND gjahr IN s_gjahr                &amp;lt;- etc..&lt;/P&gt;&lt;P&gt;AND blart IN p_blart                  &amp;lt;- etc...&lt;/P&gt;&lt;P&gt;AND lifnr = lt_lifnr-lifnr&lt;/P&gt;&lt;P&gt;AND xblnr IN s_xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    you can use Dynamic Select (and check if the For All Entries table to see if it has any rows first off).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4736331"&gt;&lt;/A&gt; for a start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Dan Perecky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 21:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696894#M1294257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T21:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696895#M1294258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 07:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696895#M1294258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T07:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696896#M1294259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 07:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5696896#M1294259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T07:36:40Z</dc:date>
    </item>
  </channel>
</rss>

