cancel
Showing results for 
Search instead for 
Did you mean: 

Search Help Value for outmaping is not getting saved.

Former Member
0 Kudos

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 having.....do in have to insert additional code for this.

My code in GET_V_ZZAFLD000000 is like this:

DATA:

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

EXPORTING

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,

Jaya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I found that when i remove the disable option of the project description field ... it gets saved. but i want that field to be disabled.

what could be the reason.

Thanks,

Jaya.

former_member192716
Contributor
0 Kudos

Hi,

If input is disabled for any field, then the corresponding setter method will not be triggered. And hence the value for the field will not be set in the collection wrapper. In your case, you modify the project description upon changing the project id, since project description is disabled the new value will not be set in the collection wrapper.

So, in the project id setter method, after the set_property statement , set the value for project_description as well.

regards,

Arun

Former Member
0 Kudos

Hi Arun,

Thanks for showing me right direction. Yes now the project description field is disabled and it is also getting saved. I have set the property for project description after the set property statement for project id.

Thanks,

Jaya.

Answers (0)