Cannot Use REJECT

The REJECT statement is not allowed in ABAP Objects.

Error message in ABAP objects for:

REJECT [dbtab].

Reason:

The REJECT statement should only be used during the GET event while type 1 programs are being executed with logical databases. Editing of the current line of the node of the logical database is terminated with REJECT and the next line of the same or of a lower lying node dbtab is read. The old event concept of the ABAP runtime environment and the past way of processing logical databases is not supported by ABAP objects.

Overview:

Replacement for Obsolete Statements ABAP Objects