Skip to Content
Author's profile photo Former Member

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

/wp-content/uploads/2014/10/context_568814.jpg

/wp-content/uploads/2014/10/context_table_568815.jpg

2. Create two view input fields to the context attributes and an action button

/wp-content/uploads/2014/10/view_fields_568816.jpg

3. Define an button action SEARCH_PARTNER and implement its event handler method, bind the button event to the action SEARCH_PARTNER

/wp-content/uploads/2014/10/search_event_handler_568826.jpg

4. Define and implement an event handler method ON_PARTNER_SELECTED for the search help results

/wp-content/uploads/2014/10/results_event_handler_568835.jpg

5. Activate the web dynpro component, create a web dynpro application and run it

/wp-content/uploads/2014/10/start_site_568837.jpg

/wp-content/uploads/2014/10/search_help_568862.jpg

/wp-content/uploads/2014/10/search_help_results_568863.jpg

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      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

      Author's profile photo Ishita Shah
      Ishita Shah

      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