on 10-23-2015 1:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.