Skip to Content

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

Constructor vs. factory

Hi to all,

in the standard class cl_salv_table, I notice that objects are not to be instantiated by a create object statemant - but by a factory method. I would now like to understand the concept. Why should the developer of a class create a factory method instead of writing the code needed for instantiating in a constructor?

Thanks for all responses

Former Member replied


Please have a look at the link

meaning of factory method in abap objects



0 View this answer in context

Helpful Answer

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