ABAP Web Dynpro Practical Tips: Call Search Help Explicit
I show in this document how to call explicit an existing search help within a view.
Web Dynpro View
Call Search Help Explicit
Issue
An existing search help is to call explicit on a button action. The search results are to be shown on the view.
Example
I will use here the standard search help BUPA_ROLE (business partner roles). The search help contains two parameters: RLTYP (import/export) and RLTITL (export).
The selected context of the (export) parameters must be displayed by the corresponding view fields.
1. Create a context node and two attributes
2. Create two view input fields to the context attributes and an action button
3. Define an button action SEARCH_PARTNER and implement its event handler method, bind the button event to the action SEARCH_PARTNER
4. Define and implement an event handler method ON_PARTNER_SELECTED for the search help results
5. Activate the web dynpro component, create a web dynpro application and run it
Andreas,
I try to do the same search help call, but got "OPEN_VALUE_HELP not defined or not public' error. Do I miss something, I hope you can help. My code is:
wd_comp_controller->wd_get_api( )->get_window_manager( )->open_value_help(
view = wd_this->wd_get_api( )
event_handler = 'EMPLOYEE_SELECTED'
searchhelp = 'PREM' ).
Regard,
Anna
Hello Andreas,
Even i am having the same problem.No able to find wd_comp_controller->wd_get_api( ) >get_window_manager( )->open_value_help(). What is the other option to achieve this,please help.
Thanks
Ishita