on ‎2006 Apr 18 11:04 AM - last edited on ‎2024 Feb 03 9:04 PM by postmig_api_4
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,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 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.