<?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 error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344740#M517170</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;u have to write all your validations at AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;u can valdate a single field or no.of. fileds based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_group like [salesgroup name].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen. [ for no of fields]&lt;/P&gt;&lt;P&gt; if p_group NE 'C01'.&lt;/P&gt;&lt;P&gt;     message E000 with 'NTER ONLY C01 materials'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for single field in selection screen then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen on fldname. [ for single field]&lt;/P&gt;&lt;P&gt; if p_group NE 'C01'.&lt;/P&gt;&lt;P&gt;     message E000 with 'NTER ONLY C01 materials'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward soem points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suersh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 10:04:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-08T10:04:41Z</dc:date>
    <item>
      <title>selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344732#M517162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report.In the selection screen,In the sales group field , I should enter only C01 , If i give C02 or other input, the system should show a error message. Please help me with sample &amp;amp; simple code, because i am a functional consultant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;MSReddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344732#M517162</guid>
      <dc:creator>sridhar_muthekepalli3</dc:creator>
      <dc:date>2007-06-08T09:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344733#M517163</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;Do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELCTION-SCREEN ON P_VKGRP.
IF P_VKGRP NE 'C01'.
ERROR MESSAGE.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344733#M517163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344734#M517164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar , &lt;/P&gt;&lt;P&gt; Here is the sample code for the same&lt;/P&gt;&lt;P&gt;If the selection screen feild name is p_VKGRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt; IF P_VKGRP NE 'C01'.&lt;/P&gt;&lt;P&gt;   MESSAGE E001.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here E001 is the error message you want to diaplay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign points if helpful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344734#M517164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344735#M517165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;If p_sgroup ne 'C01'.&lt;/P&gt;&lt;P&gt;Message e000(zz) with 'Please Enter C01'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344735#M517165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344736#M517166</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;AT SELCTION-SCREEN ON P_SALGRP.&lt;/P&gt;&lt;P&gt;IF P_SALGRP NE 'C01'.&lt;/P&gt;&lt;P&gt;MESSAGE E001(MESSAGE CLASS).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344736#M517166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344737#M517167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;if parameter NE 'CO1'.&lt;/P&gt;&lt;P&gt;message e001(message class)."sales group should be co1.&lt;/P&gt;&lt;P&gt;exit.&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 points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344737#M517167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344738#M517168</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;at selection-screen output.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name eq 'S_SALES'.&lt;/P&gt;&lt;P&gt;if S_slaes NE 'C01'.&lt;/P&gt;&lt;P&gt;message e001.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you have to create one text element by double clickling on e001. you can give messge you want to display there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344738#M517168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344739#M517169</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;&lt;/P&gt;&lt;P&gt;we can write logic for that one in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: var type &amp;lt;sales group field&amp;gt;  value C01.
at selection-screen.
if var ne &amp;lt;sales group field&amp;gt;.
**here write error message using write statement
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;AshokReddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 10:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344739#M517169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T10:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344740#M517170</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;u have to write all your validations at AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;u can valdate a single field or no.of. fileds based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_group like [salesgroup name].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen. [ for no of fields]&lt;/P&gt;&lt;P&gt; if p_group NE 'C01'.&lt;/P&gt;&lt;P&gt;     message E000 with 'NTER ONLY C01 materials'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for single field in selection screen then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen on fldname. [ for single field]&lt;/P&gt;&lt;P&gt; if p_group NE 'C01'.&lt;/P&gt;&lt;P&gt;     message E000 with 'NTER ONLY C01 materials'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward soem points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suersh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 10:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344740#M517170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T10:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344741#M517171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;parameters : p_vkorg like vbak-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_vkorg ne 'C01'.&lt;/P&gt;&lt;P&gt;message 'Please enter C01 in sales org' 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;strat-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 10:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344741#M517171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T10:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344742#M517172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELCTION-SCREEN ON &amp;lt;FIeld name&amp;gt;.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i.e in which field you are entering C01&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF &amp;lt;FIeld name&amp;gt; NE 'C01'.&lt;/P&gt;&lt;P&gt;MESSAGE E000(MU) WITH 'Sales group cannot be other than C01'..&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;Write the above code before start-of-selection in your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.. If not send you code I will modify and send it back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 10:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344742#M517172</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-06-08T10:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344743#M517173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 06:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-error-message/m-p/2344743#M517173</guid>
      <dc:creator>sridhar_muthekepalli3</dc:creator>
      <dc:date>2009-04-20T06:07:40Z</dc:date>
    </item>
  </channel>
</rss>

