Skip to Content

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

Is there a table type ATTRIBUTE that can be defined in an ABAP object?

Hi. Within SE24 on the Attributes tab, is there a way to define an attribute of type TABLE? If you put in STANDARD TABLE as the reference type, it does not allow a generic table type.

What I want to do is pass in a standard table type to my constructor, and then assign it to a private table attribute in the object.

I do not want to assign the table to a local variable of the constructor. I want to store the table in a private object attribute. I don't mind if the attribute type is a specific table type (such as KNA1), I just want to be able to assign the constructor's table parameter to some type of private object attribute.



Former Member
Former Member replied


I think what you need to do is to create a TABLE TYPE in SE11 Data dictionary and then create the attribute by refrerring to the TABLE TYPE. There is no other go.



Note : Please mark the helpful answers

0 View this answer in context

Helpful Answer

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