<?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: Solution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128054#M1619083</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;Message displayed on the botton of the screen has a limitation with the length. If you want to display all the plants then please use a "pop-up" window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2011 00:13:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-12T00:13:05Z</dc:date>
    <item>
      <title>Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128053#M1619082</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 am using the select-options s_plant.&lt;/P&gt;&lt;P&gt;I am validating the plant at AT SELECTION-SCREEN ON S_PLANT.&lt;/P&gt;&lt;P&gt;Here I am want to display error message like  Enter plant + S_PLANT+ doesnot exits . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me code how to display all S_PLANT (not present in selection table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select plant from &amp;lt;table_name&amp;gt; where plant in s_plant.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message text-001 type 'E'.  " text-001 -&amp;gt;Plant&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;TM Murugan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please choose more descriptive subject lines for your posts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Aug 12, 2011 2:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 21:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128053#M1619082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T21:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128054#M1619083</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;Message displayed on the botton of the screen has a limitation with the length. If you want to display all the plants then please use a "pop-up" window. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 00:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128054#M1619083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T00:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128055#M1619084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Murugan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand your question is that if S_plant contains 5 plants and out of them 4 are valid ones, then you want to list out that 1 invalid one in the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my knowledge, this is not possible because Select will be always sy-subrc 0 even if 1 plant matches the criteria. Actually you can't check that what is in your select-options table s_plant. It will not always be a simple list of plants, it can be something like &lt;/P&gt;&lt;P&gt;&amp;gt;1100...... BT 1000 and 2000....... NE 1100....&lt;/P&gt;&lt;P&gt;So, in that case how can you know that which was NOT valid. e.g BT 1000 and 2000, you will never want to give a list of all numbers between 1000 and 2000 which are not valid plant codes, right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, select-options validation with select only ensures that there is atleast 1 valid data, listing out the invalid one can be done with parameters only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 02:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128055#M1619084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T02:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128056#M1619085</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;&lt;/P&gt;&lt;P&gt;You can validate this through parameters statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using select statement  you can fetch only the entries which are valid . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we know that Select statment retrieves only the valid entries which are given in the condtion and select-options internal table will hold only value range. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario will not match for your requirement using select-options. &lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Hariharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 04:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128056#M1619085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T04:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128057#M1619086</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;  refer the link you should get answer. Hope its very helpful for your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1751943"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 05:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128057#M1619086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T05:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128058#M1619087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link posted by Dhina further confirms my above post that it is not possible to display all invalid plants with select-options and is used to check that whether atleast 1 valid plant is existing or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 05:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128058#M1619087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T05:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128059#M1619088</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;I too have checked the post .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF TY_T001W,
       WERKS TYPE T001W-WERKS,
       END OF TY_T001W.

 DATA : L_WERKS TYPE TABLE OF TY_T001W,
        W_WERKS TYPE TY_T001W.


DATA : GV_WERKS TYPE T001W-WERKS.

SELECT-OPTIONS S_PLANT FOR GV_WERKS.


SELECT WERKS INTO W_WERKS UP TO 1 ROWS
FROM T001W
WHERE WERKS IN S_PLANT.
ENDSELECT.

IF SY-SUBRC NE 0.
  MESSAGE 'No valid Sales Order selected for the input range. Please check.' TYPE 'E'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code will chec kif both low and high values are not available . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have valid entries it will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hariharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 05:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128059#M1619088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T05:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128060#M1619089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try to do something like this.&lt;/P&gt;&lt;P&gt;Always validate those things on the events of AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: T001w.
data: w_werks like T001W-WERKS.

SELECT-OPTIONS S_PLANT FOR T001W-WERKS.

AT SELECTION-SCREEN ON s_plant.

if s_plant[] is not initial.
    SELECT single WERKS INTO W_WERKS
    FROM T001W
    WHERE WERKS IN S_PLANT.

    if sy-subrc &amp;lt;&amp;gt; 0.
      message ' error no valido' type 'E'.
    endif.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 14:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128060#M1619089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128061#M1619090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manimurugan001 	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Please read "The Forum Rules of Engagement" before posting! HOT NEWS!! Pages: |&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="927634"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[FAQ's, intros and memorable discussions in the ABAP General Forum|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1081035"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[How to post code in SCN, and some things NOT to do...|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1170968"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2011 19:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128061#M1619090</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-13T19:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Solution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128062#M1619091</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;thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mani Murugan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 06:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/solution/m-p/8128062#M1619091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-16T06:13:59Z</dc:date>
    </item>
  </channel>
</rss>

