<?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: validation on screen select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657995#M1095960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vnekat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this if you are considering only Multiple Values and no ranges ....but in case there are ranges, Excludes, it becomes really difficult, confusing and complex.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway as per standards, there is no use of validating each &amp;amp; Every Valur in Select Options.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just keep going as you are doing.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to any standard SAP report for the same and you will find that SAP is also doing the same way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2008 15:53:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-14T15:53:58Z</dc:date>
    <item>
      <title>validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657992#M1095957</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;      In my selection-screen one select-option is there.i want to validate my select-option field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written  the query like&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;select single * from ekpo into ekpo where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message e999 with 'enter the valid po'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in my selection screen i want to enter 2 correct values and 2 wrong values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it has to stop while the wrong values execution.but i am not getting that.i am getting the correct 2 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i validate &amp;amp; what is the perfect validation procedure during the select-option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 15:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657992#M1095957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T15:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657993#M1095958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[check this post|http://www.sap-img.com/abap/difference-between-select-options-ranges.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 15:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657993#M1095958</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-14T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657994#M1095959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to loop the select options table and validate. but this should be avoided. but select option entries can be single, multiple, patterns, includes, excludes. so it is not a good idea to loop the selection table. the way you coded will give error when all the entries are wrong. if one entry is correct then it will not give the error. it is up to you how you validate using loop or with out loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 15:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657994#M1095959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657995#M1095960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vnekat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this if you are considering only Multiple Values and no ranges ....but in case there are ranges, Excludes, it becomes really difficult, confusing and complex.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway as per standards, there is no use of validating each &amp;amp; Every Valur in Select Options.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just keep going as you are doing.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to any standard SAP report for the same and you will find that SAP is also doing the same way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 15:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657995#M1095960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657996#M1095961</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;    Please tell me the package name for watching the sap standard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 19:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657996#M1095961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657997#M1095962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BC* in se38 will take you to the Standard SAP code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 19:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657997#M1095962</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-14T19:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657998#M1095963</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 code this way:-&lt;/P&gt;&lt;P&gt;  IF s_bukrs-sign EQ 'I' AND s_bukrs-option EQ 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT S_BUKRS.&lt;/P&gt;&lt;P&gt;  Do the select single from database using s_bukrs-low and give error message.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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 s_bukrs-sign EQ 'I' AND s_bukrs-option EQ 'BT'.&lt;/P&gt;&lt;P&gt;  If it is arange,  Do the select single from database using s_bukrs-low  and su_bukrs-high and store in another internal table, loop through this internal table and repeart above procedure...&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 23:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657998#M1095963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-06T23:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: validation on screen select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657999#M1095964</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;Check this code....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: r_ebeln TYPE RANGE OF ekpo-ebeln WITH HEADER LINE.

SELECT-OPTIONS:  s_ebeln FOR ekpo-ebeln.


AT SELECTION-SCREEN ON s_ebeln.
  LOOP AT s_ebeln.
    APPEND s_ebeln TO r_ebeln.
    SELECT *
           FROM ekpo
           WHERE ebeln IN r_ebeln.
    ENDSELECT.
    
    IF sy-subrc NE 0.
      MESSAGE 'Wrong Entry' TYPE 'E'.
    ENDIF.
    
    REFRESH r_ebeln.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 03:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-screen-select-options/m-p/4657999#M1095964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T03:55:48Z</dc:date>
    </item>
  </channel>
</rss>

