<?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 help needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595675#M1083536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS YOU RICH for YOUR CLEAR EXPLANATION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2008 16:04:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-10T16:04:22Z</dc:date>
    <item>
      <title>select-option help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595672#M1083533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1). DO i need to use &lt;/P&gt;&lt;P&gt;AT SELECTIon-screen.&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;for my select-option validation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2). Can I validate my select option ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF  NOT S_option1 IS INITIAL&lt;/P&gt;&lt;P&gt;    PERFORM read_local_file.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE i038(zs) WITH ' please enter value in select option1'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;   IF  NOT S_option2 IS INITIAL&lt;/P&gt;&lt;P&gt;    PERFORM read_local_file.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE i038(zs) WITH ' please enter value in select option2'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 15:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595672#M1083533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T15:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: select-option help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595673#M1083534</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;You need to you AT SELECTION-SCREEN for any selection screen validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can validate the selection option under this event with your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 15:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595673#M1083534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T15:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: select-option help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595674#M1083535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the validation to happen when the user hits ENTER, then you would put that validation logic in the AT SELECTION-SCREEN event, which is the most common way.  If, however, you only wanted to validate when the user hits F8 or the "Execute" icon, then you would put this in the begingin of the START-OF-SELECTION event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, you can validate like that, but make sure that you are pointing to the body of the select-option internal table by using the [].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF NOT S_option1[] IS INITIAL
PERFORM read_local_file.
ELSE.
MESSAGE i038(zs) WITH ' please enter value in select option1'.
EXIT.
ENDIF.
IF NOT S_option2[] IS INITIAL
PERFORM read_local_file.
ELSE.
MESSAGE i038(zs) WITH ' please enter value in select option2'.
EXIT.
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>Fri, 10 Oct 2008 15:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595674#M1083535</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-10-10T15:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: select-option help needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595675#M1083536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS YOU RICH for YOUR CLEAR EXPLANATION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 16:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-help-needed/m-p/4595675#M1083536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T16:04:22Z</dc:date>
    </item>
  </channel>
</rss>

