Skip to Content
0
Former Member
Oct 18, 2006 at 10:48 AM

abap oo uing object indide method

20 Views

Hi,

Do you know how to call a method of some object inside method of different object which takes reference to this first object.

class c1 definition.

public section.

methods m1.

endclass.

class c1 implementation.

method m1.

write 'method m1'.

endmethod.

endclass.

class c2 definition.

public section.

methods m2

importing p2 type ref to c1.

endclass.

class c2 implementation.

method m2.

p2->m1.

endmethod.

endclass.

Is it possible. Because I'm getting an error.

Regards,

Wojciech