ARTICLE
ABAP Objects in Release 7.40
1 Parameter interface of functional methods
2 Interfaces in Test Classes
3 Exception handling
ABAP_MODIFICATION_1 Parameter Interface of Functional Methods
Alongside the return value defined using RETURNING , a
functional method can now have any
number of other formal parameters .
Previously, only input parameters
were possible.
Accordingly, functional method
calls can now be used with the additions EXPORTING ,
IMPORTING , and CHANGING , so that actual parameters can be
bound to the additional formal parameters.
When the input parameters of a method are declared, the addition
PREFERRED PARAMETER can now also be
specified, if the method has output parameters or input/output
parameters. The only requirement is that all input parameters and
input/output parameters are optional.
ABAP_MODIFICATION_2 Interfaces in Test Classes
In test classes, you can specify the new addition
PARTIALLY IMPLEMENTED in the
statement INTERFACES , which allows you to only partially
implement interfaces. This is particularly useful in test doubles.
ABAP_MODIFICATION_3 Exception Handling
If a class is specified dynamically after TYPE in the statement
CREATE OBJECT and the class
does not match the static type of the reference variable, the exception
can now be handled using the exception class
CX_SY_CREATE_OBJECT_ERROR .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved