SAP OO OBS LOCAL 1

Get Example source ABAP code based on a different SAP table
  


ABAP Code Snippet
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.