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

Function Module to display error message

PedroLima04
Explorer
0 Likes
543

Hello!
I need a FUNCTION MODULE to display a Error Message and cancel or abort a process.
Like POPUP_TO_INFORM, but the POPUP must cancel the rest of the program or transaction.
Can someone help me please?

View Entire Topic
Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,

why do you think that you need Function Module for that?

You can use simple ABAP => MESSAGE command and then handle the process cancelation. The cancelation depends on which process you need to cancel / abort. There are many ways to do it and there is no one way which fits all. Tips: think about exception handling, logging error, possible rollback etc...

PedroLima04
Explorer
0 Likes
Hi!! For my case, i cannot use the ABAP => MESSAGE. Is there any Function Module the does the same as message type 'E' or type 'A'?