Skip to Content
avatar image
Former Member

Fetch Content - Active Selection - List UIBB

Hi ,

Created a list uibb in FPM and wanted to executed some events based on the value of the selected row  from the result list of list uibb .

Selected row can be fetched from the result list from CT_DATA parameter in GET_DATA  Method .

However  I need to fetch the selected row in  the process_event method . Not sure how to fetch the contents from the Active Selection Event ?

Best Regards,
Vicky

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 23, 2015 at 01:20 PM

    Hello Vicky,

    As per your question I understood, you need to get the selected record data in process_event method.

    In component configuration, go to general settings/properties switch on the FPM raise event property.

    In feeder class, create an attribute of type which refers result list-uibb table type. Whenever you select the record from result list(lead selection), which triggers flush method. Capture the selected records in above attribute using field-symbols.

    You can reuse this attribute in process_event method.

    Hope it will helps you.

    Regards,

    Naga

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Nagendra,

      Thank you for the response.

      The lead selection records get captured in WDEVENT_PARAMS  in process_event method  .

      Just looking for a method or syntax to fetch the contents from


      WDEVENT_PARAMS ->NEW_LEAD_SELECTION paramter.

      Regards,

      Vicky

  • Oct 23, 2015 at 07:50 PM

    Hi Vicky,

    As per your requirement I understood that you have some Event defined in GET_DATA method where you are getting CT_DATA filled with table records.

    As suggested by Nagandra you should allow Lead selection event raise at List level from Configuration settings.

    Once you do you will get ''FPM_GUIBB_LIST_ON_LEAD_SELECTI'' event raised in GET_DATA as well as in PROCESS_EVENT.

    In  GET_DATA you can use below code to retrieve selected row from LIST.

    It is suggested to use "iv_raised_by_own_ui" event parameter to check if lead selection is actually raised by clicking on LIST row or it is being raised by any other event "LEAD_SELECTION".

    WHEN if_fpm_guibb_list~gc_fpm_event_on_lead_sel.

            IF iv_raised_by_own_ui EQ abap_true.

              <your local table> = ct_data.

              READ TABLE <your local table> INTO <your local structure> INDEX cv_lead_index.

              IF sy-subrc EQ 0.

    *--> Here you will get selected row         

                <your table attribute> = <your local structure>.

              ENDIF.

            ELSE.

    *--> If event is not raised by actual clicking on LIST Row

              <your local table>= ct_data.

              READ TABLE <your local table> WITH KEY hdr_guid = <your table attr>-hdr_guid

              TRANSPORTING NO FIELDS.

              IF sy-subrc EQ 0.

                cv_lead_index = sy-tabix.

                ev_selected_lines_changed = abap_true.

              ENDIF.

            ENDIF.

    ENDCASE.

    Hope this will help.

    Thanks-

    Abhishek

    Add comment
    10|10000 characters needed characters exceeded