<?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 write error message? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325627#M796628</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 the below logic ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : var type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var ne &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;message e001(pn) with 'It is not in a range'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e000 :  e stands for error message.&lt;/P&gt;&lt;P&gt;s001 :  s stands for success message&lt;/P&gt;&lt;P&gt;w002 : w stands for warning message&lt;/P&gt;&lt;P&gt;a003 : a stands for abend message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if helpful.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt; Kiran Kumar.G.A&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;Have a Nice Day..&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2008 04:22:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-22T04:22:20Z</dc:date>
    <item>
      <title>How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325621#M796622</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;I have a question about how to write message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen, when user enter a customer code, if the records belong to the customer code has been deleted from internal table T. No data will come out.  I need to wite the message when the user enter an uneffected customer code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1,Where can I write the warnning message in my program.&lt;/P&gt;&lt;P&gt;2, How to write it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 00:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325621#M796622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T00:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325622#M796623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this lnik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaae335c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaae335c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 00:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325622#M796623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T00:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325623#M796624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, company is not selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT-SELECTION-SCREEN&lt;/STRONG&gt;   . &lt;/P&gt;&lt;P&gt;IF P_CO = ' '. &lt;/P&gt;&lt;P&gt;message W016(pn) with 'COMPANY NOT SELECTED'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 00:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325623#M796624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T00:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325624#M796625</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;   Write the error message in AT SELECTION-SCREEN ON FIELD event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex;  PARAMETERS:  P_BUKRS  type  BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON  p_bukrs.&lt;/P&gt;&lt;P&gt;IF  p_bukrs &amp;lt;&amp;gt; '7570'.&lt;/P&gt;&lt;P&gt;    MESSAGE w208(00) WITH 'In correct Company code'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 01:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325624#M796625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T01:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325625#M796626</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;Thanky you for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question is that the program is using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET knb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET bsid."INS MG050706&lt;/P&gt;&lt;P&gt;  CHECK bsid-budat &amp;lt;= dd_stida.&lt;/P&gt;&lt;P&gt;  CHECK bsid-augdt = '00000000' OR bsid-augdt &amp;gt; dd_stida.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I write the error message when the records of bsid-kunnr the user enter in the selection screen  has been deleted in the internal table T?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325625#M796626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325626#M796627</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;   You mean, how to display message after deleting the data from internal table based on kunnr.&lt;/P&gt;&lt;P&gt;If my understanding is correct, check the below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab where kunnr = p_kunnr.(selection screen kunnr)&lt;/P&gt;&lt;P&gt;    Delete itab.&lt;/P&gt;&lt;P&gt;    flag = 'X'.  (to know whether atleast 1 record has been deleted or not)&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If flag = 'X'.&lt;/P&gt;&lt;P&gt;   MESSAGE I208(00) WITH 'Customer code records are deleted'.&lt;/P&gt;&lt;P&gt;(In start-of-selection, if you want to display the error message and stop the process, i.e., going back to selection screen, then dont use 'E' for error message, use 'I' or 'W' and use 'STOP' statement after message display.)&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 02:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325626#M796627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T02:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325627#M796628</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 the below logic ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : var type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var ne &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;message e001(pn) with 'It is not in a range'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e000 :  e stands for error message.&lt;/P&gt;&lt;P&gt;s001 :  s stands for success message&lt;/P&gt;&lt;P&gt;w002 : w stands for warning message&lt;/P&gt;&lt;P&gt;a003 : a stands for abend message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if helpful.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt; Kiran Kumar.G.A&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;Have a Nice Day..&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 04:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325627#M796628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T04:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to write error message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325628#M796629</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;Example  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-batch = space.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;textline1 = p_mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;MESSAGE E899(bd) WITH p_mess.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  points if it is useful...&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 04:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-error-message/m-p/3325628#M796629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T04:24:58Z</dc:date>
    </item>
  </channel>
</rss>

