INCLUDE
ARTICLE
Cannot Use the LOCAL Statement
The LOCAL statement is not allowed in ABAP Objects.
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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved