Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

alternative for error message

JayantkumarS
Participant
0 Likes
775

Hi Experts,

I have a situation like this, for a particular condition error message is being implemented and its working fine.

General functionlaity of Error message is it stops the process and abends.

my requirement is error message should come and it should not Abend, is this possible or i have to use information / warnign message.

regards,

jayant.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
689

try this:

if syst-subrc NE 0.
  MESSAGE S000 with 'Custom Error Message'.
endif.

Cheers,

Pritam

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
689

check with display like

message 'No entries found' TYPE 'E' display like 'I'.

Where are you using a error message? This is to be cinsidered.

Edited by: Keshav.T on Jan 13, 2010 9:46 PM

Read only

guilherme_frisoni
Contributor
0 Likes
689

Hi,

you could try:


MESSAGE s001 WITH 'Text' DISPLAY LIKE 'E'.
EXIT.

Will no abend or stop you process.

Regards,

Frisoni

Read only

Former Member
0 Likes
689

Hi ,

Try this ,

message ....... type S

display like e.

Leave list processing.

Hope this resolves your issue.

Read only

Former Member
0 Likes
690

try this:

if syst-subrc NE 0.
  MESSAGE S000 with 'Custom Error Message'.
endif.

Cheers,

Pritam