srqm_incidenth
DESCRIPTION
SRQM_INCIDENTHTRANSCRIPT
Actually I shud be using this highlighted Comp usage in the event handler, EH_ONSRSTORE as this comp usage has the BP_HEAD_SEARCH.
METHOD eh_onsrstore.*----------------------------------------------------------------------** Date: Aug 26, 2011 ** Author: Spoorthi S ** ObjectID: 9096 ** Title: Add Additional field, ‘Store ID’ to the Service Request **----------------------------------------------------------------------** Function: To call the Search page, and on Store Id selection, to ** update the backend table entry with the Store ID and to ** populate Store ID Description in the Store ID input field. **----------------------------------------------------------------------** Tables updated: None ** ** External files: None ** ** Input parameters: None ** ** Output parameters: Search Help details ** ** TCode: N/A *
* **----------------------------------------------------------------------** Change History: **----------------------------------------------------------------------** Author Date Request# Description Change # ** -------------- ---------- ----------- ------------------------------ ** Spoorthi S 08/26/2011 CRDK900421 New event handler **----------------------------------------------------------------------*
DATA: lr_context_node TYPE REF TO cl_bsp_wd_context_node, lr_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper, lr_current TYPE REF TO if_bol_bo_property_access, lr_search_entity TYPE REF TO if_bol_bo_property_access, lr_entity TYPE REF TO if_bol_bo_property_access, lv_outbound_plug TYPE seocmpname, lv_partner_no TYPE string, lv_title TYPE string, lv_name1 TYPE string.
IF bpsearch_store_popup IS NOT BOUND. bpsearch_store_popup = comp_controller->window_manager->create_popup( iv_interface_view_name = 'SearchHelpWindow' "#EC NOTEXT* iv_usage_name = 'CUBPSearchStore' iv_usage_name = 'CUBPSearchAccount' iv_title = lv_title ). ENDIF.
lv_outbound_plug = bpsearch_store_popup->get_fired_outbound_plug( ).
CHECK lv_outbound_plug = 'TOOVERVIEW'. lr_context_node = bpsearch_store_popup->get_context_node( iv_cnode_name = 'PARTNER' ). lr_current = lr_context_node->collection_wrapper->get_current( ).
CHECK lr_current IS BOUND. lv_partner_no = lr_current->get_property_as_string( iv_attr_name = 'BP_NUMBER' ).
lr_wrapper = me->typed_context->btadminh->get_collection_wrapper( ). lr_search_entity = lr_wrapper->get_current( ).
CHECK lr_search_entity IS BOUND. lr_search_entity->set_property_as_string( iv_attr_name = 'ZZSTORE_ID' iv_value = lv_partner_no ).
lv_name1 = lr_current->get_property_as_string( iv_attr_name = 'ACCOUNT_NAME' ). lr_entity ?= me->ztyped_context->store->collection_wrapper->get_current( ).
CHECK lr_entity IS BOUND. lr_entity->set_property_as_string( iv_attr_name = 'DESC' iv_value = lv_name1 ).
ENDMETHOD.