SAP STOP ABAP Statements
Get Example source ABAP code based on a different SAP table
ID STOP
• STOP
ABAP Statement STOP> Short Reference >
ABAP_SYNTAX
STOP.>
What does it do?
The statement STOP> is only to be used in executable programs> and in the following event blocks:
AT SELECTION-SCREEN>> (without additions)
START-OF-SELECTION>>
GET>>
These event blocks are exited immediately using STOP> and the runtime framework raises the event END-OF-SELECTION>.
Latest notes:
The statement STOP> is forbidden in methods and raises a uncatchable exception when processing dynpros> called using CALL SCREEN>>, during a LOAD-OF-PROGRAM>> event, and in programs not called using SUBMIT>>.
ABAP_HINT_END
Example ABAP Coding
Termination of the event block GET sbook> of the logical database> F1S>, after max> postings have been issued, and branching to END-OF-SELECTION>.
ABEXA 00691
ABAP_EXAMPLE_END
Runtime Exceptions
Non-catchable Exceptions
Reason for error:
The statement STOP> was executed outside the process flow for an executable program.
Runtime error:
STOP_NO_REPORT>
Reason for error:
The statement STOP> was executed during the process flow for a dynpro and therefore outside the allowed events.
Runtime error:
STOP_WITHIN_CALLED_DYNPRO>
ABAP_NONCAT_END
Return to menu