2009 Jan 19 10:08 AM
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.
2009 Jan 19 10:16 AM
2009 Oct 12 8:27 PM