cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign search to the field in component FPM_SEARCH_UIBB

Former Member
0 Kudos

Hi All,

I am using FPM_SEARCH_UIBB in FPM_OVP_COMOPONENT as a GUIBB.

Now i want to assign the search help to the selection critria(last input field) available in the component FPM_SEARCH_UIBB. based on the record selected in the first drop down.

please help.

Thanks in advance

Arvind

Accepted Solutions (0)

Answers (2)

Answers (2)

J_R
Employee
Employee
0 Kudos

It's not possible to dynamically change the search help that is assigned to a search field in the Search GUIBB. I guess you would like to do this because you need to implement a dependent search, i.e. a value help for a search field that is dependent on another search field. For example, if you have two search fields 'Country' and 'Region' the search help for the field 'Region' depends on the current search value of the field 'Country'.

This can be done by using the so-called Object Value Selector (OVS). For this, you have to implement interface IF_FPM_GUIBB_OVS_SEARCH for the dependent search field. When triggering the value help for this dependent search field the GUIBB Search will call method SET_CURRENT_SEARCH_CRITERIA of this interface, passing the current search criteria as input parameter to this method. In this way, you can react appropriately on the current search criteria in the subsequent OVS phases (methods HANDLE_PHASE_0, HANDLE_PHASE_1, HANDLE_PHASE_2, HANDLE_PHASE_3) that are called for your dependent search field. The name of the OVS class can be assigned to the dependent search attribute in method IF_FPM_GUIBB_SEARCH-> GET_DEFINITION, exporting parameter ET_FIELD_DESCRIPTION_ATTR.

Edited by: Jens Ruths on Aug 31, 2011 3:06 PM

Former Member
0 Kudos

So you want to dynamically change the search help presented by Search GUIBB?

No clue...are you already implementing GET_DEFINITION?

There is a attribute DDIC_SHLP_NAME on ET_FIELD_DESCTIPTION_ATTR, but I think it will load it permantly:


DATA:
        ls_field_description TYPE fpmgb_s_searchfield_descr.

        ls_field_description-name               = 'field name of search criteria'.
        ls_field_description-DDIC_SHLP_NAME = 'search help for field'.

 APPEND ls_field_description TO et_field_description_attr.


.

Hope it helped,

regards:

Felipe