<?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: Trouble in data selection logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883877#M370977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure that you give the user input through a select-option only and not a parameter. If you have select options then the select statement will take care of all the possibilities you have mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Guru&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jan 2007 22:12:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-12T22:12:13Z</dc:date>
    <item>
      <title>Trouble in data selection logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883875#M370975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am hitting 4 tables for selecting some data using inner join. There are three user &lt;/P&gt;&lt;P&gt;input fields which if filled, has to take part in data selection. These three input fields are independent of each other.&lt;/P&gt;&lt;P&gt;so while writing select query, how can i take care of all the possiblilities(none of them filled -- every one of them filled ) in the &lt;/P&gt;&lt;P&gt;most efficient way..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-pranati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 22:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883875#M370975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T22:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble in data selection logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883876#M370976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you want to use SELECT-OPTIONS rather than PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do have to be a bit careful with SELECT-OPTIONS though. If the SELECT-OPTION is a key field and is left blank by the user, then the SELECT may not be able to make efficient use of an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 22:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883876#M370976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T22:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble in data selection logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883877#M370977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure that you give the user input through a select-option only and not a parameter. If you have select options then the select statement will take care of all the possibilities you have mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Guru&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 22:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883877#M370977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T22:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble in data selection logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883878#M370978</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;IN the select-options you can add NO-EXTENSION NO INTERVALS..Which can be used a parameter..And you have to use IN in the select statement to filter the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT-OPTIONS: so_matnr FOR marc-matnr NO-EXTENSION NO INTERVALS.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_werks FOR marc-werks NO-EXTENSION NO INTERVALS.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_marc TYPE STANDARD TABLE OF marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the first 100 rows.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT mandt matnr werks UP TO 100 ROWS&lt;/P&gt;&lt;P&gt;         INTO TABLE t_marc&lt;/P&gt;&lt;P&gt;         FROM marc&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;         WHERE matnr IN so_matnr&lt;/P&gt;&lt;P&gt;         AND   werks IN so_werks&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    WRITE: / 'RECORD COUNT - ', sy-dbcnt.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE: / 'NO RECORD FOUND'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 22:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883878#M370978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T22:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble in data selection logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883879#M370979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;Thank You .. That has solved my problem.. !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Pranati.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 23:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trouble-in-data-selection-logic/m-p/1883879#M370979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T23:33:38Z</dc:date>
    </item>
  </channel>
</rss>

