<?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 criteria without using SELECTION SCREENs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113890#M442238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the select-options/selction screen to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2007 16:14:14 GMT</pubDate>
    <dc:creator>former_member287500</dc:creator>
    <dc:date>2007-04-10T16:14:14Z</dc:date>
    <item>
      <title>Select criteria without using SELECTION SCREENs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113886#M442234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report with a single screen, 4 fields for search criteria and 2 alv grids for the output.&lt;/P&gt;&lt;P&gt;I search db tables with a select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define a select statement that searches for 3 out of 4 criteria, if the fourth input field isn't filled it?&lt;/P&gt;&lt;P&gt;Because right now the select statement doesn't return any data if I leave one parameter blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how can I provide the possibility to define more than one search criteria of one kind withour adding several input fields on the screen?&lt;/P&gt;&lt;P&gt;For example: Data created on 20070101 and 20070105.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that most of this can be done with selection screens, but is there a possibility to do this without a selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 22:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113886#M442234</guid>
      <dc:creator>former_member287500</dc:creator>
      <dc:date>2007-04-09T22:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select criteria without using SELECTION SCREENs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113887#M442235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use SELECT-OPTIONS on your selection screen.  This allows the user to enter all kinds of possiblities, including leaving something blank.  Then in your SELECT statement, you use the IN operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options: s_datum for sy-datum.

select * into table itab
           from ztable
                  where datum IN s_datum.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you truly do not want to use a Selection-screen, you could hard code values in the SELECT statement or create a range using the RANGE statement.  The RANGE statement works exactly like SELECT-OPTION statement but without the selection-screen.&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>Mon, 09 Apr 2007 22:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113887#M442235</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T22:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select criteria without using SELECTION SCREENs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113888#M442236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to use SELECT-OPTIONS for doing the same.&lt;/P&gt;&lt;P&gt;Please Follow the sample code given by Rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 22:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113888#M442236</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2007-04-09T22:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select criteria without using SELECTION SCREENs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113889#M442237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have defined parameter then you should fill the value ...&lt;/P&gt;&lt;P&gt;if you dont want to fill it make it select-option and if you restrict user to give only one value then use&lt;/P&gt;&lt;P&gt;tables : mara.&lt;/P&gt;&lt;P&gt;select-options : s_matnr for mara-matnr no-extension no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will show only one input field now write your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * form mara where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 03:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113889#M442237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T03:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select criteria without using SELECTION SCREENs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113890#M442238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the select-options/selction screen to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 16:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-criteria-without-using-selection-screens/m-p/2113890#M442238</guid>
      <dc:creator>former_member287500</dc:creator>
      <dc:date>2007-04-10T16:14:14Z</dc:date>
    </item>
  </channel>
</rss>

