How to create a singleton class in SAP ABAP?

Michael Management
Michael Management
Updated 3 year ago

Descripción general

The first step is to create a private class. The second step is to add a private attribute with reference to the same class. The third step is to create a public static method with returning the value of type reference to the same class. The fourth step is to create implementation and create the object in the implementation of the public static method. The last step is to call the static method in any program to create the instance for the singleton class. This will create a singlton class in SAP ABAP

Si tienes alguna pregunta, por favor no dudes en Contáctenos

Cuentas General

¿Este artículo ha sido útil?
No
¿Sólo está atrapado?¿Cómo podemos ayudar?
Back to top