Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CX_SY_REF_IS_INITIAL

Former Member
0 Likes
1,425

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

Did you create the object o_ztmm_test_class? Look at CREATE OBJECT....

Message was edited by: Srinivas Adavi

3 REPLIES 3
Read only

Former Member
0 Likes
520

Did you create the object o_ztmm_test_class? Look at CREATE OBJECT....

Message was edited by: Srinivas Adavi

Read only

Former Member
0 Likes
519

Thanks, I am new to OO, I am forcing myself to learn.

That worked.

Read only

0 Likes
519

Glad it helped. Don't worry, you are not alone on this one. I am also trying to grasp the OO aspects.