<?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-option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626953#M280058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could get a little tricky with a select-option because of all of the possibilties.  But if you just want to check that the low value is before of after 07/07/2004, then you can simply do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0004.
 

select-options: s_datum for sy-datum no-extension.


start-of-selection.

read table s_datum index 1.

if s_Datum-low &amp;lt; '20040707'.

else.


endif.

&lt;/CODE&gt;&lt;/PRE&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, 27 Sep 2006 17:09:14 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-09-27T17:09:14Z</dc:date>
    <item>
      <title>Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626952#M280057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a select-option for date and I need to add some functionality based on the selection date. Like if the date is below 07/07/2004 i need to add some functionality and if the date is above 07/07/2004 i need to add a different functionality. So when the user enters the date range how do i check on this date and write the functionality..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 16:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626952#M280057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T16:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626953#M280058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could get a little tricky with a select-option because of all of the possibilties.  But if you just want to check that the low value is before of after 07/07/2004, then you can simply do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0004.
 

select-options: s_datum for sy-datum no-extension.


start-of-selection.

read table s_datum index 1.

if s_Datum-low &amp;lt; '20040707'.

else.


endif.

&lt;/CODE&gt;&lt;/PRE&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, 27 Sep 2006 17:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626953#M280058</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-27T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626954#M280059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: date for ztable-date_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selectionscreen output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if date-low --chk ur condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if date-high -- chk ur condition.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in select options - first text box value is date-low&lt;/P&gt;&lt;P&gt;similarly the other one is date-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u got an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped mark points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 17:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626954#M280059</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-27T17:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626955#M280060</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;   if you want to do validation &lt;/P&gt;&lt;P&gt;     at selection-screen.&lt;/P&gt;&lt;P&gt;     if s_date-low &amp;lt;  07/07/2004 &lt;/P&gt;&lt;P&gt;        message e000 with 'invalid date'.&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;    start-of-selection&lt;/P&gt;&lt;P&gt;     if s_date-low &amp;lt;  07/07/2004 &lt;/P&gt;&lt;P&gt;       perform fun1.&lt;/P&gt;&lt;P&gt;     else&lt;/P&gt;&lt;P&gt;       performs_fun &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;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 17:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626955#M280060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T17:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626956#M280061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;Your Question is not very much clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is ur requirement...&lt;/P&gt;&lt;P&gt;Is it Select-Options Validation in selection screen&lt;/P&gt;&lt;P&gt;or displaying output after input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its regarding validation then use the following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: sdate for sy-cdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At-selection-screen on sdate-low.&lt;/P&gt;&lt;P&gt;If sdate &amp;lt; sy-datum.&lt;/P&gt;&lt;P&gt;message e044.&lt;/P&gt;&lt;P&gt;Write ur own logic...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;At-selection-screen on sdate-high.&lt;/P&gt;&lt;P&gt;message e045.&lt;/P&gt;&lt;P&gt;write ur own logic.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you ant to display ouput then do code like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;if sdate-low &amp;lt; sy-datum.&lt;/P&gt;&lt;P&gt;write ur functionality.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;if sdate-high &amp;gt; sy-datum.&lt;/P&gt;&lt;P&gt;write ur functionality.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful&lt;/P&gt;&lt;P&gt;then reward me points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 17:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626956#M280061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T17:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select-option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626957#M280062</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;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;budat like mkpf-budat,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;select-options: s_date for sy-datum.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select budat from mkpf into table itab where budat in s_date.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if itab-budat &amp;lt; '20040707'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif itab-budat = '20040707'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 17:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option/m-p/1626957#M280062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T17:38:08Z</dc:date>
    </item>
  </channel>
</rss>

