Dear All,
I need to know a way in order to raise an error message in programme i.e when there is an error in the programme and if I run this program it should raise an error message.
With Regards,
Madhu.S.N
Request clarification before answering.
Hi Madhu,
The ABAP runtime environment handles messages according to the type declared in the MESSAGE statement and the context in which the message was sent. The following message types exist:
A - Abend : Transaction terminated
E - Error : Error message
I - Info : Information
S - Status : Status message
W - Warning : Correction possible
X - Exit : Transaction terminated with short dump
The message appears in a dialog box and the program terminates. When the user has confirmed the message, control returns to the next- highest area. All the internal sessions are deleted from the stack.
1) MESSAGE E0004(Message class) WITH 'Hugo'.
2) MESSAGE 'File not found.' TYPE 'E'.
The text 'File not found.' is output as the error
message.
Regards,
Shakuntala
Message was edited by: shakuntala Negi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.