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