Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Freely programmed search help

http://webdynproabap.wordpress.com/2012/12/28/freely- programmed- search- help/ April 10, 2013

Webdynpro Framework allow us to create our own webdynpro component and use that component to provide and input help to the field. This type of providing search help is called freely programmed search help. How t o use t he component as a search help component t o an at t ribut e? One pre-requisite for the webdynpro component to be used as search help is that it should implement the webdynpro component interface IWD_VALUE_HELP. By the time we are implementing the interface an window will be created in our component with the name WD_VALUE_HELP. We need to embed the View of our component to window WD_VALUE_HELP so that our view will be displayed as search help when the user triggers the F4. Later on this component created for providing search help can be added as a used component and its component usage can be assigned to the attribute for which search help type is assigned as freely programmed search help. Where t o writ e t he processing logic t o display t he list of possible values? The view which is embedded to the window WD_VALUE_HELP will be displayed when the user triggers the F4 help. Hence we can design the layout and the processing logic to display the data based on input can be implemented in the view itself. The list of possible values will be displayed in t he view t hat is embedded t o t he window WD_VALUE_HELP. How t o t ransport t he user select ed value back t o t he place f rom where F4 help is called? When the User selects a particular value and clicks on ok button the user selected value has to be written in the input field from where the F4 help is called. The interface IWD_VALUE_HELP consist of two key attributes called F4_CONTEXT_ELEMENT and F4_ATTRIBUTE_INFO. This attribute F4_ATTRIBUTE_INFO consist of information on attribute from where the F4 help is triggered and the attribute F4_CONTEXT_ELEMENT consist element object reference for the attribute from where the input help is triggered. Using these information in the attribute we can transport the user selected value to the attribute from where the F4 help is called. Will t he values select ed t o an at t ribut e using t he f reely programmed search help be capt ured in t he Cont ext change log? No, Just like in OVS Search help we need to write the record explicitly to the context change log table. Refer to the SAP Link for More information on freely programmed search help: http://help.sap.com/saphelp_nw70/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/framese t.htm Let us see an simple scenario that implements the freely programmed search help. Scenario: Provide the freely programmed search help to the attribute CARRID. Design a webdynpro component that provides the list of possible airline ID and use that component to provide search help for the attribute CARRID. This tutorial is split into two parts. 1. Creating a freely programmed search help component

2. Using the component to provide the search help Tagged: , ,

You might also like