Add freely Programmed search help to a web dynpro application field

The basics for a custom search help or freely programmed value help has now been created. All that is left to do now is show you how to add this as a search help for a Web Dynpro UI input field. If you do not want to create the example mentioned above you can use FPM_TEST_VH which is a standard SAP one available in your SAP system instead of ZWDP_SEARCH_HELP.

Step 1 - Create New Web Dynpro application to use programmed search help
To do this we need to create a new web dynpro component/application (i.e. ZWDP_USE_SHELP).


Create component use based on the custom search help ZWDP_SEARCH_HELP, name can be anything you want (i.e. search_help)


Within component controller properties add all controllers/components available related to search help you have just.


To do this press the create button and add them from the popup window, 1 at a time until all 3 have been added.


Your screen should now look like this with all 3 entries added



Step 2 - Create context and assign custom search/ value help wdp to it
Within the context tab create a node and attribute field. Once this done go to the properties of the attribute and change the Input help mode from automatic to Freely programmed. You will then get a field called �Input Help Component Usage� where you can type in your search/value help search_help name or select it from the drop down option list (there should only be the one option).



Step 3 - Create field on VIEW
Within your VIEW�s context tab, map the created node to the local context.


Now finally within the layout tab create an input UI element and assign this context attribute to its value.



Step 4 - Create application
Right click on the component name and select create Web Dynpro Application



Step 5 - Test!
Now it�s time to test it by clicking the test icon or right clicking on the application and selecting test.


You will now see a web page with a single field on it with a search help option which links to your created OVS search/value help.


Now enter some text into the field on the search help screen and press the select button.


The entered value should now be returned to the field on the original calling screen.


Obviously this is a very very simple example but hopefully you now know how to create it and how it all fits together. You can now expand the VIEW within the search help to incorporate any functionality you want and pass any values back to the calling screen. Also you can Add custom search help to FMP application such as ESS/MSS.


Related Articles

Add programmed/OVS search help to FPM ESS/MSS application via enhancement to CL_HRESS_PER_DETAIL
BIND_STRUCTURE method of interface IF_WD_CONTEXT_NODE to assign structure to context
BIND_TABLE method of interface IF_WD_CONTEXT_NODE
Get the name of the button the user has clicked on within the SAP web dynpro action ABAP code
Create field Refering to datatype of webDynpro context element
WebDynpro context for creation of screen field including standard search help
Disable SAP User Personalisation in Web Dynpro app using WDDISABLEUSERPERSONALIZATION and WDENABLEUIELEMENTSHIDE
GET_ATTRIBUTE method of interface IF_WD_CONTEXT_NODE to retrieve value of context element
GET_SELECTED_ELEMENTS to get selected row of ABAP web dynpro table when not using lead selection
GET_STATIC_ATTRIBUTE_TABLE method to return all rows of a context table node
IF_WD_CONTEXT_NODE interface methods withn ABAP Web Dynpro to enable users to view and change data
ABAP code to manually trigger ABAP web dynpro plug
Popuate SAP WebDynpro field
Freely Programmed search help for your web dynpro application (custom value help/OVS)
Change the stylesheet theme used by your web dynpro and portal apps (i.e. SAP_TRADESHOW, SAP_CORBU)
Change the stylesheet theme used by your web dynpro and portal apps (i.e. SAP_TRADESHOW, SAP_CORBU)
SET_ATTRIBUTE method of interface IF_WD_CONTEXT_NODE to assign value to individuale context attribute
Clear context attribute using SET_ATTRIBUTE_NULL method of interface IF_WD_CONTEXT_NODE
Add Dropdown by index UI Element to table field within abap web dynpro
Retrieve SAP webDynpro field value entered by user
ABAP Web dynpro ALV report table
Hide fields of a web dynpro ALV table
Display web dynpro ALV report select options to resict output results
Assign value to ABAP web dynpro context via table, structure or individual attribute
Get selected ABAP Web dynpro dropdown byindex value (dropdownbyindex UI element)
ABAP web dynpro Dropdown by index UI Element allows a field to display a drop down list of values
ABAP web dynpro Dropdown default value, allow you to set current value of dropdown UI element
Change SAP web dynpro logon screen
Read ABAP Web dynpro table context on action / button click
ABAP Web Dynpro tables to allow users to view and change data
Get selected row of ABAP web dynpro table
Get all selected rows of table within your web dynpro for ABAP applications using GET_SELECTED_ELEMENTS
Get selected row of ABAP web dynpro table
ABAP Web Dynpro tree structure, display HR org structure as example
SAP ABAP Web Dynpro UI elements
View Container UI Element to display a web dynpro view within a wdp view
ALV ABAP Web Dynpro application
ABAP Web dynpro button click / Action
Call URL from SAP Webdynpro for ABAP ACTION
Call URL from SAP Webdynpro for ABAP ACTION
Display popup screen within ABAP Web dynpro
ABAP Web dynpro populate table on action / button click
ABAP code to Print abap web dynpro table
Adding URL parameters to you ABAP webdynpro to change thinks like the CSS