Hello SAP gurus,
I have an issue related to the navigation from a popup window.
I want to navigate from the button modify through a confirmation Popup to the view ICCMP_SURVEY/Survey, after the user has confimed the Navigation with OK.
So let'say that the user select ACE Fragenbogen Consulting and then it comes the following popup:
But then I get lost as I cannot navigate through the view ICCMP_SURVEY/Survey.
I have redefined the Event EH_ONSELECT on the view ICCMP_SURVEY/SurveyOverview in the following way:
data:
LV_TITLE type STRING,
LV_TEXT type STRING.
if ZCONFIRM_POPUP is not bound.
LV_TITLE = 'Confirmation Popup'.
LV_TEXT = 'Sie haben den Consulting Fragebogen ausgewählt!'.
call method COMP_CONTROLLER->WINDOW_MANAGER->CREATE_POPUP_2_CONFIRM
exporting
IV_TITLE = LV_TITLE
IV_TEXT = LV_TEXT
IV_BTNCOMBINATION = IF_BSP_WD_WINDOW_MANAGER=>CO_BTNCOMB_OKCANCEL
* IV_CUSTOMBUTTONS =
receiving
RV_RESULT = ZCONFIRM_POPUP
.
ZCONFIRM_POPUP->SET_ON_CLOSE_EVENT( IV_EVENT_NAME = 'CONFIRM_POPUP_CLOSED' IV_VIEW = ME )."#EC NOTEXT
endif.
ZCONFIRM_POPUP->OPEN( ).
Then I have define the event EH_ONCONFIRM_POPUP_CLOSED in the following way:
DATA: lv_answer TYPE string,
lv_save_result TYPE abap_bool,
lr_application TYPE REF TO cl_crm_bol_entity,
lr_tx TYPE REF TO if_bol_transaction_context,
lr_coco TYPE REF TO cl_crmcmp_g_bspwdcompone0_impl.
INCLUDE: crm_object_types_con.
* Retrieve the answer
* this is where you can tell which button has been hold
lv_answer = Zconfirm_popup->get_fired_outbound_plug( ).
CASE lv_answer.
WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_yes.
* view_manager->navigate( source_rep_view = rep_view
*
* outbound_plug = 'NAVIGATIONLINK' ).
* CHECK lr_window IS BOUND.
* lr_window->call_outbound_plug( 'Survey_Detail' ).
* op_surveydetail( ).
WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_no.
WHEN OTHERS.
ENDCASE.
endmethod.
But I still miss a very important point to define within the method 'CONFIRM_POPUP_CLOSED': the navigation.
In fact I do not know if I have to define a navigational link or I can call direct an OP via component Controller.
Sure that anybody has solved this issue. Any help is welcomed.
Regards,
Andrea