<?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 Validation on select-options high is executing although input doesn't exist in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859192#M1685825</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 want to validate the select options LOW and HIGH values and I am using the code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;SELECT iblnr FROM ikpf INTO TABLE gt_ikpf WHERE iblnr IN s_iblnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE s001.&amp;nbsp;&amp;nbsp;&amp;nbsp; " record(s) exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE e002.&amp;nbsp;&amp;nbsp;&amp;nbsp; " record(s) does not exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 1 : When I enter values in both s_iblnr-low and s_iblnr-high, it gives correct message according to the input.&lt;/P&gt;&lt;P&gt;Case 2 : When I enter value only in s_iblnr-low and not in s_iblnr-high, it gives correct message according to the input.&lt;/P&gt;&lt;P&gt;Case 3 : BUT when I &lt;STRONG&gt;enter value only in s_iblnr-high&lt;/STRONG&gt; and not in s_iblnr-low, it &lt;STRONG&gt;does not give me error message for the wrong input&lt;/STRONG&gt; i.e. it gives STATUS message (s001 here) all the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems easy and a bit illogical but need to solve this. I could not find this on forums. How can I solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 06:51:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-12T06:51:15Z</dc:date>
    <item>
      <title>Validation on select-options high is executing although input doesn't exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859192#M1685825</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 want to validate the select options LOW and HIGH values and I am using the code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;SELECT iblnr FROM ikpf INTO TABLE gt_ikpf WHERE iblnr IN s_iblnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE s001.&amp;nbsp;&amp;nbsp;&amp;nbsp; " record(s) exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE e002.&amp;nbsp;&amp;nbsp;&amp;nbsp; " record(s) does not exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 1 : When I enter values in both s_iblnr-low and s_iblnr-high, it gives correct message according to the input.&lt;/P&gt;&lt;P&gt;Case 2 : When I enter value only in s_iblnr-low and not in s_iblnr-high, it gives correct message according to the input.&lt;/P&gt;&lt;P&gt;Case 3 : BUT when I &lt;STRONG&gt;enter value only in s_iblnr-high&lt;/STRONG&gt; and not in s_iblnr-low, it &lt;STRONG&gt;does not give me error message for the wrong input&lt;/STRONG&gt; i.e. it gives STATUS message (s001 here) all the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems easy and a bit illogical but need to solve this. I could not find this on forums. How can I solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 06:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859192#M1685825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T06:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on select-options high is executing although input doesn't exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859193#M1685826</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;If you dont give any values in S_IBLNR, the SELECT query will fetch all the data from the table IKPF.&lt;/P&gt;&lt;P&gt;As a solution, please check whether S_IBLNR IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S_IBLNR IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;SELECT iblnr FROM ikpf INTO TABLE gt_ikpf WHERE iblnr IN s_iblnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE s001.&amp;nbsp;&amp;nbsp;&amp;nbsp; " record(s) exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE e002.&amp;nbsp;&amp;nbsp;&amp;nbsp; " record(s) does not exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;If needed, give a error message if S_IBLNR is initial.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: arial, sans-serif; color: #222222;"&gt;~Niranjan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 07:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859193#M1685826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T07:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on select-options high is executing although input doesn't exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859194#M1685827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you enter value in S_IBLNR-HIGH and not in S_IBLNR-LOW the query will fetch all the data form the IKPF table till S_IBLNR-HIGH.&lt;/P&gt;&lt;P&gt;You can do this whenever the high value is filled check whether the low value is filled or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavithra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 07:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859194#M1685827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T07:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on select-options high is executing although input doesn't exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859195#M1685828</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;If you don't provide s_iblnr-low and only provide values in s_iblnr-high then s_iblnr-option automatically changes to 'BT'. Hence the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. lets say you give value '0000000015' in s_iblnr-high and try to execute the program giving nothing in s_iblnr-low. Then the s_iblnr will be filled as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_iblnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_iblnr-option = 'BT'&lt;/P&gt;&lt;P&gt;s_iblnr-low = ' '.&lt;/P&gt;&lt;P&gt;s_iblnr-high = '0000000015'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above means to fetch all values between NULL to '0000000015', hence it tries to fetch all values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution for the above problem is: if option is 'BT' then check the 's_iblnr-low' value in the 'at selection screen output' event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manjesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 07:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859195#M1685828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T07:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on select-options high is executing although input doesn't exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859196#M1685829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for the solution.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 07:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-select-options-high-is-executing-although-input-doesn-t-exist/m-p/8859196#M1685829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-12T07:55:38Z</dc:date>
    </item>
  </channel>
</rss>

