Hi I have a requirement to display contact search view on contact assignment block of account overview page. (BP_Data) I have created a search button on contact assignment block. created event 'on_search' created outbound plug 'Op_find_contact'. on Contact window, created outbound plug find_contact created outbound plug "op_find_contacts' i m using standard CustomUsage CUContantsearchhelp. outbound plug find_contact here is my sample code. method OP_FINDCONTACT. * Added by wizard: Outbound plug 'FINDCONTACT' DATA: lv_title TYPE string. DATA: lr_node TYPE REF TO cl_bsp_wd_context_node, lr_access TYPE REF TO if_bol_bo_property_access. * Get title 'Search: Contacts' lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BP_DATA/CONTACT_SEARCH' ). * Retrieve Employee Search Window IF gr_contact_search_popup IS NOT BOUND. gr_contact_search_popup = comp_controller->window_manager->create_popup( iv_interface_view_name = 'SearchHelpWindow' iv_usage_name = 'CUContactSearchHelp' iv_title = lv_title ). ENDIF. gr_contact_search_popup->set_on_close_event( iv_view = me iv_event_name = 'SEL_CONTACT' ). * gr_contact_search_popup->set_window_width( cl_crm_uiu_bp_tools=>gv_advsearchhelp_width ). * gr_contact_search_popup->set_window_height( cl_crm_uiu_bp_tools=>gv_advsearchhelp_height ). gr_contact_search_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ). * display OK Button within Contact Quick Create pop-up lr_node ?= gr_contact_search_popup->get_context_node( 'UI' ). IF lr_node IS BOUND. lr_access ?= lr_node->collection_wrapper->get_current( ). IF lr_access IS BOUND. lr_access->set_property( iv_attr_name = 'DISPLAY_QC_OK' iv_value = abap_true ). ENDIF. ENDIF. endmethod. Still outbound plug is not working. Please help. Thanks in advance, Anee
↧