Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

[ABAP-OO] How to instantiate an attri. type Class Object from an Interface?

Hi Guys,

basically, I have an INTERFACE.

This Interface contains an instantiate attribute TYPE OBJECT.

I would like to know, how can I instantiate this attribut in my concret utility ZCL_TEST class?

I have this error:

Thank you very much in advance.


Former Member
Former Member replied

Looks like you are trying to instantiate (a instance attribute) within the class constructor which is static. Can you try the same with in constructor or any other instance method?


1 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question