SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Release-Specific Changes → Changes in Release 7.40 →
ABAP Objects in Release 7.40
1. Parameter interface of functional methods
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.
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.
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.