Skip to Content
0
Former Member
Apr 11, 2008 at 04:19 AM

Regard Node methods?

16 Views

Hi All,

in my application,1st i want to display a alv report having checkboxes in one column.

if user select any checkbox the recoerd must be selected.at a time user can select any no checkboxes.after that we have to coollect all the selected records.for those i have to update in database.

DATA: lr_node_ep_sch_info TYPE REF TO IF_WD_CONTEXT_NODE,

lr_el_ep_sch_info TYPE REF TO if_wd_context_element,

lt_ep_sch_info TYPE if_resultview->elements_ep_sch_info,

ls_ep_sch_info TYPE if_resultview->element_ep_sch_info,

lv_checked LIKE ls_ep_sch_info-chk_box.

lr_node_ep_sch_info = wd_context->get_child_node( wd_this->wdctx_ep_sch_info ).

lr_el_ep_sch_info = lr_node_ep_sch_info->get_element( ).

*get single attribute

lr_el_ep_sch_info->get_attribute(

EXPORTING

name = `CHK_BOX`

IMPORTING

value = lv_checked ).

IF lv_checked = 'X'.

lr_el_ep_sch_info->SET_SELECTED( EXPORTING ABAP_BOOL = 'YES' ).

lr_node_ep_sch_info->GET_SELECTED_ELEMENTS( ).

i write like above,what i am asking how can get the selected records in to internal table.and can i use GET_ELEMENTS( ) in place of GET_ELEMENT( ).we r not looping anywhere,then how should it check attribute of all the selected records.?

Regards,

Ravi