HCM P&F: Shortdump for approvers - OBJECTS_OBJREF_NOT_ASSIGNED_NO -CX_SY_REF_IS_INITIAL
We have implemented HCM processes and forms module recently. We are using FPM forms not Adobe forms.
There is a short dump which is appearing randomly and baffling us, please advise.
Some times user are getting following short dump and putting the work item to reserved. When they try to click and open the same form then it is throwing error says it is already reserved, you can't process it. And at the same time another dump created in the backend.
Does anybody help why this is happening and how to overcome it?
Category ABAP Programming Error
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO
ABAP Program CL_HRASR00_PROCESS_UI_EVENTS==CP
Application Component PA-AS
The current ABAP program "CL_HRASR00_PROCESS_UI_EVENTS==CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
DATA: step_attr TYPE hrasr00step_attr,
is_ok TYPE boole_d.
* Get the step attributes
>>>>>>>>CALL METHOD process_object_handler->get_step_attrib
message_handler = message_handler
step_attr = step_attr
* ADDITIONAL_ATTRIBUTES =
is_ok = is_ok.
* Get the processor role from the step attributes
IF is_ok = true.
processor_role = step_attr-processor_role.
Thanks for your reply. The processor roles was correctly setup as 'HRASRB'.
We found the cause of issue, the problem is with Structural Authorizations..!! The processor didn't have authorization to pernr. And he never reported that he is not seeing the data on the form... . And he is just blindly trying to "Approve" it, based on title of the form.
I think this might be a bug in SAP Code. Without showing error for authorization, the code proceeds to execute FPM event for approval. Finally we sorted out by correcting Structural Authorizations (Buffering problem).