<?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 need tip for performace in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749835#M639464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow&lt;/P&gt;&lt;P&gt;i wont option for this select for better perfomace (i haerd about up to 1 row but if i use it here i get the same results?)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE pspnr pbukr&lt;/P&gt;&lt;P&gt;  FROM prps&lt;/P&gt;&lt;P&gt;  INTO (project_type ,l_pbukr)&lt;/P&gt;&lt;P&gt;  WHERE pspnr = ps_psp_pnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE waers&lt;/P&gt;&lt;P&gt;  FROM t001&lt;/P&gt;&lt;P&gt;  INTO l_waers&lt;/P&gt;&lt;P&gt;  WHERE bukrs = l_pbukr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2007 14:00:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-29T14:00:17Z</dc:date>
    <item>
      <title>need tip for performace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749835#M639464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow&lt;/P&gt;&lt;P&gt;i wont option for this select for better perfomace (i haerd about up to 1 row but if i use it here i get the same results?)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE pspnr pbukr&lt;/P&gt;&lt;P&gt;  FROM prps&lt;/P&gt;&lt;P&gt;  INTO (project_type ,l_pbukr)&lt;/P&gt;&lt;P&gt;  WHERE pspnr = ps_psp_pnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE waers&lt;/P&gt;&lt;P&gt;  FROM t001&lt;/P&gt;&lt;P&gt;  INTO l_waers&lt;/P&gt;&lt;P&gt;  WHERE bukrs = l_pbukr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 14:00:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749835#M639464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: need tip for performace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749836#M639465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use select up to 1 row if you do not have key field in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here PRPS Table contains PSPNR is key field ,so you can use select single&amp;lt;/b&amp;gt;SELECT SINGLE pspnr pbukr   &lt;/P&gt;&lt;P&gt;FROM prps&lt;/P&gt;&lt;P&gt;INTO (project_type ,l_pbukr)&lt;/P&gt;&lt;P&gt;WHERE pspnr = ps_psp_pnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here BUKRS Is the key field ,so you can use Select single&amp;lt;/b&amp;gt;SELECT SINGLE waers&lt;/P&gt;&lt;P&gt;FROM t001&lt;/P&gt;&lt;P&gt;INTO l_waers&lt;/P&gt;&lt;P&gt;WHERE bukrs = l_pbukr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 14:05:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749836#M639465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T14:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: need tip for performace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749837#M639466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the 2 select statements look perfectly ok ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure that they are not inside a loop ..endloop statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 14:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749837#M639466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: need tip for performace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749838#M639467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Select Upto 1 Rows and the select single will not take that much of differecne in execution. but you need to maintain all the key fields in the where condition then the select will run perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT pspnr pbukr&lt;/P&gt;&lt;P&gt;FROM prps&lt;/P&gt;&lt;P&gt;UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;INTO (project_type ,l_pbukr)&lt;/P&gt;&lt;P&gt;WHERE pspnr = ps_psp_pnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT waers&lt;/P&gt;&lt;P&gt;FROM t001&lt;/P&gt;&lt;P&gt;UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;INTO l_waers&lt;/P&gt;&lt;P&gt;WHERE bukrs = l_pbukr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 14:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749838#M639467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: need tip for performace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749839#M639468</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;As you all know, it is important to use as many key fields as possible in WHERE clauses of SELECT &lt;/P&gt;&lt;P&gt;statements. Sometimes you are not sure about the value of some key&lt;/P&gt;&lt;P&gt;fields. They seem to be empty (Initial value) but you are afraid to use this in your ABAP coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the option GE (greater equal) in your coding can improve your performance considerably &lt;/P&gt;&lt;P&gt;without the risk of table lines not being selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZZBM_SELECT_1 .&lt;/P&gt;&lt;P&gt;TABLES: S001.&lt;/P&gt;&lt;P&gt;CONSTANTS: SSOUR_INI  LIKE S001-SSOUR VALUE   IS INITIAL,&lt;/P&gt;&lt;P&gt;VRSIO_INI  LIKE S001-VRSIO VALUE   IS INITIAL,&lt;/P&gt;&lt;P&gt;SPMON_INI  LIKE S001-SPMON VALUE   IS INITIAL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPTAG_INI  LIKE S001-SPTAG VALUE   IS INITIAL,&lt;/P&gt;&lt;P&gt;SPWOC_INI  LIKE S001-SPWOC VALUE   IS INITIAL,&lt;/P&gt;&lt;P&gt;SPBUP_INI  LIKE S001-SPBUP VALUE   IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TA_S001 TYPE STANDARD TABLE OF S001.&lt;/P&gt;&lt;P&gt;DATA: WA_S001 TYPE S001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;SO_SPTAG   FOR S001-SPTAG OBLIGATORY,&lt;/P&gt;&lt;P&gt;SO_KUNNR   FOR S001-KUNNR OBLIGATORY,&lt;/P&gt;&lt;P&gt;SO_VKORG   FOR S001-VKORG OBLIGATORY,&lt;/P&gt;&lt;P&gt;SO_VTWEG   FOR S001-VTWEG OBLIGATORY,&lt;/P&gt;&lt;P&gt;SO_SPART   FOR S001-SPART OBLIGATORY,&lt;/P&gt;&lt;P&gt;SO_MATNR   FOR S001-MATNR OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT        * FROM  S001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO TABLE TA_S001&lt;/P&gt;&lt;P&gt;WHERE  SSOUR  GE SSOUR_INI     "Greater Equal initial value&lt;/P&gt;&lt;P&gt;AND    VRSIO  GE VRSIO_INI     "   idem&lt;/P&gt;&lt;P&gt;AND    SPMON  GE SPMON_INI     "   idem&lt;/P&gt;&lt;P&gt;AND    SPTAG  IN SO_SPTAG&lt;/P&gt;&lt;P&gt;AND    SPWOC  GE SPWOC_INI     "   idem&lt;/P&gt;&lt;P&gt;AND    SPBUP  GE SPBUP_INI     "   idem&lt;/P&gt;&lt;P&gt;AND    KUNNR  IN SO_KUNNR&lt;/P&gt;&lt;P&gt;AND    VKORG  IN SO_VKORG&lt;/P&gt;&lt;P&gt;AND    VTWEG  IN SO_VTWEG&lt;/P&gt;&lt;P&gt;AND    SPART  IN SO_SPART&lt;/P&gt;&lt;P&gt;AND    MATNR  IN SO_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 14:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749839#M639468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: need tip for performace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749840#M639469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure that select statements are not in between loop endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 09:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-tip-for-performace/m-p/2749840#M639469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T09:30:17Z</dc:date>
    </item>
  </channel>
</rss>

