ERROR: Access using a 'ZERO' object reference is not possible. (termination: RABAX_STATE)

ERROR: Access using a 'ZERO' object reference is not possible. (termination: RABAX_STATE)

Symptom

When opening an appraisal in the portal, an error is displayed:

Error: 500 SAP Internal Server Error
ERROR: Access using a 'ZERO' object reference is not possible. (termination: RABAX_STATE)

A dump file (this can be found in transaction ST22) is also generated which contains the following:

Category                           ABAP Programming Error
Runtime Errors                   OBJECTS_OBJREF_NOT_ASSIGNED
Except.                              CX_SY_REF_IS_INITIAL

Web Dynpro Component     HAP_DOCUMENT_BODY
Application Component       CA-GTF-AP-PM

Access using a 'ZERO' object reference is not possible.

Web Dynpro Component      HAP_DOCUMENT_BODY
Controller                           VW_BODY_DYN



Environment

    SAP ERP 6.0, Enhancement Pack 4 (EHP 4)
    SAP ERP 6.0, EHP 5
    SAP ERP 6.0, EHP 6
    SAP ERP 6.0, EHP 7 (and higher)


Resolution


This issue is caused by a program error.  Apply Note 2002124 to correct the issue.