cancel
Showing results for 
Search instead for 
Did you mean: 

How to display data from search UIBB to list UIBB

former_member210804
Active Participant
0 Kudos

Hi Experts,

I have search UIBB with personnel number. Once i click on search button , I should display data in LIST UIBB.

I had written code but it is triggering LIST UIBB first and then SEARCH UIBB.

Please help me how to trigger SEARCH UIBB first and then LIST UIBB.

Best regards,

Narasimha.

Accepted Solutions (1)

Accepted Solutions (1)

former_member210804
Active Participant
0 Kudos

Hi,

I found the solution. Created one singleton class to set and get data and used raise_event_by_id method to call the PROCESS_EVENT method.

sample code: in PROCESS_EVENT method of Search UIBB

CHECK io_event->mv_event_id = if_fpm_guibb_search=>fpm_execute_search.

     TRY .

         DATA: lr_fpm        TYPE REF TO if_fpm.

         lr_fpm = cl_fpm_factory=>get_instance( ).

           DATA mo_instance TYPE REF TO zcl_emp_details2_singleton.

           CALL METHOD zcl_emp_details2_singleton=>get_instance

             RECEIVING

               re_instance = mo_instance.

           CALL METHOD mo_instance->set_user_details

             EXPORTING

               iv_condition = it_fpm_search_criteria."lt_where.

         lr_fpm->raise_event_by_id(

           EXPORTING

             iv_event_id   = if_fpm_guibb_list=>gc_event_open_search"gc_event_list_filter    " This defines the ID of the FPM Event

*            io_event_data = lr_event_data    " Property Bag

         ).

       CATCH cx_fpmgb.

     ENDTRY.


sample code: in PROCESS_EVENT method of LIST UIBB


DATA: lt_fpm_search_criteria TYPE fpmgb_t_search_criteria.

     CASE io_event->mv_event_id.

       WHEN if_fpm_guibb_list~gc_event_open_search.

         DATA mo_instance TYPE REF TO zcl_emp_details2_singleton.

         CALL METHOD zcl_emp_details2_singleton=>get_instance

           RECEIVING

             re_instance = mo_instance.

         CALL METHOD mo_instance->get_user_details

           IMPORTING

             ev_condition = gt_condition.



Best regards,

Narasimha.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Narasimha,

Need to fetch the data in the process_event method based on the search action and after fetching pass the data to the list uibb using MT_PARAMETERS in the io_event. You need to capture the same data in get_data method under the fpm_execute_search action of List uibb feeder class.

Hope this is help full.

Regards,

Naga

former_member469314
Participant
0 Kudos


Hi Narasimha,

the method PROCESS_EVENT is called before the method GET_DATA.

So you can use method PROCESS_EVENT in the search UIBB to add the search criteria to the event and then select your data in method GET_DATA in the list UIBB.

Regards,

Rebekka

former_member210804
Active Participant
0 Kudos

Hi Rebekka,

I did the same. But it is triggering PROCESS_EVENT of LIST UIBB first and then SEARCH UIBB. In this case, data can not be processed.     

Best regards,

Narasimha

former_member469314
Participant
0 Kudos

Do you really need to use the method PROCESS_EVENT of the LIST UIBB?

If you just want to display data you can use method GET_DATA to handle the event.