Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a 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
    Former Member
    Posted on Jan 24, 2011 at 07:34 AM

    Answered

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.