Application Development 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: 

Exception while executing Function module - HRXSS_PER_READ_P0006_US

Former Member
0 Kudos

Unable to execute any of the following Function modules:

(Gave the neccesary inputs)

HRXSS_PER_P0006_US

HRXSS_PER_DELETE_P0006_US

HRXSS_PER_EDIT_P0006_US

HRXSS_PER_MODIFY_P0006_US

HRXSS_PER_NEW_P0006_US

HRXSS_PER_READ_P0006_US

Getting an exception

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO

Exceptn CX_SY_REF_IS_INITIAL

ShrtText

Access with 'ZERO' object reference not possible.

What happened?

Error in ABAP application program.

The current ABAP program "SAPLHRXSS_PER_MAC" had to be terminated because one of the statements could not be executed.

This is probably due to an error in the ABAP program.

Error analysis

An exception occurred. This exception is dealt with in more detail below . The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL', was neither caught nor passed along using a RAISING clause, in the procedure "HRXSS_PER_CLEANUP" "(FUNCTION)".

Since the caller of the procedure could not have expected this exception to occur, the running program was terminated.

The reason for the exception is:

There was an attempt to access a component using a 'NULL' object reference (points to nothing).

An object reference must indicate 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 a CLEAR statement.

Missing RAISING Clause in Interface

Program SAPLHRXSS_PER_MAC

Include LHRXSS_PER_MAC$04

Row 7

Module type (FUNCTION)

Module Name HRXSS_PER_CLEANUP

Trigger Location of Exception

Program SAPLHRXSS_PER_MAC

Include LHRXSS_PER_MACU04

Row 13

Module type (FUNCTION)

Module Name HRXSS_PER_CLEANUP

What could be the reason?

Regards,

Sarath

2 REPLIES 2

Former Member
0 Kudos

can u tell me which version u r using coz in version 4.6 c i am not able to find any such FMs..

and can u be specific with ur requiremnt?may be it can be solved by some other way.

0 Kudos

We are using ECC5.

This function module(HRXSS_PER_READ_P0006_US) is used to read data from infotype 0006(Address of an employee).

This is a Remote enable function module which can be accesed from portal(Employee Self Service)