2008 Dec 18 7:05 AM
haii,
i have small information How to create More two class with one object,
bye
bye
babu
haii,
i have small information How to create More two class with one object,
bye
bye
babu
2008 Dec 18 8:23 AM
Could you please explain in more detail, what your requirement (question) is? Create more than two CLASSES with one OBJECT?
What do you mean with object in this case?
2008 Dec 18 5:00 PM
Hello
I assume you want to create multiple instance of your class.
Assuming that you class is NOT a singleton then simply repeat the CREATE OBJECT statement as many times as you need.
TYPES: begin of ty_s_class.
TYPES: instance TYPE REF TO zcl_myclass.
TYPES: end of ty_s_class.
DATA:
lt_itab TYPE STANDARD TABLE OF ty_s_class
WITH DEFAULT KEY,
ls_record TYPE ty_s_class.
DO 10 TIMES.
CLEAR: ls_record-instance.
CREATE OBJECT ls_record-instance.
APPEND ls_record TO lt_itab.
ENDDO.
Regards
Uwe
2009 Jan 02 12:07 PM
HI,
An object is an instance of a Class..Can you please be clear..what exactly are you looking for..
Regards
Vasavi
2009 Jan 02 12:09 PM
HI,
An object is an instance of a Class..Can you please be clear..what exactly are you looking for..
Regards
Vasavi