<?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: selection screen validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993079#M404885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can the selection screen validations through either AT SELECTION-SCREEN or AT SELECTION-SCREEN ON &amp;lt;FIELD&amp;gt; eveent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_EBELN TYPE EKKO-EBELN.

AT SELECTION-SCREEN ON P_EBELN.
DATA V_EBELN TYPE EKKO-EBELN.
SELECT SINGLE EBELN
FROM EKKO
INTO V_EBELN
WHERE EBELN = P_EBELN.
IF V_EBELN IS INITIAL.
MESSAGE E000(ZI) 'No PO exists with this number, Plz try again'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2007 19:39:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-26T19:39:29Z</dc:date>
    <item>
      <title>selection screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993076#M404882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a selection screen field PO, where in when i give any po numner.it should accept when that po exist or else should throw some error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 18:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993076#M404882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T18:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993077#M404883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON PO.
  SELECT COUNT(*) FROM EKKO
  WHERE EBELN = PO. 
IF sy-subrc &amp;lt;&amp;gt; 0.
  MESSAGE Exxx(xx=?
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 18:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993077#M404883</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-03-26T18:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993078#M404884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tara,&lt;/P&gt;&lt;P&gt;WelCome to the this FORUMS...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its simple as Raymond says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on &amp;lt;b&amp;gt;s_po&amp;lt;/b&amp;gt;. " (PO field defined on screen)&lt;/P&gt;&lt;P&gt;select.....&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;error mssg.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event (AT SELECTION-SCREEN on &amp;lt;b&amp;gt;s_po&amp;lt;/b&amp;gt;. )is assigned to the selection screen fields corresponding to the report parameter or selection criterion s_po. &lt;/P&gt;&lt;P&gt;If the report starts an error dialog at this point, precisely these fields become ready for input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 19:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993078#M404884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T19:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993079#M404885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can the selection screen validations through either AT SELECTION-SCREEN or AT SELECTION-SCREEN ON &amp;lt;FIELD&amp;gt; eveent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_EBELN TYPE EKKO-EBELN.

AT SELECTION-SCREEN ON P_EBELN.
DATA V_EBELN TYPE EKKO-EBELN.
SELECT SINGLE EBELN
FROM EKKO
INTO V_EBELN
WHERE EBELN = P_EBELN.
IF V_EBELN IS INITIAL.
MESSAGE E000(ZI) 'No PO exists with this number, Plz try again'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 19:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-validations/m-p/1993079#M404885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T19:39:29Z</dc:date>
    </item>
  </channel>
</rss>

