<?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: select statemant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737111#M320558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;You can also try making use of OPEN CURSOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It goes like this.&lt;/P&gt;&lt;P&gt;  DATA  c_tab  TYPE cursor.&lt;/P&gt;&lt;P&gt;    OPEN CURSOR c_tab FOR&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;your select statement&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR c_tab&lt;/P&gt;&lt;P&gt;            APPENDING CORRESPONDING FIELDS OF TABLE i_tab&lt;/P&gt;&lt;P&gt;            PACKAGE SIZE 100.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        CLOSE CURSOR c_tab. EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any doubts let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 11:48:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-08T11:48:49Z</dc:date>
    <item>
      <title>select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737102#M320549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;below code is taking more time to access and moves to short dump&lt;/P&gt;&lt;P&gt;is there any way we can reduce exection time of this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT mseg&lt;SUB&gt;mblnr mseg&lt;/SUB&gt;mjahr mseg&lt;SUB&gt;zeile mseg&lt;/SUB&gt;ebeln mseg&lt;SUB&gt;ebelp mseg&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;              mseg&lt;SUB&gt;wempf mseg&lt;/SUB&gt;menge mseg&lt;SUB&gt;meins mseg&lt;/SUB&gt;erfmg mseg&lt;SUB&gt;erfme mseg&lt;/SUB&gt;dmbtr mkpf~xblnr&lt;/P&gt;&lt;P&gt;              mseg&lt;SUB&gt;matnr mkpf&lt;/SUB&gt;budat mseg&lt;SUB&gt;smbln mseg&lt;/SUB&gt;smblp mseg&lt;SUB&gt;bwart mseg&lt;/SUB&gt;lifnr mseg~umwrk&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE t_gm_f&lt;/P&gt;&lt;P&gt;         FROM mseg INNER JOIN mkpf&lt;/P&gt;&lt;P&gt;          ON  mseg&lt;SUB&gt;mblnr EQ mkpf&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;          AND mseg&lt;SUB&gt;mjahr EQ mkpf&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;          FOR ALL entries IN t_gm_r&lt;/P&gt;&lt;P&gt;          WHERE mseg~ebeln EQ t_gm_r-ebeln&lt;/P&gt;&lt;P&gt;            AND mseg~ebelp EQ t_gm_r-ebelp&lt;/P&gt;&lt;P&gt;            AND mseg~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;            AND mkpf~cpudt IN s_cpudt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          AND mseg~bwart EQ '671'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;             AND mseg~bwart IN ('671','672','101','102','301','302')&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          AND mseg~charg = 'S'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          AND mseg~kzzug EQ 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;             AND mseg~xauto NE 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          AND mseg~smbln = ' '. " Doc not reversed&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          ORDER BY mseg~mblnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737102#M320549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737103#M320550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as such MSEG &amp;amp; MKPF are hughe tables...Try to split the select statement...First write select statement on MSEG....then write select statement on MKPF using for all entries...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737103#M320550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737104#M320551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;    Check if t_gm_r[] is not initial before your select statement otherwise it would fetch invalid data even it is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Su&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737104#M320551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737105#M320552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT mkpf~xblnr&lt;/P&gt;&lt;P&gt;       mkpf~budat&lt;/P&gt;&lt;P&gt;       mseg~mblnr &lt;/P&gt;&lt;P&gt;       mseg~mjahr &lt;/P&gt;&lt;P&gt;       mseg~zeile &lt;/P&gt;&lt;P&gt;       mseg~ebeln &lt;/P&gt;&lt;P&gt;       mseg~ebelp &lt;/P&gt;&lt;P&gt;       mseg~werks&lt;/P&gt;&lt;P&gt;       mseg~wempf &lt;/P&gt;&lt;P&gt;       mseg~menge &lt;/P&gt;&lt;P&gt;       mseg~meins &lt;/P&gt;&lt;P&gt;       mseg~erfmg &lt;/P&gt;&lt;P&gt;       mseg~erfme &lt;/P&gt;&lt;P&gt;       mseg~dmbtr &lt;/P&gt;&lt;P&gt;       mseg~matnr &lt;/P&gt;&lt;P&gt;       mseg~smbln &lt;/P&gt;&lt;P&gt;       mseg~smblp &lt;/P&gt;&lt;P&gt;       mseg~bwart &lt;/P&gt;&lt;P&gt;       mseg~lifnr &lt;/P&gt;&lt;P&gt;       mseg~umwrk&lt;/P&gt;&lt;P&gt;       INTO TABLE t_gm_f&lt;/P&gt;&lt;P&gt;       FROM mseg &lt;/P&gt;&lt;P&gt;       INNER JOIN mkpf ON mseg&lt;SUB&gt;mblnr EQ mkpf&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;                      AND mseg&lt;SUB&gt;mjahr EQ mkpf&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;      FOR ALL entries IN t_gm_r&lt;/P&gt;&lt;P&gt;      WHERE  mkpf~cpudt IN s_cpudt&lt;/P&gt;&lt;P&gt;      AND  mseg~ebeln EQ t_gm_r-ebeln&lt;/P&gt;&lt;P&gt;      AND mseg~ebelp EQ t_gm_r-ebelp&lt;/P&gt;&lt;P&gt;      AND mseg~matnr IN s_matnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND mseg~bwart EQ '671'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      AND mseg~bwart IN ('671','672','101','102','301','302') " try to create a range and then pass thse values in a range&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND mseg~charg = 'S'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND mseg~kzzug EQ 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      AND mseg~xauto NE 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND mseg~smbln = ' '. " Doc not reversed&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ORDER BY mseg~mblnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create the table with the same sequence as in data base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that doesnt work u have to write for all entries for MKPF and then agn for all entries for mseg two seperate statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737105#M320552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737106#M320553</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;1. avoid INTO CORRESSPONDING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.fetch only the records u required in the ITAB  t_gm_r&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737106#M320553</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-01T13:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737107#M320554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF you are trying to fetch material documents pertaining to a purchase order I strongly suggest you to use EKBE instead of MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EKBE has EBELN and  EBELP as first two fields in the key fields list hence the performance will be much much better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all you need to do is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. Fetch MBLNR, MJAHR, from EKBE by passing EBELN and EBELP.&lt;/P&gt;&lt;P&gt;b. pass this to MSEG and get all the other details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737107#M320554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737108#M320555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. INTO CORRESPONDING FIELDS OF TABLE t_gm_f,-- define an internal table with the same structure as the fields coming from mseg,mkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; later loop at t_gm_f.  read from interaml table in which you read and&lt;/P&gt;&lt;P&gt;  modify t_gm_f,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. define a rage for mseg~bwart &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append all these values ('671','672','101','102','301','302')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and put mseg~bwart IN r_bwart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737108#M320555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737109#M320556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is not much you can change here but just check on the below suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If your t_gm_r internal table has data for matnr etc try to reduce it before you pass it to the select.&lt;/P&gt;&lt;P&gt;2. Do the select only on mseg data first and later do a select from mkpf using for all enteries...basically taking out inner join.&lt;/P&gt;&lt;P&gt;3. Last is to fetch SELECT up to 1000 rows and do your processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737109#M320556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737110#M320557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two things&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only index you are using is mseg-matnr, so make sure s_matnr is not initial before doing the select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no index on mkpf-cpudt, but there is one on mkpf-budat, so it might help if you selected on that instead. But also make sure that the new select option is not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 14:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737110#M320557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737111#M320558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;You can also try making use of OPEN CURSOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It goes like this.&lt;/P&gt;&lt;P&gt;  DATA  c_tab  TYPE cursor.&lt;/P&gt;&lt;P&gt;    OPEN CURSOR c_tab FOR&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;your select statement&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR c_tab&lt;/P&gt;&lt;P&gt;            APPENDING CORRESPONDING FIELDS OF TABLE i_tab&lt;/P&gt;&lt;P&gt;            PACKAGE SIZE 100.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        CLOSE CURSOR c_tab. EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any doubts let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737111#M320558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737112#M320559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my opinion you should do following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Avoid using INTO CORRESPONDING by creating an internal table with fields you intend to select&lt;/P&gt;&lt;P&gt;2. Ensure s_matnr, s_cpudt are not initial OR you can remove these from where clause and delete the entries which are not equal to s_cpudt and s_matnr&lt;/P&gt;&lt;P&gt;3. Use indexes if available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 16:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737112#M320559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737113#M320560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello raj, &lt;/P&gt;&lt;P&gt; Well MKPF and MSEG are very huge tables. Moreover using joins effectively reduces the performance heavily, cozz it compares all entries of both tables and then process. &lt;/P&gt;&lt;P&gt; Instead you can fetch data from one table according to your conditions in where clause and then fetch data from another table using "for all entries clause" specifying the equality condition in where clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further performace gain.. You can use indexes from both tables and add them into your where condition. &lt;/P&gt;&lt;P&gt;Try to reduce loops. Wherever you are using loops specify loop at itab where.....&lt;/P&gt;&lt;P&gt;You can use read table itab with key... too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to minimize database access. i.e try to minimize multiple select statements,. &lt;/P&gt;&lt;P&gt;Try to put maximum conditions in where clause, so that database access is fast.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2006 04:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737113#M320560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-10T04:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737114#M320561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;check whether the internal table you are referring to is not initial.&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 09:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737114#M320561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T09:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: select statemant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737115#M320562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In connection with SELECT ... FOR ALL ENTRIES the following problems occur:&lt;/P&gt;&lt;P&gt;1)You cannot have an empty internal driver table. If the driver table is empty, selection is not limited. In particular, WHERE clause conditions are not evaluated if they do not refer to the internal driver table. &lt;/P&gt;&lt;P&gt;2)Duplicate table entries should be deleted from the internal table before executing the SELECT... FOR ALL ENTRIES. If they are not deleted, identical data is read unnecessarily from the database.&lt;/P&gt;&lt;P&gt;3)The parameter rsdb/max_blocking_factor must be implemented according to SAP's database-specific recommendations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji Reddy G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Reward if answers are helpful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 09:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statemant/m-p/1737115#M320562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-27T09:37:04Z</dc:date>
    </item>
  </channel>
</rss>

