cancel
Showing results for 
Search instead for 
Did you mean: 

deleting the unwanted entries in the dropdown list box

Former Member
0 Kudos

Hi all

I have a situation where we need to remove the unwanted entries in the dropdown list box.

We are using the SAP standard Opportunity BSP which has a field by name partner. For selecting a value here we have a dropdown list box with some entries. I just need a couple of them not all. Is there anyway to hide the unwanted entries in the portal.

thanks,

Paul.

Accepted Solutions (0)

Answers (2)

Answers (2)

pramodhkapoor
Advisor
Advisor
0 Kudos

Hello Paul,

In case you use PCUI which also uses BSP then your model access class for partner tab you control the entries via FILL_DROPDOWN_LISTBOX method.

Hope this helps.

Regards

Pramodh

Former Member
0 Kudos

Hi Tiest and Pramodh

CRM_GENEREL_1O_DROP_DOWN_FILL

I guess this is the fucntion module which returns the list of entries in the drop down list box. I am not sure as of what has to be done to limit the entries . Can anyone help me out with this. The code in the function is posted below. I am not able to trace where exactly the data is coming from and where the validations are being made.

The application I am using here is

CRMD_BUS2000111

*==== Partner Function ====

WHEN 'PARTNER_FCT'.

REFRESH lt_vrm_value_s.

  • First, the data for output table has to be created.

CREATE DATA <ls_dropdown_listbox>-data

TYPE STANDARD TABLE OF vrm_value.

  • Assign the field symbol for data table in order to work on the

  • table

ASSIGN <ls_dropdown_listbox>-data->* TO <lt_partner_ft_t>.

  • select the partner determination procedure.

CLEAR lv_part_proc.

SELECT part_determ_proc

INTO lv_part_proc

FROM crmc_proc_type

WHERE object_type = lv_object_type

AND process_blocked = ''.

APPEND lv_part_proc TO lt_part_proc.

ENDSELECT.

SORT lt_part_proc DESCENDING BY part_proc.

DELETE ADJACENT DUPLICATES FROM lt_part_proc COMPARING part_proc

.

  • select the partner function.

CLEAR lv_part_proc.

SELECT partner_fct INTO ls_partner-partner_fct FROM

crmc_partner_pdp

FOR ALL ENTRIES IN lt_part_proc

WHERE

determ_proc = lt_part_proc-part_proc.

APPEND ls_partner TO lt_partner.

ENDSELECT.

  • select the partner function description

CLEAR ls_partner.

LOOP AT lt_partner INTO ls_partner.

ls_vrm_value_s-key = ls_partner-partner_fct.

CLEAR ls_partner_t.

SELECT description INTO ls_partner_t-description FROM

crmc_partner_ft

WHERE partner_fct = ls_partner-partner_fct AND

spras = sy-langu.

  • ls_vrm_value_s-text = ls_partner_t-description.

ENDSELECT.

IF sy-subrc = 0.

ls_vrm_value_s-text = ls_partner_t-description.

ELSE.

ls_vrm_value_s-text = ls_partner-partner_fct.

ENDIF.

APPEND ls_vrm_value_s TO lt_vrm_value_s.

ENDLOOP.

  • sort by description

SORT lt_vrm_value_s BY text AS TEXT.

  • add empty line

CLEAR ls_vrm_value_s-key.

ls_vrm_value_s-text = text-100.

INSERT ls_vrm_value_s INTO lt_vrm_value_s INDEX 1.

APPEND LINES OF lt_vrm_value_s TO <lt_partner_ft_t>.

  • Define, in which column the key is defined

<ls_dropdown_listbox>-keycolumnname = 'KEY'.

  • Define, in which column the description is defined

<ls_dropdown_listbox>-valuecolumnname = 'TEXT'.

regards,

Paul

stephenjohannes
Active Contributor
0 Kudos

Paul,

Are you really talking about the "partner functions" or individual business partners? If you are talking about the partner functions then you need to configure a partner determination procedure for the opportunity that only has the partner types necessary for your processing.

The code segment below looks like to be using the partner determination procedure for the business transaction. If this is the true source of the list you are interested in reducing, then this is system configuration.

However I must warn that if SAP requires a certain partner type for processing of the transaction you can not remove it from the configuration. I will also stress that before you modify the configuration for the standard delivered opportuntity transaction, that you should make a "Z-copy" of it, and then start changing the configuration. Likewise you will need to make a customer copy of the determination procedure and modify accordingly.

Good luck,

Stephen

gregorw
Active Contributor
0 Kudos

Hello Paul,

did you rearly mean the Opportunity Partner field? That should be filled with an Account that is the Opportunity Partner. But when you think of the Partner tab, then you could mean the Partner role.

Regards

Gregor

Former Member
0 Kudos

Partner is just a field in the detail view of Opportunity BSP. It is poppulted with all the partners our company has , but in our instance for now we need only few partners names listed in the drop down.

So my question was is there a way we can hide the remaining partners in the portal.

thanks

Paul

Former Member
0 Kudos

Paul, I know my collegues did it, I will be back shortly. Tiest.