![](https://blogs.sap.com/wp-content/uploads/2012/04/1___persistent_objects___class_diag_94264.jpg)
ABAP Persistent Object Services Demystified SAP Blogs
Figure 1 Creating the Persistent Class Persistent classes are like normal classes and are created using the class builder (se24). The only difference while creating a persistent class is the tick mark Persistent Class, which identifies the class as a persistent class.
![](https://gocoding.org/wp-content/uploads/2019/03/ABAP-Final-Class-Example-2-768x622.png)
Final Class in SAP ABAP Go Coding
CL_persistent The class CL_persistent is a class created as a persistent class using Class Builder. The objects of this class are managed by the persistence service. These objects are known as managed objects (note that a managed object does not necessarily have to be a persistent object).
![](https://blogs.sap.com/wp-content/uploads/2021/11/1-15.png)
Displaying Standard Multiple ALV’s in a SAP ABAP Report SAP Blogs
Persistence Classes: In Class Builder, there is an option to create a "Persistent Class" and once created, the system automatically creates a Class Actor or Class Agent which has the following inheritance relationships. The moment you create a Persistent Class, workbench also generates two additional classes: ZCB_PERSIST_SFLIGHT as the Base Class
![](https://2.bp.blogspot.com/-3FynBcZStjM/WU37qTCzRXI/AAAAAAAAAvA/fof9_ymrVgUXaLaQg-rXlHuHuqe6EWtywCLcBGAs/s1600/d11.png)
Step by Step Tutorial on Creating class in SAP ABAP Class Builder(SE24)
persistent class Special class whose attributes are associated with database tables using object-relational mapping. Can be created using Mapping Assistant in Class Builder. The objects of persistent classes are managed by object services . persistent class
![](https://discoveringabap.files.wordpress.com/2021/09/class-1.7-1.jpg)
Object Oriented ABAP [2] Working with ABAP Class Discovering ABAP
The ABAP statement COMMIT WORK must be executed to apply any changes to the instances of persistent classes to the actual persistent objects in the database. If an object-oriented transaction from the transaction sevice is not used explicitly, the statement COMMIT WORK must be specified explicitly. If not, it is encapsulated in the transaction.
![](https://i1.wp.com/www.advsolutionpros.com/wp-content/uploads/2018/06/KNVV-Database-view.png?ssl=1)
Leading practices ABAP Persistent Classes Advanced Solutions
The agent class manages the persistent objects at runtime. The medhods of the agent class can be mostly redefined. Besides of them, the agent class can be extended with new attributes, methodes etc. More details to the Object Services under ABAP - Object Services Standard BAPIs
![](https://gocoding.org/wp-content/uploads/2019/03/ABAP-Friend-Class-Example-1-1024x623.png)
Friend Class in SAP ABAP Go Coding
Persistent Classes To use the Persistence Service for objects, the classes of these objects must have been created as persistent classes in Class Builder. The term persistent class does not imply that a class is persistent (every class is persistent as a template for objects).
![](https://i.ytimg.com/vi/5bRRLbQOiNU/maxresdefault.jpg)
SAP ABAP tutorial Classes (Lesson 6) YouTube
1. So why cant we just use the the same ourselves. What is the advantage of creating a persistent object and then using get/set methods? IMO, this only makes things complex. 2. Lets say I want to retrieve multiple records into an internal table: Below is an example from Former Member:
![](https://1.bp.blogspot.com/-dIKtQHF3RkE/WU37AdvdXjI/AAAAAAAAAug/KvR8OB7TYvka79k75Xv1cPLZ5px15BvpgCLcBGAs/s640/D3.png)
Step by Step Tutorial on Creating class in SAP ABAP Class Builder(SE24)
Introduction Flavors of SAP ABAP Classes: Local Class: Global Class: Structure of Class: Components of Class: Visibility Section: Types of ABAP Class: Usual ABAP Class: Exception Class: Message Class: Persistent Class: Test Class (ABAP Unit): Author Introduction
![](https://3.bp.blogspot.com/-XX_HYVRGJDg/VJZ0rzTkE5I/AAAAAAAAOA8/2qYANaEyqpE/s1600/1.png)
TECHSAP OO ABAP Exception classes [All about Using CX_STATIC_CHECK]
The description of an object - that is, the class - occurs persistently as a piece of source code, but its attributes exist only as long as the object. However, an object in ABAP Objects is transient in principle.
![](https://gocoding.org/wp-content/uploads/2018/04/Data-Class.jpg)
Data Class in ABAP Go Coding
1 Here is a dynamic solution, query_data is the result returned from the call to get_persistent_by_query ( ). In the end the data will be stored in structured table