cancel
Showing results for 
Search instead for 
Did you mean: 

FPM add detail component to POWL

jasonwangcn
Participant
0 Kudos

Hi All expert,

I am working on an POWL. User want when they select one result record then this record's detail item data be displayed.

May u have any steps info to realize this?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

hongsy93
Explorer
0 Kudos

Hi, Joshua.

Step 1. you add your GUIBB on your POWL component configuration. Refer to below that first section is POWL and second section is detail when a user select a row in POWL worklist.

Step 2. you should occur a event called "POWL_LEAD_SEL", it makes FPM event call.

DATA(lo_event) = cl_fpm_event=>create_by_id( iv_event_id = i_actionid ).
READ TABLE c_result_tab ASSIGNING <l_result_tab> INDEX i_action_index.
IF <l_result_tab> IS ASSIGNED.
lo_event->mo_event_data->set_value(
EXPORTING
iv_key = 'DATA'
iv_value = <l_result_tab>
).
ENDIF.
lo_fpm = cl_fpm_factory=>get_instance( ).
* lo_fpm->raise_event_by_id( i_actionid ).
lo_fpm->raise_event( io_event = lo_event ).

Step 3. get data in your feeder class of your GUIBB in GET_DATA method and do what you want.

CASE io_event->mv_event_id.
WHEN 'POWL_LEAD_SEL' OR 'FPM_TAB_CHANGE'.
io_event->mo_event_data->get_value(
EXPORTING
iv_key = 'DATA'
IMPORTING
ev_value = ls_data
).