‎2007 Dec 28 4:49 PM
Hi All,
In TCODE:ST22,
Name of runtime error is RAISE_EXCEPTION.
Information on where terminated:RAISE NODE_NOT_FOUND.
Program: CL_GUI_ALV_TREE===============CP.
Please provide an analysis.
Rewarded points.
‎2007 Dec 28 4:51 PM
Hi Ravi,
Paste your code here and try to find exactly which line you got error.
Thanks.
‎2007 Dec 28 4:54 PM
DATA LT_NODE_KEY TYPE LVC_T_NKEY.
APPEND I_NODE_KEY TO LT_NODE_KEY.
CALL METHOD ME->ENSURE_NODES_VISIBLE
EXPORTING IT_NODE_KEYS = LT_NODE_KEY
EXCEPTIONS NODE_NOT_FOUND = 1.
IF SY-SUBRC = 1.
-
>RAISE NODE_NOT_FOUND.
ENDIF.
‎2007 Dec 28 5:07 PM
Between try and endtry of the method you need to catch exceptions.
try.
cl_salv_tree=>factory(
exporting
r_container = w_container
importing
r_salv_tree = w_tree
changing
t_table = it_dummy ).
catch cx_salv_no_new_data_allowed cx_salv_error.
exit.
endtry.
In your case catch exceptions are
FAILED NODE_NOT_FOUND CNTL_SYSTEM_ERROR
There was error in that method but no exception handling for the same. that is why it is giving dump.
‎2007 Dec 28 5:08 PM
Ravi,
The following OSS Note Talks about your Dump. Take a look into that and apply patches.
Note 920565 - Exception NODE_NOT_FOUND in CL_GUI_ALV_TREE
Symptom
If the ENSURE_NODES_VISIBLE method of the CL_GUI_ALV_TREE class is called in the same PBO in which the ALV tree is generated, the NODE_NOT_FOUND exception occurs when you execute the transaction that uses the ALV tree. For example, this error occurs in transaction ME41 if you imported the Discrete Industries add-on in the system. The add-on modifies transaction ME41 in such a way that the system uses an ALV tree instead of the standard tree.
Other terms
ME41
Reason and Prerequisites
This problem is caused by an error in Web GUI.
Solution
SAP ITS 6.20: import patch 21.
SAP NetWeaver 2004: import patch 112.
NetWeaver 2004s : import patch 44.
************************
Le'me know if it helped.
Vinodh Balakrishnan
‎2007 Dec 28 5:25 PM
Hi vinod
I am getting error analysis like this.
A RAISE statement in the program "CL_GUI_ALV_TREE===============CP" raised the
exception
condition "NODE_NOT_FOUND".
Since the exception was not intercepted by a superior
program, processing was terminated.
I should prepare analysis for this why it is going to dump.
Rewarded points.