Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dropdown in Search GUIBB

Hi Experts,

Could you please explain how to create a dropdown in search GUIBB?

In Form UIBB it is configurable - but couldn't find a option for the same in search uibb.

Former Member
Former Member replied

Hi Soumya,

In the feederclass of your search GUIBB you'll find a method IF_FPM_GUIBB_SEARCH~GET_DEFINITION. Try this code :

data: ls_field_descr_attr     like line of et_field_description_attr,

         lt_set type fpmgb_t_namevalue,

         ls_set type fpmgb_s_namevalue.

ls_field_descr_attr-name = <name of your field>.

* set the type to enumeration

ls_field_descr_attr-is_of_type = if_fpm_guibb_search=>gc_attribute_types-enumeration.

* Fill the value set of the enumeration

ls_set-name  = 'Item 1'.

ls_set-value = '01'.

append ls_set to lt_set.

ls_set-name  = 'Item 2'.

ls_set-value = '02'.

append ls_set to lt_set.

ls_descr_attr-enumeration = lt_set.

append ls_descr_attr to et_field_description_attr.

Best regards


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question