ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.0 and its EhPs →  News for ABAP Release 7.0, EhP2 → 
Mail Feedback

Enhancements in ABAP Release 7.0, EhP2


1. Exception Handling in CALL BADI

2. Dynamic GET BADI and CALL BADI

3. Nested Source Code Enhancements



Modification 1  

Exception Handling in CALL BADI

Until now, the CX_SY_DYN_CALL_ILLEGAL_METHOD exception was raised when the implementation of a method in CALL BADI was missing. The exception is now caught internally and the call is executed as if the method were present with an empty implementation. Actual parameters that are bound to EXPORTING or RETURNING parameters passed by value are initialized. All other actual parameters remain unchanged.

Hint

This change has also been downported to ABAP release 7.0.



Modification 2  

Dynamic GET BADI and CALL BADI

Dynamic variants have been added to the GET BADI and CALL BADI statements, which allow the BAdI or BAdI method to be specified dynamically.



Modification 3  

Nested Source Code Enhancements

From ABAP release 7.0 EhP2, it is possible to enhance a source code plug-in defined between ENHANCEMENT - ENDENHANCEMENT with additional source code plug-ins. This means the ENHANCEMENT-POINT and ENHANCEMENT-SECTION statements can be used in a source code plug-in.

In addition, implicit enhancement options are now available before the first line and after the last line of a source code plug-in (after ENHANCEMENT and before ENDENHANCEMENT).