Skip to Content

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.

/wp-content/uploads/2012/12/7_169331.png/wp-content/uploads/2012/12/8_169332.png

Redefine the  GET_P_CARD_TYPE (P-getter) Method.

/wp-content/uploads/2012/12/9_169334.png

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)

/wp-content/uploads/2012/12/2_169335.png

/wp-content/uploads/2012/12/1_169333.png

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”

/wp-content/uploads/2012/12/3_169336.png

Next Redefine the GET_V_CARD_TYPE and write below code

/wp-content/uploads/2012/12/4_169337.png/wp-content/uploads/2012/12/5_169338.png

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

/wp-content/uploads/2012/12/6_169340.png

Regards,

Vishwanatha N

To report this post you need to login first.

10 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply