数据检查部分:
IF gv_zzzcustmodeno1 <> gv_zzzcustmodeno2 AND gv_plg_name NE 'YES'. lv_title = 'Confirm'. lv_text = '違う型番交換が 確認して下さい'. "#EC NOTEXT CLEAR: gr_confirm_popup,gv_plg_name.* Create the popup object 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_yesno RECEIVING rv_result = gr_confirm_popup.* Set even on closing the popup gr_confirm_popup->set_on_close_event( iv_event_name = 'CONFIRM_CLOSED' iv_view = me ). "#EC NOTEXT gr_confirm_popup->open( ).* EXIT. RETURN. ENDIF.
类里属性: GR_CONFIRM_POPUP Instance Attribute Public Type Ref To IF_BSP_WD_POPUP
action:
GV_PLG_NAME Instance Attribute Public Type SEOCMPNAME
定义EVENT:
METHOD EH_ONCONFIRM_CLOSED.* Added by wizard: Handler for event 'CONFIRM_POPUP_CLOSED gv_plg_name = gr_confirm_popup->get_fired_outbound_plug( ). IF gv_plg_name EQ 'YES'. EH_ONSAVE( ). ENDIF. ENDMETHOD.