Skip to Content
0
Former Member
Aug 05, 2005 at 10:31 AM

ABAP-OO: Create any number of instances

200 Views

Hello,

please, look at this simple scenario:

DATA:
  my_class type ref to zcl_xyz.
  create object my_class.

In that case I have just created one instance. Now I need a mechanism to create and identify any number of instance of the type zcl_xyz. <b>That means, I dont know exactly, if I need 5 or 200 instances.</b> Any feasible idea, how to handle that?

Thanks and regards.