Reputation: 541
I would like to know if there's an ABAP command which will mimic exit 1(in shell scripting), which will abort?
Upvotes: 1
Views: 4853
Reputation: 1301
If you want to end silently a program, check @Gert Beukema's answer. If the exit's cause is an error, to instantly abort a program can be achieved by giving a message with type 'A' or 'X' (or E if it's in a right place).
'A' is for Abort:
It provides information about processing errors but the processing cannot be resumed.
'X' is for Exit:
It provides no processing information, but rather, a stack dump for the state of the system.
More information can be found on this page
Upvotes: 4
Reputation: 2565
STOP, RETURN or EXIT depending on the scenario.
PS. links go to relevant SAP help.
Upvotes: 5