Hi all,
we face a requirement from the business and I don't know how we can develop this. Probably one of you can give me a hint.
We are in an B2B call list scenario (outbound). After trying to reach the customer on the phone the agent presses the "End Contact" button in the context area. During processing of this event (InteractionEndRequest) we need to populate a popup where the agent choses Yes or No. Dependant of the user choice we will set the status for that specific call in the call list (CRMD_TM_IACT-LOCK_STATE) and do some other 'fancy stuff' .
Our first try was to enhance the hidden component (CRMCMP_IC_FRAME) and implement the resp. method of the component controller:
comp_controller->window_manager->create_popup_2_confirm(
EXPORTING
iv_title = lv_string_txt
iv_text = lv_string
iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_yesnocancel
RECEIVING
rv_result = me->message_popup ).
me->message_popup->open( ).
me->message_popup->set_on_close_event( iv_event_name = 'forwardCall' iv_view = me ).
It works quite well on the UI (opoup is appearing, event comes back etc.) The problem we have is that we disturb the correct order of the EndContact event, i.e. after the popup is fired we cannot resume with the event EndContact which leads to unpredictable results.
Did any of You implemented such a popup_to_confirm during the EndContact handling?
Any ideas how to do that?
Any help is appreciated.
Reagrds,
Fabian