sap errors and solutions

Just another SAP blog

Access using a ‘ZERO’ object reference is not possible.

Error:

Access using a ‘ZERO’ object reference is not possible.

Category               ABAP Programming Error

Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED

Except.                CX_SY_REF_IS_INITIAL

ABAP Program           CL_FPM_HCT_MAIN_ASSIST========CP

Application Component  BC-WD-CMP-FPM

Date and Time          10.09.2016 19:15:54

 

Short Text

Access using a ‘ZERO’ object reference is not possible.

 

 What happened?

Error in the ABAP Application Program

 

The current ABAP program “CL_FPM_HCT_MAIN_ASSIST========CP” had to be

terminated because it has

come across a statement that unfortunately cannot be executed.

 

What can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look at and manage termination messages, and you can also keep them for a long time.

Error analysis

An exception has occurred which is explained in more detail below. The exception is assigned to class ‘CX_SY_REF_IS_INITIAL’ and was not caught in procedure  “RENDER_AREAS_DISABLED” “(METHOD)”, nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated this exception, the current program was terminated.
The reason for the exception is:

You are trying to access a component with a ‘ZERO’ object reference (points to ‘nothing’). Variable: “LO_UIELEMENT”.  An object reference must point to an object (an instance of a class) before it can be used to access a component. The reference has either never been set, or it was set to ‘ZERO’ with a CLEAR statement.




How to correct the error:

The exception must either be prevented, caught in procedure “RENDER_AREAS_DISABLED” “(METHOD)”, or the possibility of it occurring must be declared in the RAISING clause in the procedure.

 

To prevent the exception, note the following:

Probably the only way to eliminate the error is to correct the program.

If the error occurs in a non-modfied SAP program, you might be able to find a solution in the SAP Notes system. If you have access to the SAP Notes system, check there first using the following keywords:

 

“OBJECTS_OBJREF_NOT_ASSIGNED” CX_SY_REF_IS_INITIAL

“CL_FPM_HCT_MAIN_ASSIST========CP” bzw. CL_FPM_HCT_MAIN_ASSIST========CM01A

“RENDER_AREAS_DISABLED”

If you cannot solve the problem yourself, please send the following information to SAP:

  1. This description of the problem (short dump)

To do this, choose  System -> List -> Save -> Local File (unconverted) on the screen you are in now.

  1. A suitable system log

To do this, call the system log in transaction SM21. Restrict the time interval to ten minutes before the short dump and five minutes after it. In the display, choose System -> List -> Save -> Local File (unconverted).

  1. If these are programs of your own, or modified SAP programs: Source code of these programs

To do this, choose  More Utilities -> Upload/Download -> Download in the Editor.

  1. Details regarding the conditions under which the error occurred or which actions and input caused the error.

Information on where terminated:

The termination occurred in ABAP program “CL_FPM_HCT_MAIN_ASSIST========CP”, in “RENDER_AREAS_DISABLED”. The main program was “SAPMHTTP”.

In the source code, the termination point is in line 93 of (Include) program CL_FPM_HCT_MAIN_ASSIST========CM01A”.

The termination is due to exception “CX_SY_REF_IS_INITIAL” occurring in procedure “RENDER_AREAS_DISABLED” “(METHOD)”.

This exception was not handled locally or declared in the RAISING clause in the procedure’s signature however.

The procedure is in program “CL_FPM_HCT_MAIN_ASSIST========CP        “. The source code begins in line 1 of (include) program “CL_FPM_HCT_MAIN_ASSIST========CM01A     “.




Solution which I Followed is below:

Applied note: 2201836 and 2002124

 

Other solutions which may help you:

Solution 1:

https://scn.sap.com/thread/3547271

 

Solution 2:

https://scn.sap.com/thread/3642539

 

Solution 3:

https://scn.sap.com/thread/1276492

 

 

 

 

Updated: September 13, 2016 — 2:19 pm

1 Comment

Add a Comment
  1. Hello Team,

    My ST22 dump Access using a ‘ZERO’ object reference is not possible.

    The current ABAP program “CL_RSR_OLAP===================CP” had to be
    terminated because it found a statement that could not be executed.

    ABAP Error Line Statement: > CHECK p_r_query_runtime->n_sx_rto-nodata_logical IS INITIAL. “H2288758

    Thanks & Regards
    Vikas Bajpai

Leave a Reply

Your email address will not be published. Required fields are marked *

sap errors and solutions © 2016 Frontier Theme
Copy Protected by Chetan's WP-Copyprotect.