2006 Jun 01 6:23 PM
OO Experts,
I get this error. The details are in german but translated I get "It tried with a ZERO object reference (points to nothing) a component to access (variable: O_ZTMM_TEST_CLASS). An object reference must point to an object (an instance of a class), before one can use it to the access to components. Either the reference was not ever set, or it was set for CLEARS with an instruction to ZERO.
for calling this method:
call method o_ztmm_test_class->get_checkdigit
exporting
upc_in = '000000002820011800'
importing
upc_out = lv_newupc.
Anybody know what is happening?
2006 Jun 01 6:27 PM
Did you create the object o_ztmm_test_class? Look at CREATE OBJECT....
Message was edited by: Srinivas Adavi
2006 Jun 01 6:27 PM
Did you create the object o_ztmm_test_class? Look at CREATE OBJECT....
Message was edited by: Srinivas Adavi
2006 Jun 01 6:30 PM
Thanks, I am new to OO, I am forcing myself to learn.
That worked.
2006 Jun 01 6:34 PM
Glad it helped. Don't worry, you are not alone on this one. I am also trying to grasp the OO aspects.