on 08-05-2014 7:06 AM
Hi All,
I am calling a FPM configuration as popup, i have used standard button CLOSE. Now I wanted to assigned my own action to it. How can i achieve this ?
As in webdynpro we can use SUBSCRIBE_TO_BUTTON_EVENT, similarly which method i can use in FPM ?
E.g. in below case i wanted to write my own code on click of OK button.
LS_DB_PROP-BUTTON_SET = 2.
LS_DB_PROP-TEXT_FOR_CLOSE_BUTTON = 'Ok'.
CALL METHOD LO_FPM->OPEN_DIALOG_BOX
EXPORTING
IV_DIALOG_BOX_ID = LV_WINDOW_ID
IS_DIALOG_BOX_PROPERTIES = LS_DB_PROP
IO_EVENT_DATA = LO_FPM_EVENT_DATA
* IV_EVENT_ADAPTS_CONTEXT =
.
Thanks in Advance,
P$G
Hi Prathamesh,
Refer to this Opening and Closing FPM Dialog Boxes which might help you.
For catching the event :
When cl_fpm_event=>gc_event_close_dialog_box.
io_event->mo_event_data->get_value(
EXPORTING
iv_key = 'DIALOG_BUTTON_ACTION'
IMPORTING
ev_value = lv_string
).
IF lv_string EQ 'CLOSE'.
---------------------------
Write logic here
--------------------------
endif.
Hope it might help you.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.