Ansicht
Dokumentation

ABENNEWS-71-PROGRAM_LOAD - NEWS-71-PROGRAM LOAD

ABENNEWS-71-PROGRAM_LOAD - NEWS-71-PROGRAM LOAD

BAL_S_LOG - Application Log: Log header data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Lazy Loading of Programs in Release 7.0, EhP2

When compiling an ABAP program before Release 7.0, EhP2, all associated include programs were loaded when first accessing a global class, a global interface, or a type pool. These includes contain declarations of the corresponding class, interface, or type pool which can be used globally.

From Release 7.0, EhP2, these include programs are not loaded until an element declared in them is actually required. For example, a class class is no longer loaded when a TYPE REF TO class type reference is made, but when a component of the class is accessed or the class itself.

This internal optimization of ABAP Compiler has the following additional consequences:





Statement TYPE-POOLS is Obsolete

The statement TYPE-POOLS is no longer required for the use of a data type, a constant, or a macro from a type pool. The elements of a type pool can now be addressed in the same way as all other objects in ABAP Dictionary without previously loading the type pool.

TYPE-POOLS statements are ignored by ABAP Compiler from Release 7.0, EhP2, and can be deleted.

In list processing in particular, the include programs <LIST>, <SYMBOL>, <ICON>, <LINE>, and <COLOR> are no longer needed, since they only contain TYPE-POOLS statements.



Addition LOAD for CLASS and INTERFACE is Obsolete

The now rarely used statements

are no longer required

From Release 7.0, EhP2 these statements are ignored by ABAP Compiler and can be deleted.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2231 Date: 20240329 Time: 140921     sap01-206 ( 48 ms )