<?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: How to give error message while saving in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469253#M1252633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will use &lt;STRONG&gt;at selection screen&lt;/STRONG&gt; event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection- screen.

if not p_1 is initial.
    if not p_2 is initial or if not p_3 is initial or if not p_4 is initial.
         error message...
    endif.
endif.
     
if not p_2 is initial.
    if not p_1 is initial or if not p_3 is initial or if not p_4 is initial.
         error message...
    endif.
endif.
,,,,,,
,,,,,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2009 04:00:31 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-04-17T04:00:31Z</dc:date>
    <item>
      <title>How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469252#M1252632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have four input fields,I want to restrict the user from entering in more than one field.If it is so i have to give error message while saving saying that he should not enter in more than one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 03:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469252#M1252632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T03:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469253#M1252633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will use &lt;STRONG&gt;at selection screen&lt;/STRONG&gt; event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection- screen.

if not p_1 is initial.
    if not p_2 is initial or if not p_3 is initial or if not p_4 is initial.
         error message...
    endif.
endif.
     
if not p_2 is initial.
    if not p_1 is initial or if not p_3 is initial or if not p_4 is initial.
         error message...
    endif.
endif.
,,,,,,
,,,,,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469253#M1252633</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-17T04:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469254#M1252634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;You can achieve this with foloowing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_a TYPE c,
            p_b TYPE c,
            p_c TYPE c,
            p_d TYPE c.
DATA : flag TYPE i VALUE 0.

AT SELECTION-SCREEN.
  IF p_a IS NOT INITIAL.
    flag = flag + 1.
  ENDIF.
  IF p_b IS NOT INITIAL.
    flag = flag + 1.
  ENDIF.

  IF p_c IS NOT INITIAL.
    flag = flag + 1.
  ENDIF.

  IF p_d IS NOT INITIAL.
    flag = flag + 1.
  ENDIF.
  IF flag &amp;gt; 1.
    MESSAGE e000(00) WITH 'No input in more than 1 fields'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469254#M1252634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469255#M1252635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also check for each selection field that it is filled or not??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If more than one is NOT INITIAL. Give the error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469255#M1252635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469256#M1252636</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;PARAMETERS: p_a TYPE c,&lt;/P&gt;&lt;P&gt;                        p_b TYPE c.&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 SY-UCOMM = 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CLEAR FLAG.  "OTHER WISE FOR EVERY INPUT GET INCREMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF p_a IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;       flag = flag + 1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   IF p_b IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      flag = flag + 1.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF flag &amp;gt; 1.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(00) WITH 'No input in more than 1 fields'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469256#M1252636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469257#M1252637</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;In AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;if p1_a is not initial. &lt;/P&gt;&lt;P&gt;and if p1_b is not initial and if p1_c is not initial and ....&lt;/P&gt;&lt;P&gt;dispaly the error message&lt;/P&gt;&lt;P&gt;MESSAGE 'You have entered more than one text box. Enter only one' TYPE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the rest of the text boxes also &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469257#M1252637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469258#M1252638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks mansi...solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469258#M1252638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to give error message while saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469259#M1252639</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 two ways one is after enter one value u can disable the other fields ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else  u can check each field in  AT selection-screen event ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and u can give proper message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 04:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-error-message-while-saving/m-p/5469259#M1252639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T04:27:44Z</dc:date>
    </item>
  </channel>
</rss>

