
Hi All,
Most of the Requirements will come like Converting Value Help to Drop down List for that i wanted to share the Some document .
I Explained here how to Convert the Standard Value Help Field (Field:CARD_TYPE) to Dropdown List Field.
Below Screen Shots explains the steps to implement a Convert the Value Help to drop down list box and covers the following topics:
Before Converting the Dropdown List.
Redefine the GET_P_CARD_TYPE (P-getter) Method.
method GET_P_CARD_TYPE.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
rv_value = 'DDLB_SELECT'.
ENDCASE.
endmethod.
Then we need to find the Domain Name Using M-getter (GET_M_CARD_TYPE)
Then Double click on attr type CC_INSTITUTE its Refer to data element and you can get the value table “TB033” give this table name in the V-Getter method and also field Name “CCINS”
Next Redefine the GET_V_CARD_TYPE and write below code
METHOD get_v_card_type.
CALL METHOD super->get_v_card_type
* EXPORTING
* iv_mode = IF_BSP_WD_MODEL_SETTER_GETTER=>RUNTIME_MODE
* iv_index =
RECEIVING
rv_valuehelp_descriptor = rv_valuehelp_descriptor.
rv_valuehelp_descriptor = cl_crm_uiu_md_valuehelp=>v_getter(
is_tabname = 'TB033' "Table name
is_fieldname = 'CCINS'). " Field Name
ENDMETHOD.
OUTPUT:-
Regards,
Vishwanatha N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.