Cannot use VERSION addition

The VERSION addition in the Open-SQL statements DELETE and MODIFY (and of course in the obsolete statements READ TABLE and LOOP AT) is not allowed in ABAP Objects.

In ABAP Objects error message for:

DELETE dbtab VERSION vers.
MODIFY dbtab VERSION vers.

Correct syntax:

CONCATENATE 'T' vers INTO vers.

DELETE (vers) FROM dbtab.
MODIFY (vers) FROM dbtab.

Reason:

The VERSION addition only works with database tables whose name satisfies the naming convention for R/2-ATAB tables. Dynamically defining the database table with bracketed field names replaces the VERSION addition.

Overview:

Replacement for Obsolete Statements ABAP Objects