cancel
Showing results for 
Search instead for 
Did you mean: 

Assign custom search help in standard component

RicardoRomero_1
Active Contributor
0 Kudos

Hi all,

I've just created a custom search help as copy of a standard search help, without any modifications by the moment. Both search helps are equal.

I'm trying to assign my custom search help to an input field in a standard component. If works I'll do some modifications...

But, doesn't work. I'm using the below code for assign the custom search help in a post-exit of the method WDDOMODIFYVIEW.


  DATA lo_nd_ship_to TYPE REF TO if_wd_context_node.
  DATA lo_nd_info TYPE REF TO if_wd_context_node_info.
  IF first_time EQ 'X'.
    lo_nd_ship_to = wd_context->get_child_node( name = wd_this->wdctx_partner_data ).
    IF lo_nd_ship_to IS NOT INITIAL.
      lo_nd_info = lo_nd_ship_to->get_node_info( ).
      CALL METHOD lo_nd_info->set_attribute_value_help
        EXPORTING
          name            = 'PARTNER_ID'
          value_help_mode = '121'
          value_help      = 'ZZ_MY_SH'. 
    ENDIF.
  ENDIF.

The problem is after select a value in the result list this value is not assigned to the input field.

If, with the same code, I try to assign others standard searchs help works fine, but with the custom one doesn't work.

I've used this method several times in other components and works fine, but with this doesn't work.

Do you know wich can be the problem?

Thanks in advance.

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

RicardoRomero_1
Active Contributor
0 Kudos

Solved. There was a problem with the search help Exit.