Skip to Content
author's profile photo
Former Member

Regarding Drop down box creation :

Hi Friends,

I need to create a Drop down list box in SAP CRM Web UI inside a view for Business partner role.

Can anybody urgently guide me on the Step by Step procedure for it.

I referred one link, but coud'nt get properly. Link is as follows.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0959825-8dd5-2b10-dca4-e47aa7eb548a

Regards,

Chitrakant

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Oct 20, 2009 at 02:26 PM

    Hi,

    Do the Following steps,

    1. Go to the Business Partner Role Attribute in Context node

    2. Create P and V method for that attribute.

    3. In P method insert the following code.

    CASE iv_property.

    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

    rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.

    ENDCASE.

    4. In V method insert the following code

    Please uncomment it ....

    *

    • DATA: lt_ddlb TYPE bsp_wd_dropdown_table,

    *ls_ddlb TYPE bsp_wd_dropdown_line,

    *lv_display_only TYPE string,

    *gr_ddlb_verksomr TYPE REF TO cl_crm_uiu_ddlb,

    *ls_verksomr_values TYPE LINE OF vrm_values.

    *

    • ls_ddlb-key = '1'.

    • ls_ddlb-value = 'Male'.

    *

    • APPEND ls_ddlb TO lt_ddlb.

    *

    • ls_ddlb-key = '2'.

    • ls_ddlb-value = 'Female'.

    *

    • 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.

    Note: The Field has to be Enabled and must not be in display mode to see the

    Changes.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ranjita Kar

      I know that the very nature of a drop-down box is that you select a single entry and that's it, but, is there any standard way of having a drop-down box which allows more than one entry to be selected?.

      I suspect not and may have to create my own view and then call it.

      Any comments would be appreciated.

      John Sapora

  • author's profile photo
    Former Member
    Posted on Jan 24, 2011 at 07:34 AM

    Answered

    Add comment
    10|10000 characters needed characters exceeded