Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2638

Re: Fetch Content - Active Selection - List UIBB

$
0
0

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


Viewing all articles
Browse latest Browse all 2638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>