Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Monitor - messages

Former Member
0 Likes
810

Hi experts

Can anyone please explain me what happens in the following ABAP code. I'm interested in posting a message when sy-subrc = 4.

More specific:

- what does this statement do:


MESSAGE s000(rsqbw)

- what does the monitor fragment do:


            CLEAR MONITOR.
            MONITOR-msgno = '000'.
            MONITOR-msgid = 'RSQBW'.
            MONITOR-msgty = 'S'.
            MONITOR-msgv1 = mesT1.
            MONITOR-msgv2 = ' - '.
            MONITOR-msgv3 = mesT0.
            collect MONITOR.

- do I have to take the comment "Message fails the activation" serious?

                                                              • CODE**************


       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.

Thanks in advance, regards

Torben

Hi experts

Can anyone please explain me what happens in the following ABAP code. I'm interested in posting a message when sy-subrc = 4.

More specific:

- what does this statement do:


MESSAGE s000(rsqbw)

- what does the monitor fragment do:


            CLEAR MONITOR.
            MONITOR-msgno = '000'.
            MONITOR-msgid = 'RSQBW'.
            MONITOR-msgty = 'S'.
            MONITOR-msgv1 = mesT1.
            MONITOR-msgv2 = ' - '.
            MONITOR-msgv3 = mesT0.
            collect MONITOR.

- do I have to take the comment "Message fails the activation" serious?

                                                              • CODE**************


       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.

Thanks in advance, regards

Torben

6 REPLIES 6
Read only

Former Member
0 Likes
774

hi

<b>MESSAGE s000(rsqbw) gives success message 000 defined in message class rsqbw</b>

<b>Use of monitor</b>

Tool to record events triggered by system classes during program execution. Called via transaction code SRTM.

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

0 Likes
774

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?

what about my third question?

Read only

Former Member
0 Likes
774

Hi,

You are talking about General Program messages which are in SE91 or EDI messages monitoring?

Anyhow

Messages will help us to know the correct process that is happening/happened in the program.

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

using

Message E000 with <message>

As you know there are different types of messages like W,E,A,I,S etc

reward if useful

regards,

Anji

Read only

0 Likes
774

I would like to make it possible to track if sy-subrc is 4.

Would you prefer the monitor og the message class then (please tell me why)?

Read only

0 Likes
774

Closing the question..... some questions unanswered.... therefore rewards where "helpfull answers"

thanks for the help guys - have a nice weekend.

Read only

Former Member
0 Likes
774

see my last comment