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

Runtime Error OBJECTS_OBJREF_NOT_ASSIGNED in BSP application

Former Member
0 Likes
332

Hello.

I have an application which crashes in an apparently random way, with the same user and data, one time crashes and other doesn't.

The ShrtText of the dump:

                                                                            

    Access not possible using 'NULL' object reference.                              

                                                                                    

Attempt to access a component using 'NULL' object reference (points

to nothing).                                                       

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

before you can use it to access components (variable: " ").        

Either the reference has not yet been set, or it has been reset to 

'NULL' by a CLEAR statement.                                       

The main program was "SAPMHTTP ".                                    

                                                                     

The termination occurred in line 7 of the source code of the (Include)

program "LZPAC01$01"  (ZPAC is my Z BSP aplication)

Source Code Extract:

                                         

*******************************************************************

*   THIS FILE IS GENERATED BY THE FUNCTION LIBRARY.               *

*   NEVER CHANGE IT MANUALLY, PLEASE!                             *

*******************************************************************

INCLUDE LZPAC01V01 .                                              

                                                                   

FUNCTION $$UNIT$$ Z_PAC_CREAR_USUARIO             <----- Dump is produced here

SAP Release.............. "640"

Somebody can give me any idea of the cause or solution? I know is very short information, but it is all can I give you :S

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
284

Hi,

Please try to debug. You have used an object which is not been assigned yet. Check why it is assigned in some cases and not assigned in other cases, You can compare both and find the issue.

Thanks,

Viji.