freely programmed searchhelp

Upload: go2kaatt

Post on 02-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 Freely Programmed Searchhelp

    1/2

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

    Freely programmed search help

    Webdynpro Framework allow us to create our own webdynpro component and use thatcomponent to provide and input help to t he f ield. This type of providing search help is calledfreely programmed search help.

    How to use the component as a search help component to an attribute?

    One pre-requisite for the webdynpro component to be used as search help is that it shouldimplement t he webdynpro component interface IWD_VALUE_HELP. By the t ime we areimplementing the interface an window will be created in our component with t he nameWD_VALUE_HELP. We need to embed the View of our component to windowWD_VALUE_HELP so t hat our view will be displayed as search help when the user triggers theF4. Later on this component created for providing search help can be added as a usedcomponent and its component usage can be assigned to the att ribute for which search helptype is assigned as f reely programmed search help.

    Where to write the processing logic to display the list of possible values?

    The view which is embedded to the window WD_VALUE_HELP will be displayed when t he usertriggers the F4 help. Hence we can design the layout and the processing logic to display thedata based on input can be implemented in the view itself.

    The list of possible values will be displayed in the view that is embedded to the windowWD_VALUE_HELP. How to t ransport the user selected value back to t he place f romwhere F4 help is called?

    When the User selects a particular value and clicks on ok button the user selected value has tobe writt en in the input f ield from where the F4 help is called. The interface IWD_VALUE_HELPconsist of two key attributes called F4_CONTEXT_ELEMENT and F4_ATTRIBUTE_INFO. Thisattribute F4_ATTRIBUTE_INFO consist o f information on at tribute from where the F4 help istriggered and the attribute F4_CONTEXT_ELEMENT consist element object reference for theattribute from where the input help is triggered. Using these information in the att ribute we cantransport the user selected value to t he att ribute from where the F4 help is called.

    Will the values selected to an attribute using the freely programmed search help becaptured in the Context change log?

    No, Just like in OVS Search help we need to write the record explicit ly to the context changelog table.

    Refer to the SAP Link for More information on f reely programmed search help:

    http://help.sap.com/saphelp_nw70/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.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 toprovide search help for the at tribute CARRID.

    This tutorial is split into two parts.

    1. Creating a freely programmed search help component

    http://help.sap.com/saphelp_nw70/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htmhttp://webdynproabap.wordpress.com/2012/12/28/creating-a-fp-comp/http://help.sap.com/saphelp_nw70/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htmhttp://webdynproabap.wordpress.com/2012/12/28/freely-programmed-search-help/
  • 7/27/2019 Freely Programmed Searchhelp

    2/2