<?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 select-option default value??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134809#M449014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gsber1         like csks-gsber.
select distinct GSBER
  into (gsber1)
  from csks
 where kostl = sch_kostl.
endselect.
  SELECT-OPTIONS : gsber    FOR csks-gsber DEFAULT gsber1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not input value gsber1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 02:15:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T02:15:41Z</dc:date>
    <item>
      <title>select-option default value???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134809#M449014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gsber1         like csks-gsber.
select distinct GSBER
  into (gsber1)
  from csks
 where kostl = sch_kostl.
endselect.
  SELECT-OPTIONS : gsber    FOR csks-gsber DEFAULT gsber1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not input value gsber1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 02:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134809#M449014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T02:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: select-option default value???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134810#M449015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select-option specifies a range of values.. u can initilize default values in initialization event like &lt;/P&gt;&lt;P&gt;gsber-low = '1'.&lt;/P&gt;&lt;P&gt;gsber-high = '100'.&lt;/P&gt;&lt;P&gt;append gsber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can give default values in selection-screen page by clicking extension(arrow mark button) green button indicates a range of values n red button indicated not to display those range of values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u cleared ur doubt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 02:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134810#M449015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T02:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: select-option default value???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134811#M449016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: gsber1         like csks-gsber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;select distinct GSBER&lt;/P&gt;&lt;P&gt;  into (gsber1)&lt;/P&gt;&lt;P&gt;  from csks&lt;/P&gt;&lt;P&gt; where kostl = sch_kostl.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   gsber  = gsber 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS : gsber    FOR csks-gsber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way is.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct GSBER&lt;/P&gt;&lt;P&gt;  into (gsber1)&lt;/P&gt;&lt;P&gt;  from csks&lt;/P&gt;&lt;P&gt; where kostl = sch_kostl.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS : gsber    FOR csks-gsber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  gsber  = gsber 1.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will work.But in selection statemnet if you get the value of gsber1 is null selection screen input will be empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget ot reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 02:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134811#M449016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T02:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: select-option default value???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134812#M449017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pung,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. see the docs. below.&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;&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;Default values &amp;lt;g&amp;gt; and &amp;lt;h&amp;gt; can be literals or field names. You can only use fields that contain a value when the program is started. These fields include several predefined data objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each SELECT-OPTIONS statement, you can specify only one DEFAULT addition. This means that you can fill only the first row of selection table &amp;lt;seltab&amp;gt; with default values. To fill more rows with default values, the selection table must be processed before the selection screen is called, for example, during the AT SELECTION-SCREEN -OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the DEFAULT addition as follows to address the individual components of the first row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fill only the LOW field (single field comparison), use:&lt;/P&gt;&lt;P&gt;........DEFAULT &amp;lt;g&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fill the LOW and HIGH fields (range selection), use:&lt;/P&gt;&lt;P&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;To fill the OPTION field, use:&lt;/P&gt;&lt;P&gt;........DEFAULT &amp;lt;g&amp;gt; [to &amp;lt;h&amp;gt;] OPTION &amp;lt;op&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For single field comparisons, &amp;lt;op&amp;gt; can be EQ, NE, GE, GT, LE, LT, CP, or NP. The default value is EQ. For range selections, &amp;lt;op&amp;gt; can be BT or NB. The default value is BT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fill the SIGN field, use:&lt;/P&gt;&lt;P&gt;........DEFAULT &amp;lt;g&amp;gt; [to &amp;lt;h&amp;gt;] [OPTION &amp;lt;op&amp;gt;] SIGN &amp;lt;s&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of &amp;lt;s&amp;gt; can be I or E. The default value is I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input fields of the selection criterion are filled with the default values. The user can accept or change these values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT DEMO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_SPFLI TYPE SPFLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS AIRLINE FOR WA_SPFLI-CARRID&lt;/P&gt;&lt;P&gt;               DEFAULT 'AA'&lt;/P&gt;&lt;P&gt;                    TO 'LH'&lt;/P&gt;&lt;P&gt;                OPTION  NB&lt;/P&gt;&lt;P&gt;                  SIGN  I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget ot reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 03:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-default-value/m-p/2134812#M449017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T03:07:41Z</dc:date>
    </item>
  </channel>
</rss>

