on 03-15-2010 3:52 PM
Hi evryone,
Do you konw how to read the lines selected in a ALV table in WDA, if the line is one I know how to do, but if the lines are more than one but not all...what can I do to read only the selected lines?
thank you..
Hi Fabiocoppi,
May be below code sample will be helpful for you...
DATA: lc_index TYPE I VALUE 0,
lo_node TYPE REF TO if_wd_context_node,
lo_element TYPE REF TO if_wd_context_element.
DATA : it_sets type WDR_CONTEXT_ELEMENT_SET,
wa_sets like LINE OF it_sets.
CALL METHOD LO_NODE->GET_SELECTED_ELEMENTS
EXPORTING
INCLUDING_LEAD_SELECTION = ABAP_TRUE
RECEIVING
SET = it_sets.
loop at it_sets into wa_sets.
CALL METHOD WA_SETS->GET_INDEX( RECEIVING MY_INDEX = lc_index ).
lo_element = lo_node->get_element( index = lc_index ).
endloop.
Thanks...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you have changed the cardinality of selction of node to 1..N or 0..N then for node there is a method
called as get_selected_elements, try using this.
if_wd_context_node, method get_selected_elements
Also while configuring your ALV you have to call method
lr_table_settings->set_selection_mode( EXPORTING value = '04' ).
where '04' stands for multi.
Regards
Manas Dua
Edited by: Manas Dua on Mar 15, 2010 10:23 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabiocoppi ,
Please check this : /people/thomas.szcs/blog/2006/07/24/basic-concepts--selection-vs-leadselection
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.