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

dump error after calling a global class from se24

Former Member
0 Likes
693

this is the small code i did so far.

parameters: X type i,

Y type i.

data: Z type i.

data: con1 type ref to ZTEST1.

CALL METHOD con1->zm1

EXPORTING

a = x

b = y

IMPORTING

c = z.

write:/ z.

after executing iam getting a dump error-

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

caught and

therefore caused a runtime error.

The reason for the exception is:

You attempted to use a 'NULL' object reference (points to 'nothing')

access a component (variable: "CON1").

An object reference must point to an object (an instance of a class)

before it can be used to access components.

Either the reference was never set or it was set to 'NULL' using the

CLEAR statement.

this is the small code i did so far.

parameters: X type i,

Y type i.

data: Z type i.

data: con1 type ref to ZTEST1.

CALL METHOD con1->zm1

EXPORTING

a = x

b = y

IMPORTING

c = z.

write:/ z.

after executing iam getting a dump error-

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

caught and

therefore caused a runtime error.

The reason for the exception is:

You attempted to use a 'NULL' object reference (points to 'nothing')

access a component (variable: "CON1").

An object reference must point to an object (an instance of a class)

before it can be used to access components.

Either the reference was never set or it was set to 'NULL' using the

CLEAR statement.

2 REPLIES 2
Read only

Former Member
0 Likes
624

i got solution

Read only

0 Likes
624

Hi, Could you please tell me how to solve this issue?