Hi Rohit,
While setting cursor, you no need to set lead index of table. Also no need to get node reference explicitly, as you can just get it from context element of current cell.
Please refer the below code snippet
DATA view_ctrl TYPE REF TO if_wd_view_controller.
DATA lo_element TYPE REF TO if_wd_context_element.
DATA lo_node TYPE REF TO if_wd_context_node.
DATA lv_index TYPE i.
"get current context element
lo_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
"get node from context element
lo_node = lo_element->get_node( ).
"get current line
lv_index = lo_element->get_index( ).
lv_index = lv_index + 1.
"Get next context element
FREE lo_element.
lo_element = lo_node->get_element( index = lv_index ).
IF lo_element IS BOUND.
view_ctrl = wd_this->wd_get_api( ).
view_ctrl->request_focus(
EXPORTING
context_element = lo_element " Context Element
attribute = 'ICDDESC' " Context Attribute
).
ENDIF.
Hope this simplifies your work.
Regards,
Rama