cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the Lead Selection in Search UIBB

Former Member
0 Kudos

Hello,

I have a Search UIBB implementation with the list from Search UIBB.

When the user double click any line in the List we want to call another program.  Not sure how to read the Lead selection. I see the event ID FPM_RESULT_LEAD_SEL  in Process_Event method and GET_DATA method but not sure how to get the actual line.

Thanks in advance for any help.

Regards,
PK

Accepted Solutions (1)

Accepted Solutions (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi ,

method IF_FPM_GUIBB_SEARCH~PROCESS_EVENT.

CASE IO_EVENT->MV_EVENT_ID.


WHEN  IF_FPM_GUIBB_SEARCH=>FPM_RESULT_LEAD_SEL.


  READ TABLE   IT_RESULT_LIST  into  IS_RESULT_LIST index IV_LEAD_INDEX.


ENDCASE.




Where  IT_RESULT_LIST -> is the internal table of   ET_RESULT_LIST( This can be declared in attributes section and assigned value in GET_DATA method )

  IS_RESULT_LIST-> is a structure of type  table  IT_RESULT_LIST.


IV_LEAD_INDEX has to be created at attributes section and the value of the selected row of type I can be assigned in IF_FPM_GUIBB_SEARCH~FLUSH method for the same event.


Regards,

Harsha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Palani,

You can read the Selected record from the Flush method. In Flush method you will have the table parameter IT_CHANGE_LOG. In the IT_CHANGE_LOG table you will have the field TABLE_ROW.

Table_Row will have the reference to the Selected record of the list structure.

field-symbol <fs_structure> type <LIST STRUCTURE>

Read table it_change_log into data(ls_change_log) index 1.

if sy-subrc eq 0.

<fs_structure> = REF #(ls_change_log-table_row).

endif.

Finally <fs_structure> will contain the Selected record data. Hope this helps you

Regards,

Ravikiran.K