<?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 parameters vs select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366208#M523943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when select-options can be made to work like parameters statement by addition of no-extension , no-intervals .Then why not parameters became an obsolete statement?&lt;/P&gt;&lt;P&gt;what is associated with parameters which is keeping it in practise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 19:45:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-08T19:45:27Z</dc:date>
    <item>
      <title>parameters vs select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366208#M523943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when select-options can be made to work like parameters statement by addition of no-extension , no-intervals .Then why not parameters became an obsolete statement?&lt;/P&gt;&lt;P&gt;what is associated with parameters which is keeping it in practise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 19:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366208#M523943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T19:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: parameters vs select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366209#M523944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have simple example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why we go for selectoptions no interval no extension than parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First example on Parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters p_matnr like mara-matnr. " Here you will able to enter only one value &lt;/P&gt;&lt;P&gt;&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 mara into table i_mara &lt;/P&gt;&lt;P&gt;                                where matnr = p_matnr.  " Suppose user not entered material number &lt;/P&gt;&lt;P&gt;then you get sy-subrc eq  4. " here user needs data when he does not enter the material number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second example on select-options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options  s_matnr for mara-matnr no-intervals no extensions. " Here you will able to enter only one value &lt;/P&gt;&lt;P&gt;&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 mara into table i_mara &lt;/P&gt;&lt;P&gt;                                where matnr in s_matnr.  " Suppose user not entered material number &lt;/P&gt;&lt;P&gt;then you get sy-subrc eq  0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because here we have in operator ,it gets all the data ( based on ur requirement use options )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 20:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366209#M523944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T20:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: parameters vs select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366210#M523945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well SELECT-OPTIONS and PARAMETERS work differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select from a data base where some field equals a parameter and the parameter is empty, the results will be rows where the field is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select from a data base where some field is in the SELECT-OPTION and the SELECT-OPTION is empty, then all rows will be returned.&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, 08 Jun 2007 20:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366210#M523945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T20:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: parameters vs select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366211#M523946</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;&lt;/P&gt;&lt;P&gt;If you want to enable the user to enter values for single fields on the selection screen, you must define specific variables (parameters) in the declaration part using the PARAMETERS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the PARAMETERS statement for both standard and user-defined selection screens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic form of the PARAMETERS statement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS &amp;lt;p&amp;gt;[(&amp;lt;length&amp;gt;)] [TYPE &amp;lt;type&amp;gt;|LIKE &amp;lt;obj&amp;gt;] [DECIMALS &amp;lt;d&amp;gt;]&lt;/P&gt;&lt;P&gt;PARAMETERS: WORD(10) TYPE C,&lt;/P&gt;&lt;P&gt;DATE TYPE D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To assign a default value to a parameter, you use the following syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS &amp;lt;p&amp;gt; ...... DEFAULT &amp;lt;f&amp;gt; ...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the input field of a parameter as a checkbox, you use the following syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS &amp;lt;p&amp;gt; ...... AS CHECKBOX ...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the input field of a parameter as a radio button, you use the following syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS &amp;lt;p&amp;gt; ...... RADIOBUTTON GROUP &amp;lt;radi&amp;gt;...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To modify the appearance of an input field on the selection screen, you must assign the parameter to a modification group as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS &amp;lt;p&amp;gt; ...... MODIF ID &amp;lt;key&amp;gt; ...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the input field of a parameter as a required field, you use the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS &amp;lt;p&amp;gt; ...... OBLIGATORY ...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A search help is a ABAP Dictionary object used to define possible values (F4) help ( see Input Help in the ABAP Dictionary). You can link a search help to a parameter as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS &amp;lt;p&amp;gt; ... MATCHCODE OBJECT &amp;lt;search_help&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;select-options.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike parameters that are declared as elementary variables in ABAP programs, selection criteria are based on special internal tables, called selection tables. To define a selection criterion, you must declare a selection table in the declaration part using the SELECT-OPTIONS statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the statement&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; for &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row type of a selection table is a structure that consists of the following four components: &amp;lt;b&amp;gt;SIGN, OPTION, LOW and HIGH&amp;lt;/b&amp;gt;. Each row of a selection table that contains values represents a sub-condition for the complete selection criterion. Description of the individual components:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SIGN '&amp;lt;/b&amp;gt; The data type of SIGN is C with length 1. The contents of SIGN determine for each row whether the result of the row condition is to be included in or excluded from the resulting set of all rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OPTION&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The data type of OPTION is C with length 2. OPTION contains the selection operator. The following operators are available&lt;/P&gt;&lt;P&gt;If HIGH is empty, you can use EQ, NE, GT, LE, LT,CP, and NP. These operators are the same as those that are used for logical expressions.&lt;/P&gt;&lt;P&gt;If HIGH is filled, you can use BT (BeTween) and NB (Not Between). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOW&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The data type of LOW is the same as the column type of the database table, to which the selection criterion is linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;HIGH&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The data type of HIGH is the same as the column type of the database table, to which the selection criterion is linked. The contents of HIGH specify the upper limit for a range selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To assign default values to a selection criterion, you use the following syntax: &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; FOR &amp;lt;f&amp;gt; DEFAULT &amp;lt;g&amp;gt; [TO &amp;lt;h&amp;gt;] ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To allow the user to process only the first row of the selection table on the selection screen, you use the following syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; FOR &amp;lt;f&amp;gt; ..... NO-EXTENSION .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To allow the user to process only single fields on the selection screen, you use the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; FOR &amp;lt;f&amp;gt; ..... NO INTERVALS .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPA/GPA parameters as default values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; FOR &amp;lt;f&amp;gt; ... MEMORY ID &amp;lt;pid&amp;gt;..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upper and lower case for selection criteria:&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; FOR &amp;lt;f&amp;gt; ... LOWER CASE ..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the From field a required field on the selection screen, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;selcrit&amp;gt; FOR &amp;lt;f&amp;gt; ... OBLIGATORY ..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To hide input fields on the selection screen, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;selcrit&amp;gt; FOR &amp;lt;f&amp;gt; ... NO DISPLAY ..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To modify input fields on the selection screen, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;selcrit&amp;gt; FOR &amp;lt;f&amp;gt; ... MODIF ID &amp;lt;key&amp;gt; ...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;AshokReddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 20:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366211#M523946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T20:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: parameters vs select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366212#M523947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-vs-select-options/m-p/2366212#M523947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-29T13:49:02Z</dc:date>
    </item>
  </channel>
</rss>

