ABAP Keyword Documentation → ABAP - Release-Specific Changes → Changes in Release 7.0 and its EhPs → Changes in Release 7.0, EhP2
ABAP Objects in Release 7.0, EhP2
1. Declaring instance constructors
Other versions: 7.31 | 7.40 | 7.54
Modification 1
Declaring Instance Constructors
From Release 7.0, EhP2, the statement METHODS
can be used to declare an
instance constructor in all
visibility sections,
whose instantiability is more general than or equal to that specified in the addition
CREATE
of the statement
CLASS DEFINITION. Until now, this was only possible with the public visibility section (this modification was also transported to Release 7.0).
Modification 2
C Destructor
From Release 7.0, EhP2, more than one attribute can be passed in the C destructor when SYSTEM-CALL
is used.
Modification 3
Constants in Class Pools
From Release 7.0, EhP2, local program constants can be declared in a class pool. The private components and methods of the global class can access these constants.