Skip to Content
avatar image
Former Member

Custom value node field search help value is not getting selected

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.

2.jpg (84.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 07, 2015 at 02:40 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 08, 2015 at 09:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded