How to create a singleton class in SAP ABAP?

Michael Management
Michael Management
Updated 3 year ago

Aperçu

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 vous avez des questions, n’hésitez pas à Contactez-nous

Les comptes Général

Cet article a-t-il été utile?
Oui pas non
Toujours fermé?Comment pouvons-nous aider?
Back to top