‎2007 Nov 23 8:45 AM
Hi all,
i want to have a class with an import parameter e. g. class_name.
In the class i want to do the following:
data: agent type ref to <class_name>.
Is that possible?
How must i define the import parameter?
regards
‎2007 Nov 23 10:45 AM
Class_name could be CLIKE - allowing any character type field.
DATA: lo_fish TYPE REF TO object.
CREATE OBJECT lo_fish
TYPE
(class_name).Matt
‎2007 Nov 26 1:16 PM
Hi Wolfgang,
what want you make with variable Agent in your Class? Wenn you declare the variable as ref to object (how Matthew has wrote) you can create an Instance but you have no acces to fields and methods of instance. Should you possible use Interface?
Regards Boguslaw