SAP TYPE-POOLS ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID TYPE-POOLS
• TYPE-POOLS ABAP Statement

TYPE-POOLS
Short Reference

ABAP_SYNTAX_OBS
TYPE-POOLS tpool.

What does it do?
This statement is obsolete. It is checked for correct syntax but otherwise ignored by the ABAP Compiler.
The statement TYPE-POOLS was required in the past to load the elements of a type pool tpool explicitly in the current context. It could be specified for the global data declaration of an ABAP program or in the declaration part of a class or an interface.
Now a type pool is loaded automatically when one of its elements is first accessed in a program.



Latest notes:

After a type pool is loaded, the data types declared there hide identically named data types in the ABAP Dictionary which are not declared in the type pool. Previously, the pool was loaded explicitly using TYPE-POOLS. Since the statement TYPE-POOLS is no longer effective, regular data types from the ABAP Dictionary now hide identically named data types in a type pool until the type pool is loaded when accessing a non-hidden element. Creating identically named types in the ABAP Dictionary and in type pools has been forbidden for a long time however, so this situation should therefore no longer occur.
Previously, macros defined in type pools only hide identically named macros from the database table TRMAC once the type pool had been loaded explicitly using the statement TYPE-POOLS. Now macros defined in type pools always hide identically named macros from the database table TRMAC. Due to different naming conventions however, this situation should not occur.
The syntax check no longer checks whether the specified type pool tpool actually exists.
The statement TYPE-POOLS can still be used to migrate current programs to lower releases. Otherwise it can be deleted.
ABAP_HINT_END

Return to menu