on 04-26-2010 9:12 AM
Hi Experts ,
How to set the multiple Lead Selection in a table by programatically ,
in the doinit method before binding the table values i want to set multiple lead selection for the table entries based on my condition .
LOOP AT lt_node_select_employee INTO ls_node_select_employee.
lv_cnt = sy-tabix .
READ TABLE lt_node_pop_emp INTO ls_node_pop_emp WITH key POP_EMP_ID = ls_node_select_employee-EMP_ID.
IF sy-subrc eq 0.
CALL METHOD WD_CONTEXT->SET_LEAD_SELECTION_INDEX
EXPORTING
INDEX = lv_cnt .
ENDIF.
CLEAR lv_cnt
lo_nd_node_select_employee->bind_table( new_items = lt_node_select_employee
set_initial_elements = abap_true ).
my code is giving dump when its coming to the second loop . help me regarding this
regards
chinnaiya .P
Edited by: chinnaiya pandiyan on Apr 26, 2010 1:45 PM
Hi,
do you think it is possible to have multiple lead selections? I think only common selection can be multiple, but I can be wrong. Then you can use SET_SELECTED method.
Regards Jiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The lead selection is not setting .
now i change the coding as per your advise
data lo_el_node_select_employee TYPE REF TO if_wd_context_node.
LOOP AT lt_node_select_employee INTO ls_node_select_employee.
lv_cnt = sy-tabix.
READ TABLE lt_node_pop_emp INTO ls_node_pop_emp WITH key POP_EMP_ID = ls_node_select_employee-EMP_ID.
IF sy-subrc eq 0.
* CALL METHOD WD_CONTEXT->SET_LEAD_SELECTION_INDEX
* EXPORTING
* INDEX = lv_cnt .
CALL METHOD lo_nd_node_select_employee->SET_SELECTED
EXPORTING
FLAG = abap_true
INDEX = lv_cnt . .
ENDIF.
Edited by: chinnaiya pandiyan on Apr 26, 2010 3:07 PM
Edited by: chinnaiya pandiyan on Apr 26, 2010 3:17 PM
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.