Class &1 cannot be instantiated directly

Message type: E = Error

Message class: OO - Class Builder/API

Message number: 803

Message text: Class &1 cannot be instantiated directly



What causes this issue?

The class is marked as private or protected. This means that only the
class itself or its friends and subclasses may instantiate the class.


System Response

The system issues an error message and will not allow you to continue with this transaction until the error is resolved.



How to fix this error?

Call a static method of the class that returns an instance.


Procedure for System Administrators


Error message extract from SAP system. Copyright SAP SE.