<?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 Displaying error message while entering selection screen fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068975#M1177773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: don't offer points&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;hi experts...&lt;/P&gt;&lt;P&gt;i generated a report.&lt;/P&gt;&lt;P&gt;in that report, the selection screen fields are plant and material type..&lt;/P&gt;&lt;P&gt;now my rqmt  is like this :&lt;/P&gt;&lt;P&gt;if user enters any plant except '8210' in  the selection screen, then a pop up should appear like.. enter 8210 plant only, and the cursor should remain in the same screen allowing user to enter correct plant.&lt;/P&gt;&lt;P&gt;and then same with the case of material type also..user should enter 'mcfe' material type only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im using message classes like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so_bwkey-low ne '8210' or so_bwkey-high ne '8210'.&lt;/P&gt;&lt;P&gt;  message i000(zts).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;if so_mtart-low is not initial and so_mtart-high is not initial and so_mtart-low ne 'mcfe' &lt;/P&gt;&lt;P&gt;   or so_mtart-high ne 'mcfe'.&lt;/P&gt;&lt;P&gt;  message i001(zts).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this logic, when i enter plant..it is prompting &lt;/P&gt;&lt;P&gt;1) enter plant 8210 only..&lt;/P&gt;&lt;P&gt;and then when i press enter key it is again prompting&lt;/P&gt;&lt;P&gt;2)enter material type mcfe only..&lt;/P&gt;&lt;P&gt;but iam not entering material type here..&lt;/P&gt;&lt;P&gt;i want to get 2nd error message if and only if i enter material type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me regarding this issue..&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;text removed&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;harini.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Feb 9, 2009 10:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 05:24:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T05:24:10Z</dc:date>
    <item>
      <title>Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068975#M1177773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: don't offer points&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;hi experts...&lt;/P&gt;&lt;P&gt;i generated a report.&lt;/P&gt;&lt;P&gt;in that report, the selection screen fields are plant and material type..&lt;/P&gt;&lt;P&gt;now my rqmt  is like this :&lt;/P&gt;&lt;P&gt;if user enters any plant except '8210' in  the selection screen, then a pop up should appear like.. enter 8210 plant only, and the cursor should remain in the same screen allowing user to enter correct plant.&lt;/P&gt;&lt;P&gt;and then same with the case of material type also..user should enter 'mcfe' material type only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im using message classes like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so_bwkey-low ne '8210' or so_bwkey-high ne '8210'.&lt;/P&gt;&lt;P&gt;  message i000(zts).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;if so_mtart-low is not initial and so_mtart-high is not initial and so_mtart-low ne 'mcfe' &lt;/P&gt;&lt;P&gt;   or so_mtart-high ne 'mcfe'.&lt;/P&gt;&lt;P&gt;  message i001(zts).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this logic, when i enter plant..it is prompting &lt;/P&gt;&lt;P&gt;1) enter plant 8210 only..&lt;/P&gt;&lt;P&gt;and then when i press enter key it is again prompting&lt;/P&gt;&lt;P&gt;2)enter material type mcfe only..&lt;/P&gt;&lt;P&gt;but iam not entering material type here..&lt;/P&gt;&lt;P&gt;i want to get 2nd error message if and only if i enter material type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me regarding this issue..&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;text removed&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;harini.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Feb 9, 2009 10:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068975#M1177773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068976#M1177774</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;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION0-SCREEN ON p_plant .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET CURSOR FIELD 'P_PALNT'  after the Message statrment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly use for Material type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068976#M1177774</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2009-02-09T05:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068977#M1177775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use Error type message in SELECTION SCREEN EVENT.It will place the cursor in the relevant Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At SELECTION-SCREEN ON SO_BWKEY-Low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so_bwkey-low ne '8210' .&lt;/P&gt;&lt;P&gt;message E000(zts).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At SELECTION-SCREEN ON SO_BWKEY-HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  so_bwkey-high ne '8210'.&lt;/P&gt;&lt;P&gt;message E000(zts).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At SELECTION-SCREEN ON so_mtart-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so_mtart-low is not initial and  so_mtart-low ne 'mcfe' .&lt;/P&gt;&lt;P&gt;message E001(zts).&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;At SELECTION-SCREEN ON so_mtart-HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so_mtart-high is not initial  &lt;/P&gt;&lt;P&gt;and so_mtart-high ne 'mcfe'.&lt;/P&gt;&lt;P&gt;message E001(zts).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;This will resolve the issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068977#M1177775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068978#M1177776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use AT SELECTION-SCREEN ON FIELD event and write the code in this event. You have two selection screen fields here, so use two ON FIELD events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068978#M1177776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068979#M1177777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harini,&lt;/P&gt;&lt;P&gt;for your requirement, yu shouldn't use type I message, you should call a function module "POP&lt;STRONG&gt;UP&lt;/STRONG&gt;MESSAGE" ( search in se37 with this name ) , and you shud display the messageusing this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM is "POPUP_DISPLAY_MESSAGE"&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so_bwkey-low ne '8210' or so_bwkey-high ne '8210'.&lt;/P&gt;&lt;P&gt;message i000(zts).&lt;/P&gt;&lt;P&gt;STOP. &amp;lt;&amp;lt;&amp;lt;&amp;lt; check with STOP.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if so_mtart-low is not initial and so_mtart-high is not initial and so_mtart-low ne 'mcfe' &lt;/P&gt;&lt;P&gt;or so_mtart-high ne 'mcfe'.&lt;/P&gt;&lt;P&gt;message i001(zts).&lt;/P&gt;&lt;P&gt;STOP. &amp;lt;&amp;lt;&amp;lt;&amp;lt; check with STOP.&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;Regards,&lt;/P&gt;&lt;P&gt;NAveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naveen Deva on Feb 9, 2009 6:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068979#M1177777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068980#M1177778</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;There is an  event a t SELECTION-SCREEN OUTPUT, please use it  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068980#M1177778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068981#M1177779</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;If you require to move ahead only if the correct information is enetered, better used message type E rather then I. Becase in case of information message type when you press enter the processing continues after the message statement. that is why you receive the popup two times. Try something as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_werks.&lt;/P&gt;&lt;P&gt;if p_werks &amp;lt;&amp;gt; '8210'.&lt;/P&gt;&lt;P&gt;  message 'enter 8210 a plant' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_mtart.&lt;/P&gt;&lt;P&gt;if p_mtart &amp;lt;&amp;gt; 'INCFE'.&lt;/P&gt;&lt;P&gt;  message  '----' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the program will not proceed until correct information is not passed.&lt;/P&gt;&lt;P&gt;(Assumption is the input fields are parameters, just use the same logic as you are using if using select-options).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068981#M1177779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying error message while entering selection screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068982#M1177780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you every one for helping me in solving the issue..&lt;/P&gt;&lt;P&gt;it was solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 05:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-while-entering-selection-screen-fields/m-p/5068982#M1177780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T05:56:17Z</dc:date>
    </item>
  </channel>
</rss>

