‎2010 May 10 10:01 AM
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
‎2010 May 10 10:15 AM
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
‎2010 May 10 10:04 AM
‎2010 May 10 10:13 AM
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
‎2010 May 10 10:19 AM
Okay check whether do you giving error message in event AT SELECTION-SCREEN OUTPUT if yes change from that event
a®
‎2010 May 10 10:25 AM
Have you written your message statement under AT SELECTION-SCREEN EVENT
‎2010 May 10 10:06 AM
Try this way:
MESSAGE i000 DISPLAY LIKE 'E' WITH 'No tiene vistas autorizadas'
‎2010 May 10 10:07 AM
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
‎2010 May 10 10:15 AM
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
‎2010 May 10 10:23 AM
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