2009 Mar 06 10:57 AM
hello gurus,
I have created a subscreen for lbk1 transaction code . I am able to see the subscreen but when i am clicking on save button iam getting the bellow error ,
kindly solve my problem , i am new to badi concept.
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Except. CX_SY_REF_IS_INITIAL
Date and Time 06.03.2009 16:00:02
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLDIACL_GUI_LGE" 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 "DIOHFW_GUI_START_APPL" "(FUNCTION)", 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: "GR_LOG_ENTRY").
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
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"
"SAPLDIACL_GUI_LGE" or "LDIACL_GUI_LGEI01"
"LOCK_LGE"
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
"DIOHFW_GUI_START_APPL" "(FUNCTION)", or its possible occurrence must be
declared in the
RAISING clause of the procedure.
To prevent the exception, note the following:
Line SourceCde
1 ----
2 ***INCLUDE LDIACL_GUI_LGEI01 .
3 ----
4 &----
5 *& Module lock_lge INPUT
6 &----
7 * text
8 ----
9 MODULE lock_lge INPUT.
10
11 CHECK NOT g_lge_impl IS INITIAL.
12
13 IF ( gr_browser->get_fcode( ) EQ gcs_fcode-change ) OR (
14 gr_browser->get_fcode( ) EQ gcs_fcode-create ) .
15
16 * lock log entry to be changed
>>>>> CALL METHOD gr_log_entry->if_appl_obj_ohfw~lock
18
19 * NOTE 762646 - MEB upporting
20 EXCEPTIONS
21 foreign_lock = 1.
22
23 * evaluate lock result
24 IF NOT sy-subrc IS INITIAL.
25
26 MESSAGE ID sy-msgid
27 TYPE 'I'
28 NUMBER sy-msgno
29 WITH sy-msgv1 sy-msgv2
30 sy-msgv3 sy-msgv4.
31
32 * locking failed -> set function code to display
33 CALL METHOD gr_browser->set_fcode( gcs_fcode-disp ).
34
35 * message to user
thanks in advance,
padmaja
36
hello gurus,
I have created a subscreen for lbk1 transaction code . I am able to see the subscreen but when i am clicking on save button iam getting the bellow error ,
kindly solve my problem , i am new to badi concept.
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Except. CX_SY_REF_IS_INITIAL
Date and Time 06.03.2009 16:00:02
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLDIACL_GUI_LGE" 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 "DIOHFW_GUI_START_APPL" "(FUNCTION)", 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: "GR_LOG_ENTRY").
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
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"
"SAPLDIACL_GUI_LGE" or "LDIACL_GUI_LGEI01"
"LOCK_LGE"
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
"DIOHFW_GUI_START_APPL" "(FUNCTION)", or its possible occurrence must be
declared in the
RAISING clause of the procedure.
To prevent the exception, note the following:
Line SourceCde
1 ----
2 ***INCLUDE LDIACL_GUI_LGEI01 .
3 ----
4 &----
5 *& Module lock_lge INPUT
6 &----
7 * text
8 ----
9 MODULE lock_lge INPUT.
10
11 CHECK NOT g_lge_impl IS INITIAL.
12
13 IF ( gr_browser->get_fcode( ) EQ gcs_fcode-change ) OR (
14 gr_browser->get_fcode( ) EQ gcs_fcode-create ) .
15
16 * lock log entry to be changed
>>>>> CALL METHOD gr_log_entry->if_appl_obj_ohfw~lock
18
19 * NOTE 762646 - MEB upporting
20 EXCEPTIONS
21 foreign_lock = 1.
22
23 * evaluate lock result
24 IF NOT sy-subrc IS INITIAL.
25
26 MESSAGE ID sy-msgid
27 TYPE 'I'
28 NUMBER sy-msgno
29 WITH sy-msgv1 sy-msgv2
30 sy-msgv3 sy-msgv4.
31
32 * locking failed -> set function code to display
33 CALL METHOD gr_browser->set_fcode( gcs_fcode-disp ).
34
35 * message to user
thanks in advance,
padmaja
36
2009 Mar 06 10:59 AM
2009 Mar 06 11:14 AM
hi,
as I am new to this concept ,I am unable to find out the mistake can u please tell what i need to do.
thanks ,
padmaja.
2009 Mar 06 10:59 AM
comment your code in Badi and try, Check step by step. probably this is because of your code in BADI.
2009 Mar 06 11:12 AM
hi,
I have not written any code inside the implementation of badi.
can u please tell the steps to correct the mistake.
thanks in advance,
padmaja.
2009 Apr 02 3:05 PM
2009 Apr 08 7:00 AM
Hi Padmaja,
i am facing the same problem.if u got the solution please let me know.
subrat
2014 Nov 20 12:26 AM
Hi Padmaja,
Please check if note 1849442 helps on this issue.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |