<?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: Validations in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055115#M969353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;            Thanks For your valuable answers.I have found the answer for my queiry&lt;/P&gt;&lt;P&gt;      AT SELECTION-SCREEN ON s_bukrs.&lt;/P&gt;&lt;P&gt;  IF NOT s_bukrs[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE  bukrs FROM bsid&lt;/P&gt;&lt;P&gt;     INTO s_bukrs&lt;/P&gt;&lt;P&gt;    WHERE bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e002.&lt;/P&gt;&lt;P&gt;  ELSEIF s_bukrs CA '*-/'.&lt;/P&gt;&lt;P&gt;    MESSAGE e002.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;And This code work. Thanks All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2008 05:00:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-03T05:00:15Z</dc:date>
    <item>
      <title>Validations in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055109#M969347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;             In the selection screen when no record is entered how to validate so that it should not go to output.&lt;/P&gt;&lt;P&gt;same for alpha numerical charecters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 03:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055109#M969347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T03:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055110#M969348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;AT SELECTION-SCREEN ON &amp;lt;fieldname&amp;gt;&lt;/STRONG&gt; Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 03:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055110#M969348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T03:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055111#M969349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunitha,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;     Try the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, the field is s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for checking the initial condition.&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Selection-Screen on s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_matnr[] is initial.&lt;/P&gt;&lt;P&gt;    message 'Enter the required fields' type E.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for alpha numeric characters.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; At selection-screen on s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if not s_matnr[] in sy-abcde.&lt;/P&gt;&lt;P&gt;    message 'Enter only characters' type E.&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 helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 03:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055111#M969349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T03:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055112#M969350</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 refer the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"TO check the values in the selection Screen.

parameter : sp_bukrs like bsis-bukrs.

at selection-screen.

if sp_bukrs is initial.
message ' Input value in the Company Code field' type 'E'.
endif.

"Similar u can use of Relational operators to check for alpah numeric characters.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 04:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055112#M969350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T04:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055113#M969351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the piece of code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK c1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_prog(30) TYPE c.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK c1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_prog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_prog IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE 'Enter Program name' TYPE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF NOT p_prog ca sy-abcde.&lt;/P&gt;&lt;P&gt;    MESSAGE 'Please enter charecters' TYPE 'E'.&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;for the first 'IF'  it checks whether the value enter or not.&lt;/P&gt;&lt;P&gt;for the second 'IF' it checks whether the entered values are alphanumeric or not. 'ca' indicates 'Contains Any'.Use 'ca'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Apan Kumar Motilal on Jul 3, 2008 6:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 04:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055113#M969351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T04:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055114#M969352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sunita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Selection-Screen on p_data.&lt;/P&gt;&lt;P&gt;if p_data is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message e000 text-001(error message) type 'E' Display like "I" .&lt;/P&gt;&lt;P&gt;(it will give pop up information messge )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave list-processing ." this will leave the further processing of the progam &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Kumar on Jul 3, 2008 6:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 04:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055114#M969352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T04:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055115#M969353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;            Thanks For your valuable answers.I have found the answer for my queiry&lt;/P&gt;&lt;P&gt;      AT SELECTION-SCREEN ON s_bukrs.&lt;/P&gt;&lt;P&gt;  IF NOT s_bukrs[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE  bukrs FROM bsid&lt;/P&gt;&lt;P&gt;     INTO s_bukrs&lt;/P&gt;&lt;P&gt;    WHERE bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e002.&lt;/P&gt;&lt;P&gt;  ELSEIF s_bukrs CA '*-/'.&lt;/P&gt;&lt;P&gt;    MESSAGE e002.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;And This code work. Thanks All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunita.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-selection-screen/m-p/4055115#M969353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T05:00:15Z</dc:date>
    </item>
  </channel>
</rss>

