Hi ,
i am trying to pass the multiple records which has selected in search result view to the outbound plug to display those records as popup. but i am getting only one record in popup insted of all whcih has selected.
Eg: if i select 2 records in search result and click on button it should show the popup with those 2 records. but here i am getting the last record not displaying the first record.
lr_comp_ctrl ?= me->comp_controller.
loop at GT_SELECTED_ROWS into ls_SELECTED_ROWS.
lr_ent = lr_comp_ctrl->typed_context->ubdheader->collection_wrapper->find( iv_index = ls_SELECTED_ROWS-INDEX ).
CHECK lr_ent IS BOUND.
lr_ent->get_property_as_value(
EXPORTING
iv_attr_name = 'HEADNO_EXT'
IMPORTING
ev_result = ls_ref_header-object_id ).
ls_ref_header-object_type = 'BILLDO'. "#EC NOTEXT
lv_value_node->set_properties( ls_ref_header ).
lv_bo_coll->add( lv_value_node ).
endloop.
gv_fu_popup->set_on_close_event( iv_view = me iv_event_name = 'FOLLOWUP_SEL_CLOSED' ).
gv_fu_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
gv_fu_popup->open( iv_inbound_plug = 'EXTFOLLOWUP' iv_collection = lv_bo_coll ).
regards,
vk