cancel
Showing results for 
Search instead for 
Did you mean: 

Calling DDIC search help

Former Member
0 Kudos

Hello

Is it possible to call a DDIC search help within a WD application without binding it to an input field. We are looking for a way to call a search help on a button pressed event.

Regards, Mathias

Accepted Solutions (0)

Answers (2)

Answers (2)

uday_gubbala2
Active Contributor
0 Kudos

Hi Mathias,

Using CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP is a very easy solution to this problem but, you are advised not follow this approach of using this class & method as they may be stopped at any time by SAP. All the classes which start with CL_WDR* are meant for internal use by SAP and are not meant for use by customers. We are supposed to use only classes which start with CL_WD*. Try go through this [thread |;which deals with the same same issue.

You can try resolve this problem by creating an [Freely Programmed Value Help|https://wiki.sdn.sap.com/wiki/display/WDABAP/Freely%2bprogrammed%2binput%2bhelp] & when you press on the pushbutton you can call this search help. You can try go through this [thread |;where I have explained about how you can create an Freely Programmed value help.

Regards,

Uday

former_member24429
Associate
Associate
0 Kudos

Hi Mathias,

you can hide the field and call for it the search help using this method:


  cl_wdr_value_help_handler=>handle_value_help(
      context_element   = lo_el_search_fields " context element of the field
      context_attribute = `SEARK` " Name of the field
      view              = wd_this->go_view
*      ui_element_id     = interactive_form->id
*      is_read_only      = interactive_form->ip_visible
      ).

And after it put the value from hidden field to the visible field (e.g. in WDDOMODIFYVIEW)

Best regards,

Dimitri