cancel
Showing results for 
Search instead for 
Did you mean: 

lead selection

Former Member
0 Kudos

Hi experts ,

i am new to webdynpro abap

lead selection by default point to first element of nade right . How we can move lead selection to other elements or other nades.

please provide some example programs on this.

thank you,

santosh.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In the doinit u can write the following code for this.

DATA lo_nd_cn_sflight TYPE REF TO if_wd_context_node.
* navigate from <CONTEXT> to <CN_SFLIGHT> via lead selection
  lo_nd_cn_sflight = wd_context->get_child_node( name = wd_this->wdctx_cn_sflight ).
  CALL METHOD lo_nd_cn_sflight->set_lead_selection_index
    EXPORTING
      index = '2'.      "give the lead selection Index

here cn_sflight is the node name.