<?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 options validation in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320496#M795426</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 can do this in at selection-screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen.

if plant[] is initial.

"write select statement to get only valid plant

elseif not plant[] is initial.

"write select statement and filter out the invalid plants.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 10:57:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-05T10:57:30Z</dc:date>
    <item>
      <title>Select options validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320495#M795425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have select options for plant in selection screen..I want to validate the Plants. and display the &lt;STRONG&gt;invalid plants in the selection screen itself....&lt;/STRONG&gt;Since my report is for online purpose i am in need of this requirement...i dont want to print or display the invalid plants as output of the report..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is thaee any way to achieve this...please help.&lt;/P&gt;&lt;P&gt;points will be rewareded  definetely if problem gets solved by your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320495#M795425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T10:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320496#M795426</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 can do this in at selection-screen event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen.

if plant[] is initial.

"write select statement to get only valid plant

elseif not plant[] is initial.

"write select statement and filter out the invalid plants.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320496#M795426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T10:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320497#M795427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do the validation like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON SO_WERKS.
IF not SO_WERKS[] is initial.
select * from t001w into table where werks in so_werks.
if sy-subrc ne 0.
Message E999(HH) With 'The enetered palnt is not valid.'
endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320497#M795427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T10:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320498#M795428</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;AT SELECTION-SCREEN ON S_WERKS.&lt;/P&gt;&lt;P&gt;PERFORM F_CHECK_PLANT    USING TEXT-024.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM F_CHECK_PLANT  USING    P_TEXT_004.&lt;/P&gt;&lt;P&gt;  IF S_WERKS IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    DATA: LV_WERKS TYPE WERKS_D.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE WERKS &lt;/P&gt;&lt;P&gt;           INTO   LV_WERKS&lt;/P&gt;&lt;P&gt;           FROM   T001W&lt;/P&gt;&lt;P&gt;           WHERE  WERKS IN S_WERKS.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      CLEAR S_WERKS.&lt;/P&gt;&lt;P&gt;      MESSAGE E000 WITH P_TEXT_004 "(Plant does not exist)&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR LV_WERKS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " F_CHECK_PLANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320498#M795428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select options validation in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320499#M795429</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;let p_plant be ur parameter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen on p_plant.
tables T001W.
select single * from T001W where werks = p_plant. 
if sy-subrc is not initial.
message 'Plant does not exist' type'E'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-validation-in-selection-screen/m-p/3320499#M795429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T11:05:07Z</dc:date>
    </item>
  </channel>
</rss>

