Cannot Use STOP

The STOP statement is not allowed in ABAP Objects.

Error message in ABAP Objects for:

STOP.

Reason:

The STOP statement should only be used during the events INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION and GET. During execution of type 1 programs, it ends processing of the corresponding event blocks and triggers the sending of the selection screen during the event INITIALIZATION and in all other cases the event END-OF-SELECTION of the runtime environment. The old event concept of the ABAP runtime environment is not supported by ABAP Objects.

Overview:

Replacement for Obsolete Statements ABAP Objects