on 09-15-2011 10:21 AM
Hi,
I am getting the following dump in the standard program code, there is a z webdynpro program being used but how do I find the root cause?
Termination occurred in the ABAP program "CL_WDR_CONTEXT_NODE===========CP"
in "_RAISE_ELEMENT_NOT_FOUND".
Line SourceCde
1 method RAISEELEMENT_NOT_FOUND.
2 data: l_count type I,
3 l_node_name type string.
4
5 l_node_name = if_wd_context_node~get_path( ).
6
7 l_count = if_wd_context_node~get_element_count( ).
8 if l_count = 0.
>>>>> raise exception type cx_wd_context exporting textid = cx_wd_context=>NODE_EMPTY node_name = l_node_name.
The pasted code suggest me that you are doing it wrong.
if_wd_context_node~get_path( ). ? how do you get the instance of it?
normally i would do like
l_node = wd_context->get_child_node( name = 'name of the node here' ).
l_count = l_node~get_element_count( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am getting the dump in following place now after changing some on the values in webdynpro program,
1 method IF_WD_CONTEXT_NODE~SET_LEAD_SELECTION.
2
3 data:
4 cl_element type ref to cl_wdr_context_element.
5
6 if me->is_finalized = abap_true.
7 me->_temp_text = me->if_wd_context_node~get_path( ).
8 raise exception type cx_wd_context exporting textid = cx_wd_context=>finalized node_name
9 endif.
10
11 * check whether elements are supllied or not
12 if me->elements_supplied = ABAP_FALSE.
13 me->supply_elements( ).
14 endif.
15
16 cl_element ?= element.
17
18 read table me->collection transporting no fields with table key table_line = cl_element.
19 if sy-subrc <> 0 or element is initial.
20 tempText = me->if_wd_context_node~get_path( ).
>>>>> raise exception type cx_wd_context exporting textid = cx_wd_context=>invalid_lead_select
22 endif.
23
24 me->_set_lead_selection( sy-tabix ).
25
26 endmethod.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.