Hi Andie,
here context_attribute means from where you f4 help was triggered and selection needs to come back.
f4_att means the field in the search help.
in your case you want to place the f4_attr name either 'WAERS' or 'LTEXT'.
example code:
here my field ext_locno which i have provided f4 help i want to display f4 values as werks(plant) which is coming form my structure in your case CMSH_CURRENCY.
ls_map-context_attr = 'struct.EXT_LOCNO'. " Field from where F4 help was triggered and selection needs to come back
ls_map-f4_attr = 'WERKS'. " Field in the search help
APPEND ls_map TO: lt_inmap,lt_outmap.
go through this link you can come to know where exactly you have done mistake..
use this code in your currency field if you want..
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 = 'provide your attribue name here'.
ls_map-f4_attr = 'KEY'.
APPEND ls_map TO: lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'CRMD_PRICING-CURRENCY'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Thanks & Regards,
Srinivas.