‎2011 Mar 23 7:50 AM
Hi,
I am facing an issue while activating payslip in HRFORMS T-code. The error show below bump.
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Except. CX_SY_REF_IS_INITIAL
Date and Time 2011/03/22 14:17:59
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_INFOSTAR_HRF02=============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 occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "DDIC_FIELDS" "(METHOD)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: "LO_INFONET->SEL_MANAGER").
An object reference must point to 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 the
CLEAR statement.
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
"CL_INFOSTAR_HRF02=============CP" or "CL_INFOSTAR_HRF02=============CM005"
"DDIC_FIELDS"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
The exception must either be prevented, caught within proedure
"DDIC_FIELDS" "(METHOD)", or its possible occurrence must be declared in the
RAISING clause of the procedure.
To prevent the exception, note the following:
Information on where terminated
Termination occurred in the ABAP program "CL_INFOSTAR_HRF02=============CP" -
in "DDIC_FIELDS".
The main program was "H99HRF_GENERATE ".
In the source code you have the termination point in line 51
of the (Include) program "CL_INFOSTAR_HRF02=============CM005".
The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
procedure "DDIC_FIELDS" "(METHOD)", but it was neither handled locally nor
declared
in the RAISING clause of its signature.
The procedure is in program "CL_INFOSTAR_HRF02=============CP "; its source
code begins in line
1 of the (Include program "CL_INFOSTAR_HRF02=============CM005 ".
Source Code Extract
Line SourceCde
21 clear LS_DDICFIELD.
22 LT_DDICFIELDS = LO_INFODIM->DDIC_FIELDS( ).
23 call method LO_INFODIM->GET_DDIC_NAMES
24 importing
25 EX_KEYTYPE = LV_KEYTYPENAME
26 EX_SORTTYPE = LV_SORTTYPENAME.
27 * key fields
28 concatenate <CWA>->NAME '_KEY' into LS_DDICFIELD-FIELDNAME.
29 LS_DDICFIELD-ROLLNAME = LV_KEYTYPENAME.
30 LS_DDICFIELD-KEYFLAG = 'X'.
31 LS_DDICFIELD-DEPTH = '01'.
32 LS_DDICFIELD-ICON = CL_NODE_HRF02=>C_ICON_RELATION.
33 LS_DDICFIELD-TEXT = <CWA>->TEXT.
34 LS_DDICFIELD-SUBSTRUCTURE = 'X'.
35 append LS_DDICFIELD to RE_FIELDS.
36
37 LT_DDICFIELDS_2[] = LT_DDICFIELDS.
38 delete LT_DDICFIELDS_2 where KEYFLAG eq SPACE or DEPTH eq '01'.
39 append lines of LT_DDICFIELDS_2 to RE_FIELDS.
40 * non-key fields
41 if IM_FLAT_STRUCTURES eq C_TRUE.
42 LT_DDICFIELDS_2[] = LT_DDICFIELDS.
43 delete LT_DDICFIELDS_2 where KEYFLAG ne SPACE or DEPTH ne '01'.
44 loop at LT_DDICFIELDS_2 assigning <DDICFIELD>.
45 concatenate <CWA>->NAME '_' <DDICFIELD>-FIELDNAME into <DDICFIELD>-FIELDNAME.
46 <DDICFIELD>-KEYFLAG = 'X'. "otherwise COLLECT won't work when I fill the table
47 endloop.
48 append lines of LT_DDICFIELDS_2 to RE_FIELDS.
49 endif.
50 * sort substructure
>>>>> call method LO_INFONET->SEL_MANAGER->GET_USED_SELECTION_FIELDS
52 exporting
53 IM_INFODIM = LO_INFODIM
54 receiving
55 RE_INFOFIELDS = LT_SELFIELDS
56 exceptions
57 NO_FIELDS_SELECTED = 1
58 others = 2.
59 check SY-SUBRC eq 0.
60
61 clear LS_DDICFIELD.
62 concatenate LO_INFODIM->NAME '_SORT' into LS_DDICFIELD-FIELDNAME.
63 LS_DDICFIELD-ROLLNAME = LV_SORTTYPENAME.
64 LS_DDICFIELD-KEYFLAG = 'X'.
65 LS_DDICFIELD-DEPTH = '01'.
66 LS_DDICFIELD-ICON = CL_NODE_HRF02=>C_ICON_SORTSTR.
67 LS_DDICFIELD-TEXT = TEXT-D01.
68 LS_DDICFIELD-SUBSTRUCTURE = 'X'.
69 append LS_DDICFIELD to RE_FIELDS.
70
But same i have activated and used in QAS system wiht out dumps.
I have check the below post but it's not useful, i am haivng authorisation for P_HRF_META. Getting authorisation for SAP_ALL in PRD system is difficult. In service.sap.com also i have tried but no posts or snotes available.
<a class="jive_macro jive_macro_message" href="" __jive_macro_name="message" modifiedtitle="true" __default_attr="5150907"></a>
Any inputs appreciated....
Regards,
Shankar.
‎2011 Mar 24 9:47 AM
Hi,
Solved the issue.
It's problem with authorisation.
There is no authorisation for P_HRF_TYP in Object P_HRF_META.
This leads to dump while activating in production.
Regards,
Shankar.