Technical Articles
Code Snippet Series: Open a Search Help Programmatically
This post is part of a series on code snippets. The complete list of posts in the series is available in the document Code Snippets: A Blog Series.
It’s possible to open a search help programmatically, e.g., in the action handler of a Button. This technique can be useful in various scenarios, most notably in search help input to a read-only InputField.
wd_this->wd_get_api( )->get_component( )->get_window_manager( )->open_value_help(
search_term = |Search Help Title|
view = wd_this->wd_get_api( )
event_handler = 'EVENT_HANDLER_METHOD'
structure = NEW ddic_structure( field1 = value1 field2 = value2 ) " search help importing parameters
fieldname = 'STRUCTURE_FIELD_NAME'
multi_select = abap_true " default is abap_false
).
Nice!
Thanks Christopher. 🙂