cancel
Showing results for 
Search instead for 
Did you mean: 

Custom value node field search help value is not getting selected

Former Member
0 Kudos

Hi Experts,

I have created one custom component in BSP_WD_CMPWB. Then I have added one view and created one value node with one field PARTNER in that custom view. I have put the below code in the GET_V method of that field. The f4 help is coming properly. But when I selecting any row of that f4 help popup the value is not coming in that field.

METHOD get_v_partner.

  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 = 'STRUCT.PARTNER'

  ls_map-f4_attr = 'PARTNER'.               

  APPEND ls_map TO: lt_inmap,lt_outmap.

  CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr

    EXPORTING

      iv_help_id        = 'ZSWBUPA'                            "#EC NOTEXT

      iv_help_id_kind  = if_bsp_wd_valuehelp_f4descr=>HELP_ID_KIND_DTEL

      iv_trigger_submit = 'X'

      iv_input_mapping  = lt_inmap

      iv_output_mapping = lt_outmap

*    IV_OBJECT_REF    =

      iv_f4title        = 'Select Business Partner'.

ENDMETHOD.

Accepted Solutions (1)

Accepted Solutions (1)

former_member210661
Active Contributor
0 Kudos

Hi Swarup,

i hope you might have checked but just for my confirmation did you check the field in search help.

in context_attr you have passed structure.xxx where as f4_attr that should be the field of search help field name.

ex:

LS_MAP-CONTEXT_ATTR = 'STRUCT.BP_NUMBER'.(Attribute name with Struct.)
LS_MAP-F4_ATTR = 'COUNTRY'. (Search help field attribute in se11)

see this.. link..

Regards,

Srinivas.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Swarup,

Possible mistake could be the f4_attr name that you are specifying.

  ls_map-f4_attr = 'PARTNER'.              


f4_attr is the name of search help field name.


Thanks,

Ritu

Former Member
0 Kudos

Thanks Ritu.. its working..

former_member183424
Active Contributor
0 Kudos

If you have found your solution, then you should close your discussion by marking correct and helpful answer (if any). Have a look into the blog post How to close a discussion and why | SCN

Also read the blog post for a reference