cancel
Showing results for 
Search instead for 
Did you mean: 

How to Add customer fields of type picklist

former_member248975
Participant
0 Kudos

Hi, we area using CRM 2007

I need to add customer field to opportunity, but I need to use type of picklist.

How I can do that

I use tx. EEWD, but i don´t konw how to use picklist

Thanks for your help.

Lidisaid

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use AET tool to add the custom field in CRM 2007

Afer field addition generate getter/setter method for that field.

Then in method get_p...

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

In method get_v... method add your values in picklist....

Before that enhance your view. Define cutom contaxt class

In that define variable of type CL_CRM_UIU_DDLB

i.e Type ref CL_CRM_UIU_DDLB.

Use method set_selection_table to ad values in picklist.

former_member189678
Active Contributor
0 Kudos

Anil,

AET tool is not supported in CRM 2007. It's available from CRM7.0

You can create a Z attrbute through EEWB and enhance the GET_V_XXX method fo the attribute to make it of type Picklist.

Regards,

Harshit

Former Member
0 Kudos

Sorry. I was not aware of that. Thanks for update. But rest logic will work I think.