Skip to Content
0
Former Member
Jul 17, 2009 at 10:28 AM

Popup on a field value

18 Views

Hi,

I have a requirement where I need a popup whenever a user selects a particular value.

Field has a F4 help. When user selects 'S' from it then system should display another popup stating 'Key figure'. I put all validation logic in GET_FIELD method and assigned an outbound plug 'ON_KEYUSER' in this method:

  • Partner is key customer. Popup message

CREATE OBJECT lv_valuehelp_descriptor

TYPE

cl_bsp_wd_valuehelp_navdescr

EXPORTING

iv_outbound_plug = 'OP_KEYUSER'.

In OP_KEYUSER i wrote following code:

IF confirm_popup IS NOT BOUND.

DATA: lv_save TYPE string,

lv_text TYPE string,

rv_result TYPE REF TO if_bsp_wd_popup.

lv_save = text-001. "#EC N

lv_text = text-002.

CALL METHOD comp_controller->window_manager->create_popup_2_confirm

EXPORTING

iv_title = lv_save

iv_text = lv_text

iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_ok

RECEIVING

rv_result = confirm_popup.

confirm_popup->set_on_close_event( iv_event_name = 'CONFIRM_EMAIL'

iv_view = me ). "#EC NOTEXT

ENDIF.

confirm_popup->open( ).

But control doesn't come to this outbound plug at all. Is it possible to have a popup on field value selection?

Regards,

Shikha