Skip to Content
0
Jul 11, 2008 at 12:01 PM

Help Needed in Input Value Help of Custom Set attribute

35 Views

Hi All,

We have maintained value table for custom set type attribute. We generated UI configuration for this set type and brought it into the web UI. But, we did not get the value help on the UI.

We are trying to get the value help by implementing the BADI crm_prdgenset_valuehelp. This BADI returns object of type cl_bsp_wd_valuehelp_f4descr.

PFB the code that is showing up the Value help icon but it is not showing any values.

DATA: lv_valuehelp_descriptor type ref to cl_bsp_wd_valuehelp_f4descr.

  • * lv_fname_prefix = 'STRUCT'.
  • ls_map-context_attr = component. "ZCSDR_PRD_CLS
  • ls_map-f4_attr = 'KEY'.
  • INSERT ls_map INTO TABLE lt_outmap.
  • INSERT ls_map INTO TABLE lt_inmap.
  • CONCATENATE 'ZCSDR_CLS' 'ZZ0010' INTO lv_help_id SEPARATED BY '-'.
  • CREATE OBJECT lv_valuehelp_descriptor
  • TYPE
  • cl_bsp_wd_valuehelp_f4descr
  • EXPORTING
  • iv_help_id = lv_help_id
  • iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
  • iv_input_mapping = lt_inmap
  • iv_output_mapping = lt_outmap
  • iv_trigger_submit = ABAP_TRUE.
  • .
  • rv_valuehelp_descriptor = lv_valuehelp_descriptor.
* *

Any pointers on this is really helpful.

Thanks,

Udaya