<?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 at selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084051#M432591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. if u want to enter values in all the screen fields, then make them as obligatory fields... it will take care of the message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont want any of the field as required field, then write code in AT SELECTION-SCREEN event... if S_MATNR[] is initial and S_WERKS[] is initial .... then raise the error message "enter values"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 &amp;amp; 3. You can Validate the fields individually by using AT SELECTION-SCREEN on &amp;lt;field&amp;gt; or you can define the block for a group of fields and then validate them by using AT SELECTION-SCREEN ON BLOCK &amp;lt;Block_name&amp;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;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 08:02:17 GMT</pubDate>
    <dc:creator>PS_1978</dc:creator>
    <dc:date>2007-04-05T08:02:17Z</dc:date>
    <item>
      <title>Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084047#M432587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi every body i want to do  validation at the selection screen . i have 12 fields as a select options &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;can anybody give me the code of how to validate all these fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) first all fields will give error when user not enter anything  "enter values"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) when user enter wrong values then it will show " enter rite values"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) when user enters valid values then it will show " value entered is valid"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my big problem is how i will code so that everything will go perfect for all fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fields are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) S_MATNR FOR MSEG-MATNR,&lt;/P&gt;&lt;P&gt;2) S_WERKS FOR MSEG-WERKS,&lt;/P&gt;&lt;P&gt;3) S_LGORT FOR MSEG-LGORT,&lt;/P&gt;&lt;P&gt;4) S_CHARG FOR MSEG-CHARG,&lt;/P&gt;&lt;P&gt;5) S_LIFNR FOR MSEG-LIFNR,&lt;/P&gt;&lt;P&gt;6) S_KUNNR FOR MSEG-KUNNR,&lt;/P&gt;&lt;P&gt;7) S_BWART FOR MSEG-BWART,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;  S_SOBKZ FOR MSEG-SOBKZ,&lt;/P&gt;&lt;P&gt;9)  S_BUDAT FOR MKPF-BUDAT,&lt;/P&gt;&lt;P&gt;10) S_USNAM FOR MKPF-USNAM,&lt;/P&gt;&lt;P&gt;11) S_VGART FOR MKPF-VGART,&lt;/P&gt;&lt;P&gt;12) S_XBLNR FOR MKPF-XBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me &lt;/P&gt;&lt;P&gt;thanks with regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pointe will be rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084047#M432587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T07:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084048#M432588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare the fields with their master tables after declaring those tables with TABLES statement.for few I will give the code, rest you practice.&lt;/P&gt;&lt;P&gt;You have to write this code in AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;S_WERKS FOR T001W-WERKS,&lt;/P&gt;&lt;P&gt; S_KUNNR FOR KUNNR-KUNNR,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Customer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear kna1.&lt;/P&gt;&lt;P&gt;  if not s_kunnr is initial.&lt;/P&gt;&lt;P&gt;    select kunnr from kna1 up to 1 rows&lt;/P&gt;&lt;P&gt;           into kna1-kunnr&lt;/P&gt;&lt;P&gt;           where kunnr in s_kunnr.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      message e014.    " Invalid Customer Number&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear t001w.&lt;/P&gt;&lt;P&gt;  if not s_werks is initial.&lt;/P&gt;&lt;P&gt;    select werks from t001w up to 1 rows&lt;/P&gt;&lt;P&gt;           into t001w-werks&lt;/P&gt;&lt;P&gt;           where werks in s_werks.&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      message e004.    " Invalid Plant Number&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084048#M432588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T07:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084049#M432589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav , &lt;/P&gt;&lt;P&gt;  Use the event AT SELECTION SCREE ON &amp;lt;Feild Name&amp;gt; for each selection screen element.&lt;/P&gt;&lt;P&gt;For each element perform the following checks.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1. Value has been entered
   IF &amp;lt;Feild_name &amp;gt; is initial.
      give error message.
  endif.
2. Valid value is entered
  Select single &amp;lt;feild&amp;gt;
  from &amp;lt;table&amp;gt;
  where &amp;lt;feild_t&amp;gt; = &amp;lt;feild_name&amp;gt;.
if sy-subrc = 0 .
* Give success message
else
* Give error message
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084049#M432589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T07:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084050#M432590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can make all the parameters mandatory by using the OBLIGATORY option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using AT SELECTION-SCREEN ON S_MATNR-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can validate the values and print the messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it it may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ravi Kumar Gunda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084050#M432590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T07:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084051#M432591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. if u want to enter values in all the screen fields, then make them as obligatory fields... it will take care of the message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont want any of the field as required field, then write code in AT SELECTION-SCREEN event... if S_MATNR[] is initial and S_WERKS[] is initial .... then raise the error message "enter values"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 &amp;amp; 3. You can Validate the fields individually by using AT SELECTION-SCREEN on &amp;lt;field&amp;gt; or you can define the block for a group of fields and then validate them by using AT SELECTION-SCREEN ON BLOCK &amp;lt;Block_name&amp;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;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 08:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084051#M432591</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2007-04-05T08:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084052#M432592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply can u plz give the exact syntax of "BLOCK" using statement&lt;/P&gt;&lt;P&gt;&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, 05 Apr 2007 08:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084052#M432592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T08:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084053#M432593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;for block u can use this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK B1WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_kunnr FOR kan1-kunnr OBLIGATORY.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_matnr LIKE mara-matnr OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Zarina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 08:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084053#M432593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T08:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084054#M432594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS sel_opt1 FOR field1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK block1.&lt;/P&gt;&lt;P&gt;PARAMETERS:  test1(10) TYPE c,&lt;/P&gt;&lt;P&gt;             test2(10) TYPE c.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK block1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON BLOCK block1.&lt;/P&gt;&lt;P&gt;  MESSAGE i888 WITH 'AT SELECTION-SCREEN'&lt;/P&gt;&lt;P&gt;                    'ON BLOCK BLOCK1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the demo program &amp;lt;b&amp;gt;demo_selection_screen_events&amp;lt;/b&amp;gt; for more details.&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;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 08:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084054#M432594</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2007-04-05T08:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Validation at selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084055#M432595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnaks everybody my question is answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 03:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-at-selection-screen/m-p/2084055#M432595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T03:31:43Z</dc:date>
    </item>
  </channel>
</rss>

