cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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

0 Likes
View Entire Topic
Former Member
0 Likes

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