Hello Experts:
I am getting the following runtime error:
"The exception 'CX_WD_CONTEXT' was raised, but it was not caught anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_WDR_CONTEXT_NODE_VAL=======CP' has to be
terminated."
Error analysis
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_WD_CONTEXT', w
therefore caused a runtime error.
The reason for the exception is:
Invalid index 2 when setting lead selection; context node:
V_AO_SOCO_GAF_3.1.REVIEW.1.REVIEW_HEADER.1.TRANS_TYPE_DRPDWN
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_CONTEXT_NODE_VAL=======CP" -
in "IF_WD_CONTEXT_NODE~SET_LEAD_SELECTION_INDEX".
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 15
of the (Include) program "CL_WDR_CONTEXT_NODE_VAL=======CM014".
SOURCE CODE EXTRACT
method IF_WD_CONTEXT_NODE~SET_LEAD_SELECTION_INDEX .
if me->is_finalized = abap_true.
me->_temp_text = me->if_wd_context_node~get_path( ).
raise exception type cx_wd_context exporting textid = cx_wd_context=>finalized node_name = me->_temp_text.
endif.
check whether elements are supllied or not
if me->elements_supplied = ABAP_FALSE.
me->supply_elements( ).
endif.
if index > lines( collection ) or index < if_Wd_context_Node~No_Selection.
tempText = me->if_wd_context_node~get_path( ).
>>>>> raise exception type cx_wd_context exporting
textid = cx_wd_context=>invalid_lead_selection_index
integer = index
node_name = tempText.
endif.
me->_set_lead_selection( index ).
endmethod.
Could anyone please provide any tip to solve this error?
Thank you in advance.
Regards.
Cristian R.