<?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 selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479257#M224494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the selection-screen validation.some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

  DATA : L_KUNWE LIKE KNA1-KUNNR.

*--Validate Customer Number
  IF NOT S_KUNWE[] IS INITIAL.
    SELECT SINGLE KUNNR
             FROM KNA1
             INTO L_KUNWE
         WHERE KUNNR IN S_KUNWE.

    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE E000 WITH 'Invalid Customer Number'(002).
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if the user enters the wrong customer number then it will give the error 'Invalid Customer Number' and even selection screen will be there to enter the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikranth Khimavath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2006 15:10:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-22T15:10:37Z</dc:date>
    <item>
      <title>validation on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479253#M224490</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 a selection screen&lt;/P&gt;&lt;P&gt;   on which there are 2 select-options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The user to enter only particular values in that   fields if he doesnt a error message is shown.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   After that error message the user is forced to &lt;/P&gt;&lt;P&gt;   run the program again (this much is working)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   i want that even if he enters invalid value,&lt;/P&gt;&lt;P&gt;    a error shoould be shown and the field where&lt;/P&gt;&lt;P&gt;   he enterd the invalid value should be ready for input  again&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   how to do it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Tarang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 15:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479253#M224490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: validation on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479254#M224491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should be happening automatically if your validations are in the AT SELECTION-SCREEN event.&lt;/P&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>Tue, 22 Aug 2006 15:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479254#M224491</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-22T15:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: validation on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479255#M224492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 15:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479255#M224492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: validation on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479256#M224493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it should automatically happen but if you wish to just input enabled the particular field than use the selection-screen block statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 15:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479256#M224493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: validation on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479257#M224494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the selection-screen validation.some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

  DATA : L_KUNWE LIKE KNA1-KUNNR.

*--Validate Customer Number
  IF NOT S_KUNWE[] IS INITIAL.
    SELECT SINGLE KUNNR
             FROM KNA1
             INTO L_KUNWE
         WHERE KUNNR IN S_KUNWE.

    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE E000 WITH 'Invalid Customer Number'(002).
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if the user enters the wrong customer number then it will give the error 'Invalid Customer Number' and even selection screen will be there to enter the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikranth Khimavath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 15:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479257#M224494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T15:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: validation on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479258#M224495</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;  thanks for the replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Tarang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 15:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479258#M224495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T15:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: validation on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479259#M224496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tarang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. he enterd the invalid value should be ready for input again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this we have to take care of two things :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) write code in the event&lt;/P&gt;&lt;P&gt;   START-OF-SELECTION&lt;/P&gt;&lt;P&gt;b) use the command&lt;/P&gt;&lt;P&gt;   LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The code would be somewhat like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ERROR CONDITION.&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;MESSAGE 'wrong values' type 'I'.&lt;/P&gt;&lt;P&gt;  LEAVE LIST-PROCESSING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  *---- Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Important thing.&lt;/P&gt;&lt;P&gt;   a) Give message type of I,W (not E)&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 15:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-selection-screen/m-p/1479259#M224496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T15:13:31Z</dc:date>
    </item>
  </channel>
</rss>

