Skip to Content
0
Former Member
Jun 19, 2009 at 10:35 AM

How to get object/instance name in method

1033 Views

Hi folks,

I have created a class and implemented a method within the class.

Now i would like get the name of instance/object calling this method ,within this method.

Is their any way to get this obj name within method?

Eg:

I hve class ZCL with method METH

Now in some program i used this method, by creating any obj

data obj type ref to ZCL

obj->METH

Now is there any way to get this obj name within the methodMETH by using some method like GET_OBJ_NAME(just making a guess)

Regards

PG