Skip to Content
Former Member
Jun 21, 2010 at 04:25 AM

Search Help Value for outmaping is not getting saved.


Hello ,

I have 2 custom fields on the Lead page. ZPROJECT ID and ZPROJECTDECSRIPTION.

i added the search help for ZPROJECTID field , it is working fine .... also when the id is selected the description appear in the second field ZPROJECTDECSRIPTION , which is disabled.

Now when i save the Lead transaction ZPROJECTID is getting saved but

1. ZPROJECTDECSRIPTION value is not saved.

What could be the reason for this behaviour , beacuse for any custom field according to me we do't have to do any extra coding for saving it.

2. without selecting search help if i enter the project id and press enter project description should appear as it does in standard, but even this is not in have to insert additional code for this.

My code in GET_V_ZZAFLD000000 is like this:


ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,

lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,

lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.

ls_map-context_attr = 'EXT.ZZAFLD000000'. "u201C Project id

ls_map-f4_attr = 'PRJID'. "u201C

APPEND ls_map TO: lt_inmap.

ls_map-context_attr = 'EXT.ZZAFLD000000'. "u201C projectid

ls_map-f4_attr = 'PRJID'. "u201C

APPEND ls_map TO: lt_outmap.

ls_map-context_attr = 'EXT.ZZAFLD00000D'. "u201C project dec

ls_map-f4_attr = 'DESCR'. "u201C

APPEND ls_map TO: lt_outmap.

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr


iv_help_id = 'ZPROJECT' "u201CCUSTOM Search help name created in step 1

iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name

iv_input_mapping = lt_inmap

iv_output_mapping = lt_outmap.

Thanks in advance,