Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Program Layout →  Introductory Statements for Programs 

CLASS-POOL

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


CLASS-POOL [MESSAGE-ID id]. 

Effect

The statement CLASS-POOL introduces a class pool. It must be the first statement of a standalone program, after any include programs have been resolved. The addition MESSAGE-ID of the statement CLASS-POOL has the same meaning as in the statement REPORT.

Class pools are edited in Class Builder in ABAP Workbench. Here, a master program for a global class and associated include programs are generated automatically. The statement CLASS-POOL is created in the master program.

The full name of the master program of a class pool in the repository starts with the name of the global class, is padded with the character "=" up to and including position 30, and ends with "CP".

The names of the include programs of a class pool included by the framework program are constructed in exactly the same way as the name of the class pool itself, however they have different endings. Unlike in function groups, the actual structure of a class pool constructed from include programs is the internal responsibility of ABAP Workbench and the ABAP runtime environment and is not displayed in Class Builder.


Note

The statements permitted in a class pool are listed under Statements in Class Pools and Interface Pools.


Example

The name of the master program of the class pool of the global class CL_ABAP_BROWSER is CL_ABAP_BROWSER===============CP.