cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

raising error message in a programme

Former Member
0 Likes
32,763

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

View Entire Topic
Former Member
0 Likes

Hi Madhu,

Following program will be useful to know how to display a message whenever the program encounters a error according to cortain condition.

data: z type i.

parameters: x type i,

y type i.

if x = space or y = space.

MESSAGE E000(ZVAI).

  • enter valuse in all required fields.

endif.

z = x + y.

write:/ 'The sum is ', z.

To select a message from a message class, you have to create a message class first and then samve some messages in that class using SE91.

Then in the program, to display the message between if and endif statements, click the PATTERN button and select the MESSAGE radio button and enter the required details there.

Hope this will be useful for you.

Regards,

Vaitheeswaran