<?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: Monitor - messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145581#M452553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to see this message MESSAGE s000(rsqbw) somewhere? I am right if I say that it makes no sense for me to use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about my third question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2007 12:47:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-18T12:47:40Z</dc:date>
    <item>
      <title>Monitor - messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145579#M452551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;Can anyone please explain me what happens in the following ABAP code. I'm interested in posting a message when sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More specific:&lt;/P&gt;&lt;P&gt;- what does this statement do: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE s000(rsqbw)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- what does the monitor fragment do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
            CLEAR MONITOR.
            MONITOR-msgno = '000'.
            MONITOR-msgid = 'RSQBW'.
            MONITOR-msgty = 'S'.
            MONITOR-msgv1 = mesT1.
            MONITOR-msgv2 = ' - '.
            MONITOR-msgv3 = mesT0.
            collect MONITOR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- do I have to take the comment "Message fails the activation" serious?&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;CODE**************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;
       CASE sy-subrc.
          WHEN 0.
             .... bla bla bla....
          WHEN 4.

            DATA mesT1 TYPE c LENGTH 255.
            DATA mesT0 TYPE c LENGTH 255.
            CONCATENATE 'VSC: No exchange rate'
            m_currency 'to' xcurrency 'on'
            price_date 'in M rate'
            INTO mesT1 SEPARATED BY ' '.

            CONCATENATE 'Billing doc:'
            comm_structure-bill_num ' Item : '
            comm_structure-bill_item INTO mesT0.

            MESSAGE s000(rsqbw) WITH mesT0.
            MESSAGE s000(rsqbw) WITH mesT1.

*   Message fails the activation. Don't use without testing.
            CLEAR MONITOR.
            MONITOR-msgno = '000'.
            MONITOR-msgid = 'RSQBW'.
            MONITOR-msgty = 'S'.
            MONITOR-msgv1 = mesT1.
            MONITOR-msgv2 = ' - '.
            MONITOR-msgv3 = mesT0.
            collect MONITOR.
        ENDCASE.
      ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, regards&lt;/P&gt;&lt;P&gt;Torben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 12:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145579#M452551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T12:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor - messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145580#M452552</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;&amp;lt;b&amp;gt;MESSAGE s000(rsqbw)  gives success message 000 defined in  message class rsqbw&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Use of monitor&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tool to record events triggered by system classes during program execution. Called via transaction code SRTM. &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;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 12:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145580#M452552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T12:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor - messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145581#M452553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to see this message MESSAGE s000(rsqbw) somewhere? I am right if I say that it makes no sense for me to use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about my third question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 12:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145581#M452553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor - messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145582#M452554</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 are talking about General  Program messages which are in SE91 or EDI messages monitoring?&lt;/P&gt;&lt;P&gt;Anyhow &lt;/P&gt;&lt;P&gt;Messages will help us to know the correct process that is happening/happened in the program.&lt;/P&gt;&lt;P&gt;We create a Message class in SE91 and in the program in the report Name we give that MESSAGE-ID ZX and trigger the messages based on some condition &lt;/P&gt;&lt;P&gt;using &lt;/P&gt;&lt;P&gt;Message E000 with &amp;lt;message&amp;gt;&lt;/P&gt;&lt;P&gt;As you know there are different types of messages like W,E,A,I,S etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 12:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145582#M452554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T12:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor - messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145583#M452555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to make it possible to track if sy-subrc is 4.&lt;/P&gt;&lt;P&gt;Would you prefer the monitor og the message class then (please tell me why)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 12:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145583#M452555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T12:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor - messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145584#M452556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closing the question..... some questions unanswered.... therefore rewards where "helpfull answers"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help guys - have a nice weekend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2007 07:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145584#M452556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-21T07:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor - messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145585#M452557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see my last comment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2007 07:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/monitor-messages/m-p/2145585#M452557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-21T07:53:55Z</dc:date>
    </item>
  </channel>
</rss>

