<?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: Selection Logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373005#M183278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can select on table and in selection you can say &lt;/P&gt;&lt;P&gt;Select from table where LAUFI  like '%R%' and SGTXT  in your_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e,g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from regup INTO CORRESPONDING FIELDS OF wa where LAUFI like '%R%'  .&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;P.S award the points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Good luck &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib Khan&lt;/P&gt;&lt;P&gt;"Some are wise and some are otherwise"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jun 2006 15:03:50 GMT</pubDate>
    <dc:creator>former_member181966</dc:creator>
    <dc:date>2006-06-07T15:03:50Z</dc:date>
    <item>
      <title>Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372996#M183269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this particular requirement I need to select the values from the REGUP table with SGTXT which I have values for that and LAUFI which ends with R.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best possible way to the selection which gives good performance as this is an interface which is pefromance intensive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Points will be awarded for the right help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372996#M183269</guid>
      <dc:creator>varun_maharshi</dc:creator>
      <dc:date>2006-06-07T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372997#M183270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from regup&lt;/P&gt;&lt;P&gt;into table it_regup&lt;/P&gt;&lt;P&gt;where laufi like '%R'&lt;/P&gt;&lt;P&gt;  and sgtxt in s_sgtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372997#M183270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T14:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372998#M183271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does that give performance. This table contains a large number of records as this is a utility company&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372998#M183271</guid>
      <dc:creator>varun_maharshi</dc:creator>
      <dc:date>2006-06-07T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372999#M183272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as this statement is not inside a loop statement or another select-endselect statement,&lt;/P&gt;&lt;P&gt;It doesn't hurt performance much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1372999#M183272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T14:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373000#M183273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is that I am not selecting REGUP directly from values of the Selection screen. I need to select the records with help of the key from values of BSAK table which is also huge amount of data. So does this statement can hold that much amount of data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373000#M183273</guid>
      <dc:creator>varun_maharshi</dc:creator>
      <dc:date>2006-06-07T14:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373001#M183274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if performance will be better or not.  Give it a try using a range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


 report zrich_0001.

 data: it_regup type table of regup with header line.

 select-options s_sgtxt for it_regup-sgtxt.

 ranges: r_laufi for it_regup-laufi.

 clear r_laufi.
 r_laufi-sign = 'I'.
 r_laufi-option = 'CP'.
 r_laufi-low    = '*R'.
 append r_laufi.

 select * from regup into table it_regup
             where laufi in r_laufi
              and sgtxt in s_sgtxt.


 check sy-subrc  = 0.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373001#M183274</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-06-07T14:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373002#M183275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use like option in where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;where laufi like '%R'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 14:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373002#M183275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373003#M183276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;  Practically the limit set to the internal table capacity would be sufficiently large .&lt;/P&gt;&lt;P&gt;But then, we cannot judge what is the performance of a select statement without seeing it in the bigger picture.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 15:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373003#M183276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373004#M183277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now we dont have that much amount of data to test that. Thats why I am very much concerned about this select. Does this thing will help by creating an index on sgtxt and selecting the values with that and then weeding out the values which do not have LAUFI with R at end. Which will be better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 15:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373004#M183277</guid>
      <dc:creator>varun_maharshi</dc:creator>
      <dc:date>2006-06-07T15:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373005#M183278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can select on table and in selection you can say &lt;/P&gt;&lt;P&gt;Select from table where LAUFI  like '%R%' and SGTXT  in your_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e,g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from regup INTO CORRESPONDING FIELDS OF wa where LAUFI like '%R%'  .&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;P.S award the points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Good luck &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib Khan&lt;/P&gt;&lt;P&gt;"Some are wise and some are otherwise"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 15:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373005#M183278</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-06-07T15:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373006#M183279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the option of weeding out the entries without an R at the end would be a better option , as this operation would not be at the database level(Which consumes more time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from regup&lt;/P&gt;&lt;P&gt;into t_regup&lt;/P&gt;&lt;P&gt;where &amp;lt;where cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab where laufi cp '*R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 15:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-logic/m-p/1373006#M183279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T15:05:17Z</dc:date>
    </item>
  </channel>
</rss>

