In ABAP Objects, the following statement causes an error message:
LOCAL f.
Cause:
The LOCAL statement protects global data
objects from being changed in subroutines. This is pointless when you use methods, since methods are
designed to work with the attributes of classes. You can create local data objects in methods and subroutines for internal purposes.
Overview:
Replacement for Obsolete Statements ABAP Objects