Skip to Content
0
Former Member
Apr 08, 2014 at 03:00 PM

CRM UI Drop down list data manipulation

56 Views

Hello,

on the basic search window "Service Professional --> Compaints & Returns" i have a search criteria based on Partner Function. It is a predefined drop down list determined in the customization. I would like to delete certain entries in this drop down list.

Im thinking there are 2 different solutions:

1.) Customization (delete the partner functions that shouldnt be available):

Problem is i dont know where is the customization for basic search view (component BT120_CPL). I know that for transactions the available partner functions are defined in Partner Determination Procedure

2.) Manipulate the drop down list in the GET_V_PARTNER_FCT:

Problem is that the drop down list gets populated AFTER the GET_V_PARTNER_FCT. For instance i use this code:

data lt_ddlb type bsp_wd_dropdown_table.
data ls_ddlb type bsp_wd_dropdown_line.
data gr_ddlb_verksomr type ref to cl_crm_uiu_ddlb.
data ls_verksomr_values type line of vrm_values.

clear ls_ddlb.
ls_ddlb-key = '1'.
ls_ddlb-value = 'Test Partner Function'.

APPEND ls_ddlb TO lt_ddlb.

if gr_ddlb_verksomr is not bound.
FREE gr_ddlb_verksomr.
CREATE OBJECT gr_ddlb_verksomr
EXPORTING
iv_source_type = 'T'.
endif.

gr_ddlb_verksomr->set_selection_table( it_selection_table = lt_ddlb ).
rv_valuehelp_descriptor = gr_ddlb_verksomr.

In the end i get original drop down list + 1 new entry ('Test Partner Function').

What can i do ?

Thanks in advance, Zoran