srqm_incidenth

32

Upload: totadeag

Post on 06-Dec-2014

114 views

Category:

Documents


1 download

DESCRIPTION

SRQM_INCIDENTH

TRANSCRIPT

Page 1: SRQM_INCIDENTH
Page 2: SRQM_INCIDENTH
Page 3: SRQM_INCIDENTH
Page 4: SRQM_INCIDENTH
Page 5: SRQM_INCIDENTH
Page 6: SRQM_INCIDENTH
Page 7: SRQM_INCIDENTH
Page 8: SRQM_INCIDENTH
Page 9: SRQM_INCIDENTH
Page 10: SRQM_INCIDENTH
Page 11: SRQM_INCIDENTH
Page 12: SRQM_INCIDENTH
Page 13: SRQM_INCIDENTH
Page 14: SRQM_INCIDENTH
Page 15: SRQM_INCIDENTH
Page 16: SRQM_INCIDENTH
Page 17: SRQM_INCIDENTH
Page 18: SRQM_INCIDENTH
Page 19: SRQM_INCIDENTH
Page 20: SRQM_INCIDENTH
Page 21: SRQM_INCIDENTH
Page 22: SRQM_INCIDENTH
Page 23: SRQM_INCIDENTH
Page 24: SRQM_INCIDENTH
Page 25: SRQM_INCIDENTH
Page 26: SRQM_INCIDENTH
Page 27: SRQM_INCIDENTH
Page 28: SRQM_INCIDENTH
Page 29: SRQM_INCIDENTH

Actually I shud be using this highlighted Comp usage in the event handler, EH_ONSRSTORE as this comp usage has the BP_HEAD_SEARCH.

Page 30: SRQM_INCIDENTH

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                                               *

Page 31: SRQM_INCIDENTH

*                                                                      **----------------------------------------------------------------------** 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( ).

Page 32: SRQM_INCIDENTH

  CHECK lr_entity IS BOUND.  lr_entity->set_property_as_string( iv_attr_name = 'DESC' iv_value = lv_name1 ).

ENDMETHOD.