2008 Nov 19 3:59 PM
What is this abend telling me exactly? Anybody know?
Thank-You
2008 Nov 19 7:28 PM
Hello
An instance method of a class has been called but the reference variable did not contain any instance, e.g.:
DATA: go_myclass TYPE REF TO zcl_myclass. " has instance method display
START-OF-SELECTION.
CALL METHOD go_myclass->display( ). " error because go_myclass not yet instantiated
" Replaced by:
CREATE OBJECT go_myclass.
CALL METHOD go_myclass->display( ). " Now it works
" Or:
CHECK ( go_myclass IS BOUND ). " available on release >= 6.20
CALL METHOD go_myclass->display( ).
Regards
Uwe
What is this abend telling me exactly? Anybody know?
Thank-You
2008 Nov 19 7:28 PM
Hello
An instance method of a class has been called but the reference variable did not contain any instance, e.g.:
DATA: go_myclass TYPE REF TO zcl_myclass. " has instance method display
START-OF-SELECTION.
CALL METHOD go_myclass->display( ). " error because go_myclass not yet instantiated
" Replaced by:
CREATE OBJECT go_myclass.
CALL METHOD go_myclass->display( ). " Now it works
" Or:
CHECK ( go_myclass IS BOUND ). " available on release >= 6.20
CALL METHOD go_myclass->display( ).
Regards
Uwe
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |