<?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: hi, about validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161214#M457155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use only 2 events to validate data on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) AT SELECTION-SCREEN ON &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between the two is that when you use AT SELECTION-SCREEN and you issue an error message (message of type E) when the validation of a field fails then all the fields ar enabled for input. In this case your message should be clear enough to direct the user to the field whose data needs to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use AT SELECTION-SCREEN ON &amp;lt;field&amp;gt; and you issue an error message (message of type E) when the validation of a field fails then only the field containing the incorrect data is enabled for input. All the other fields are disabled. This makes it obvious to the user which field needs attention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 19:41:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T19:41:24Z</dc:date>
    <item>
      <title>hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161207#M457148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other methods  for validation of a field apart from at selection-screen on field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 03:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161207#M457148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T03:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161208#M457149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the START OF SELECTION event, we have to do the validation part based on the selection screen parameters. So this can be done thro' AT SELECTION SCREEN ON FIELD event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 04:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161208#M457149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T04:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161209#M457150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasoona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this program. In this program i done the validations on filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YCLASSICREPORTING NO STANDARD PAGE HEADING LINE-COUNT 20(5)&lt;/P&gt;&lt;P&gt;LINE-SIZE 88 MESSAGE-ID ZMGSVMR .&lt;/P&gt;&lt;P&gt;TABLES : LFA1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : VENDOR FOR LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;      LIFNR LIKE LFA1-LIFNR,&lt;/P&gt;&lt;P&gt;      NAME1 LIKE LFA1-NAME1,&lt;/P&gt;&lt;P&gt;      ORT01 LIKE LFA1-ORT01,&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;DATA : FNAME(10) , FVAL(10) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION .&lt;/P&gt;&lt;P&gt;  VENDOR-LOW = 100.&lt;/P&gt;&lt;P&gt;  VENDOR-HIGH = 1500.&lt;/P&gt;&lt;P&gt;  VENDOR-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;  VENDOR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  APPEND VENDOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VENDOR.&lt;/P&gt;&lt;P&gt;  IF VENDOR-LOW &amp;lt; 100 OR VENDOR-HIGH &amp;gt; 1500.&lt;/P&gt;&lt;P&gt;    MESSAGE I000(ZMSGVMR) WITH 'enter oroper input'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  SELECT LIFNR NAME1 ORT01 FROM LFA1 INTO TABLE ITAB WHERE LIFNR IN&lt;/P&gt;&lt;P&gt;VENDOR.&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE : / ' accno' , 'name of vendor' , 'city of vendor' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE : / ITAB-LIFNR ,SY-VLINE , ITAB-NAME1,SY-VLINE , ITAB-ORT01,&lt;/P&gt;&lt;P&gt;SY-VLINE.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR OFF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'YVMR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'VENDOR'.&lt;/P&gt;&lt;P&gt;      GET CURSOR FIELD FNAME VALUE FVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SET PARAMETER ID 'LIF' FIELD FVAL.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'XK02' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE : / 'VENDOR DETAILS ' COLOR 3 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-PAGE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'PAGE NO:' , SY-PAGNO  COLOR 6.&lt;/P&gt;&lt;P&gt;END OF SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Naganjana Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 06:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161209#M457150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T06:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161210#M457151</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 validate under At SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if an error encounters then this will not trigger to the error selection option,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when you validate undet AT SELECTION-SCREEN on FILED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will get to the particular field where the error occured and make to change the value of the field to run  the program,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewrds if useful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 10:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161210#M457151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161211#M457152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can &amp;lt;b&amp;gt;use dialog programming&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create your own sceens and events for actions on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In &amp;lt;b&amp;gt;event definition,validate the fields.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure of your sceen sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Rama chary.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 08:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161211#M457152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T08:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161212#M457153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can perform the validation in at selection-screen only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is u no need to write the validation code in at-selection..U can use subroutines and call those sub-routines in at selection-screen...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 06:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161212#M457153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T06:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161213#M457154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from &amp;lt;i&amp;gt;At Selection-Screen on &amp;lt;Field&amp;gt;&amp;lt;/i&amp;gt;, one can use &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;AT SELECTION- SCREEN&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; to validate the input on the screen. As by this time, the screen input is already passed to ABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is a small e.g. showing the validation &amp;amp; message display for some condition on &amp;lt;i&amp;gt;AT SELECTION-SCREEN.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF CARRID-LOW IS INITIAL &lt;/P&gt;&lt;P&gt;    OR CITY_FR IS INITIAL &lt;/P&gt;&lt;P&gt;    OR CITY_TO IS INITIAL. &lt;/P&gt;&lt;P&gt;    MESSAGE E000(HB). &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;Hope this sorts out your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS If the answer sorts out your query, plz close the thread by rewarding each reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 07:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161213#M457154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T07:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161214#M457155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use only 2 events to validate data on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) AT SELECTION-SCREEN ON &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between the two is that when you use AT SELECTION-SCREEN and you issue an error message (message of type E) when the validation of a field fails then all the fields ar enabled for input. In this case your message should be clear enough to direct the user to the field whose data needs to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use AT SELECTION-SCREEN ON &amp;lt;field&amp;gt; and you issue an error message (message of type E) when the validation of a field fails then only the field containing the incorrect data is enabled for input. All the other fields are disabled. This makes it obvious to the user which field needs attention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 19:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161214#M457155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T19:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: hi, about validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161215#M457156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi prasoon&lt;/P&gt;&lt;P&gt;    we can use AT LINE-SELECTION as below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION ON  s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at s_kunnr.&lt;/P&gt;&lt;P&gt; select single * from kna1 where kunnr in s_kunnr.&lt;/P&gt;&lt;P&gt; if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  message e012(ZMSG) with 'Invalid Input'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IT PLEASE...!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 06:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-about-validation/m-p/2161215#M457156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T06:53:07Z</dc:date>
    </item>
  </channel>
</rss>

