<?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: validating field on  selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722666#M631650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Validation is the process to check whether the input in the selection screen is valid or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For vkorg field validation please refer the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Validate Customer No.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_vkorg.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM tvko WHERE vkorg = p_vkorg.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e041 WITH 'Enter valid Sales Organization.'.&lt;/P&gt;&lt;P&gt;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LIJO JOHN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 13:05:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T13:05:49Z</dc:date>
    <item>
      <title>validating field on  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722663#M631647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wht is the meaning of validation&lt;/P&gt;&lt;P&gt;how to validate a particular field on selection screen&lt;/P&gt;&lt;P&gt;suppose parameters:p_vkorg like vbak-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to validate p_vkorg.&lt;/P&gt;&lt;P&gt;pz give me coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 12:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722663#M631647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T12:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: validating field on  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722664#M631648</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;Validation means check whether the value exist in the table or not.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE vkorg&lt;/P&gt;&lt;P&gt;    INTO l_vkorg&lt;/P&gt;&lt;P&gt;    FROM vbak&lt;/P&gt;&lt;P&gt;    WHERE vkorg EQ p_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ...&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 12:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722664#M631648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T12:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: validating field on  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722665#M631649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validation means "checking whether the input which u are gining to the selection secreen is valid or not". means...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets take your example only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:p_vkorg like vbak-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in selection screen you will give inout in that parameter.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;users can give any input... lets suppose I'll give input as ABC... which is not in the table VBAK. No need to excute the code once we came to know that the input is not there in the table. So we will do validation like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_vkorg.&lt;/P&gt;&lt;P&gt;select * from vbak where vkorg = p+vkorg. " This is the case with Parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_vkorg.&lt;/P&gt;&lt;P&gt;Select * from vbak where vkorg = p+vkorg. " This is the case with Selct-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the input that u r giving is present in the table... the above stmt will execute successfully, otherwise not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of System variable SY-SUBRC and you can go ahead with ur coding...&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;Regards&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sasidhar Reddy Matli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722665#M631649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: validating field on  selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722666#M631650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Validation is the process to check whether the input in the selection screen is valid or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For vkorg field validation please refer the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Validate Customer No.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON p_vkorg.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM tvko WHERE vkorg = p_vkorg.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e041 WITH 'Enter valid Sales Organization.'.&lt;/P&gt;&lt;P&gt;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LIJO JOHN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 13:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-field-on-selection-screen/m-p/2722666#M631650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T13:05:49Z</dc:date>
    </item>
  </channel>
</rss>

