2007 Apr 18 1:27 PM
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
2007 Apr 18 1:40 PM
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>
2007 Apr 18 1:47 PM
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?
2007 Apr 18 1:50 PM
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
2007 Apr 18 1:58 PM
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)?
2007 Apr 21 8:53 AM
Closing the question..... some questions unanswered.... therefore rewards where "helpfull answers"
thanks for the help guys - have a nice weekend.
2007 Apr 21 8:53 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |