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

Error message behaving like Abort Message

Former Member
0 Likes
3,316

Hi,

In my program code , there is a error message written, but when this error message is triggered it is displayed as ABORT message and it is skipping the transaction.


  SORT zt5.
  READ TABLE zt5 INDEX 1.

  IF sy-subrc <> '0'.
    MESSAGE e208 WITH 'No tiene vistas autorizadas'.
  ENDIF.

Could any one tell the reason why it is happening.

Regards

Prasanth Kasturi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,176

Hi Kasturi,

if you issue a ERROR message in "PBO/ AT SELECTION-SCREEN OUTPUT it behaves like ABORT message.
if it is of type "WARNING/INFORMATION then it behaves
 as "SUCCESS message(On the Status BAR)

Hope this would clear the concept of MESSAGE types. For more info Take F1 Help on MESSAGE Key word

Cheerz

Ram

8 REPLIES 8
Read only

former_member194669
Active Contributor
0 Likes
2,176

is it report program or module pool ?

a®

Read only

0 Likes
2,176

Hi,

It is a Report Program.

I do not want an alternative,I wanted to know why the system is behaving in this manner.

Are there any settings that can be changed

Regards

Read only

0 Likes
2,176

Okay check whether do you giving error message in event AT SELECTION-SCREEN OUTPUT if yes change from that event

a®

Read only

0 Likes
2,176

Have you written your message statement under AT SELECTION-SCREEN EVENT

Read only

Former Member
0 Likes
2,176

Try this way:

MESSAGE i000 DISPLAY LIKE 'E' WITH 'No tiene vistas autorizadas'

Read only

Former Member
0 Likes
2,176

I think thats how error messages behave. You might try something like this if you want the transaction to be called after the error message


  SORT zt5.
  READ TABLE zt5 INDEX 1.
 
  IF sy-subrc  '0'.
    MESSAGE 'No tiene vistas autorizadas' TYPE 'S' DISPLAY LIKE 'E'.
    EXIT.
  ENDIF.

Vikranth

Read only

Former Member
0 Likes
2,177

Hi Kasturi,

if you issue a ERROR message in "PBO/ AT SELECTION-SCREEN OUTPUT it behaves like ABORT message.
if it is of type "WARNING/INFORMATION then it behaves
 as "SUCCESS message(On the Status BAR)

Hope this would clear the concept of MESSAGE types. For more info Take F1 Help on MESSAGE Key word

Cheerz

Ram

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,176

Just to support the suggestion given by aRs -

Goto the program demo_messages

choose the options

called from selection screen

Message type Error

Triggered in PBO

and hit execute button