<?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 selection screen validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/1547392#M248751</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;On selection screen i have my select-option for plant WERKS  S_WERKS&lt;/P&gt;&lt;P&gt;this has to accept only '1100' and '1700'&lt;/P&gt;&lt;P&gt;both can be in low and high of the select-option&lt;/P&gt;&lt;P&gt;could u help me how to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 19:26:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-21T19:26:58Z</dc:date>
    <item>
      <title>selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/1547392#M248751</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;On selection screen i have my select-option for plant WERKS  S_WERKS&lt;/P&gt;&lt;P&gt;this has to accept only '1100' and '1700'&lt;/P&gt;&lt;P&gt;both can be in low and high of the select-option&lt;/P&gt;&lt;P&gt;could u help me how to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 19:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/1547392#M248751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T19:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/1547393#M248752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually don't like doing validations on select-option, but if I have to, then I would start with something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

tables: marc.

ranges: r_werks for marc-werks.

select-options: s_werks for marc-werks.

initialization.

  r_werks-sign = 'I'.
  r_werks-option = 'EQ'.
  r_werks-low = '1100'.
  append r_werks.

  r_werks-low = '1700'.
  append r_werks.

at selection-screen.

  loop at s_werks.
    if not s_werks-low in r_werks
      and not s_werks-low is initial.
      message e001(00) with 'Plant not valid'.
    endif.
    if not s_werks-high in r_werks
      and not s_werks-high is initial.
      message e001(00) with 'Plant not valid'.
    endif.

  endloop.

&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>Mon, 21 Aug 2006 19:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/1547393#M248752</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-21T19:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/1547394#M248753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkatesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the piece of code under INITIALIZATION event of your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;S_WERKS-LOW = '1100'.&lt;/P&gt;&lt;P&gt;S_WERKS-HIGH = '1700'.&lt;/P&gt;&lt;P&gt;S_WERKS-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;S_WERKS-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND S_WERKS.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you execute your report then you will have 1100 as low value and 1700 as high value for your select option werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 20:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validation/m-p/1547394#M248753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T20:01:48Z</dc:date>
    </item>
  </channel>
</rss>

