<?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: messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389988#M813982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here is the answer for your Q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_qmnum FOR qmel-qmnum OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;validation of qmnum&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON so_qmnum.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM qmel WHERE qmnum IN so_qmnum.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e100(ztest) WITH so_qmnum-low.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; message class is  nothing but where it stores all the messages ranging from 000 to 999. if you want to create message class go to SE91 and enter some message class name then press F5 then proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venkata prasad on Feb 15, 2008 9:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2008 08:21:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-15T08:21:21Z</dc:date>
    <item>
      <title>messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389983#M813977</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;can any one please send me the sample code how to use messages in a report.&lt;/P&gt;&lt;P&gt;if in the selection screen we enter invalid details it should display a message as enter valid details.&lt;/P&gt;&lt;P&gt;what is a message class. where do we create. what is its purpose please explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we have bukrs and belnr in selection screen if we enter invalid details it should display as enter valid belnr and enter valid bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please send me sample report having these functionalities.&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, 15 Feb 2008 07:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389983#M813977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T07:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389984#M813978</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 can attain this functionality using text elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.: IF BUKRS NE '1000'.&lt;/P&gt;&lt;P&gt;        MESSAGE S(001). "use of text symbol&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give a message in the Status bar of your screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To write the text of this text symbol, in the window where you write your report program, go to the menu bar and proceed as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go To -&amp;gt; Text Elements -&amp;gt; Text Symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find a page you must input a number like '001', etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example, corresponding text "Company Code is Invalid" according to 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click 'Save' and Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run the report program, if the condition arises, message will be displayed in the Status Bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prosenjit chaudhuri on Feb 15, 2008 9:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 07:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389984#M813978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389985#M813979</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;The ABAP statement MESSAGE triggers a standard message dialog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message classes are Repository objects that contain the texts for message dialogs. These texts can be&lt;/P&gt;&lt;P&gt;translated and are displayed in the logon language. Each message text is assigned to a message class&lt;/P&gt;&lt;P&gt;and given a three-digit identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To trigger a message dialog in a program, enter the MESSAGE statement with the following additions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID '&amp;lt;message class&amp;gt;' - the message class&lt;/P&gt;&lt;P&gt;NUMBER '&amp;lt;number&amp;gt;' the message number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display the message text for a MESSAGE statement in a program's source code, double-click the&lt;/P&gt;&lt;P&gt;message number to navigate the associated message class texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A --Termination Processing is terminated; the user must restart the transaction&lt;/P&gt;&lt;P&gt;X --Exit Like a termination message, but with short dump MESSAGE_TYPE_X&lt;/P&gt;&lt;P&gt;E --Error Runtime behavior depends on context&lt;/P&gt;&lt;P&gt;W --Warning Runtime behavior depends on context&lt;/P&gt;&lt;P&gt;I --Information Processing is interrupted, the message is displayed in a dialog box and&lt;/P&gt;&lt;P&gt;the program continues when the message has been confirmed with&lt;/P&gt;&lt;P&gt;ENTER.&lt;/P&gt;&lt;P&gt;S --Set The message appears in the status bar on the next screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID '&amp;lt;message class&amp;gt;' NUMBER &amp;lt;message number&amp;gt;&lt;/P&gt;&lt;P&gt;WITH &amp;lt;var1&amp;gt; &amp;lt;var2&amp;gt; &amp;lt;var3&amp;gt; &amp;lt;var4&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this is helpful, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 08:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389985#M813979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T08:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389986#M813980</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;To create a new message class from the ABAP Editor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initial statement (for example, REPORT) or directly in the statement MESSAGE ID &amp;lt;id&amp;gt; enter a parameter value of up to 20 characters as a message ID, for example: &lt;/P&gt;&lt;P&gt;REPORT &amp;lt;name&amp;gt; MESSAGE-ID &amp;lt;message class&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages are stored system-wide. The chosen message ID (message class) must not already exist in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double-click the message ID. &lt;/P&gt;&lt;P&gt;If you enter an ID that already exists in the system, the system calls up Message maintenance. In this case, enter a different ID. Once you have done this, the system asks you whether you want to create a new message class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Yes. &lt;/P&gt;&lt;P&gt;The system calls up Message maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter a brief description of the class in Short text. &lt;/P&gt;&lt;P&gt;Choose Save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 08:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389986#M813980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T08:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389987#M813981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i dont know which bukrs the user is entering the how can i say BUKRE NE 1000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 08:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389987#M813981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T08:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389988#M813982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here is the answer for your Q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_qmnum FOR qmel-qmnum OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;validation of qmnum&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON so_qmnum.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM qmel WHERE qmnum IN so_qmnum.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e100(ztest) WITH so_qmnum-low.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt; message class is  nothing but where it stores all the messages ranging from 000 to 999. if you want to create message class go to SE91 and enter some message class name then press F5 then proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venkata prasad on Feb 15, 2008 9:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 08:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/messages/m-p/3389988#M813982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T08:21:21Z</dc:date>
    </item>
  </channel>
</rss>

