cancel
Showing results for 
Search instead for 
Did you mean: 

Call search help manually

Former Member
0 Kudos

Hi all,

I want to call a search help manually on button click. For this issue I've founded this topic: http://scn.sap.com/thread/1332842

Is the answer given there still correct, that the class CL_WDR_VALUE_HELP_HANDLER is SAP internal and should not be used?

I can use a alternative solution but I don't if is possible. Display a InputField and disabling it that the text can only changed by the corresponding Search Help of the Context Attribute. Is there a way to achieve this?

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You can use the mentioned class, but since its an internal class SAP may delete at any time in future!

So you can check this alternative for your requirement : http://scn.sap.com/docs/DOC-33880  bu Amy

Hope this helps u.,

Regards,

Kiran

Former Member
0 Kudos

Hi,

this is a clever workaround but with this way I will lose the F4 key functionality.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all,

I've found another solution: IF_WD_WINDOW_MANAGER=>OPEN_VALUE_HELP( ).

This seems to be the official solution for this issue.

Former Member
0 Kudos

could you let us know how do you achieved this. Actually what do you send in the parameter VIEW. for this method IF_WD_WINDOW_MANAGER=>OPEN_VALUE_HELP( )

Former Member
0 Kudos

Hi Christian,

use below code for you problem

method ONACTIONCALL_VALUE_HELP .

  data: wd_node type ref to if_wd_context_node,

        wd_element type ref to if_wD_context_element.

  wd_node = wd_context->get_child_node( name = 'NODE1' ).

  wd_element = wd_node->get_element( index = 1 ).

  CALL METHOD CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP

    EXPORTING

      CONTEXT_ELEMENT   = wd_element

      CONTEXT_ATTRIBUTE = 'MATNR'.

endmethod.

Thanks,

Mukesh

Former Member
0 Kudos

Yes the solution still works and you can use it without any issues.