Persistent classes are created and managed in the Class Builder.
Prerequisites
Use of the prefix CL_ (or a corresponding
naming convention in the customer namespace) is required for persistent classes since generation of the corresponding auxiliary classes assumes exactly this naming convention.Procedure
To create a persistent class from the initial screen of the Object Navigator (SE80):
The system displays the Create Class ... dialog box.
Select Persistent class as the class type.
The Create Object Catalog Entry dialog box is displayed.
The method display of the Class Builder appears.
Result
You created a persistent class (called CL class below) and defined your basic data.
The new class implements all the methods of interface IF_OS_STATE. These service methods are common to all persistent classes and are used when the object status is manipulated. The application developer can only redefine the implementation of the two methods INIT and HANDLE_EXCEPTION. The other methods are reserved for internal use.
The Class Builder automatically creates two further auxiliary classes with the new persistent class CL class. They are assigned to a separate class pool. These classes are needed for managing persistent objects using Object Services.
See also:
Generated Classes Class Diagram: Created Classes Defining Persistence Mapping