Free Programmed Search Help Question

I want to use the free programmed search help interface to make
my own search help.
    But the problem is, I want to embed SAP's search help into my own
search help.How can I do that?
    Thank you.

Hi,
I had the same requirement and so I used Dictionary search help.
In this you have to attach dictionary search help as inpute mode for paricular
context node.
e.g. If you want to attach a F4 help for vendor number, then goto attribute of that particular node and search for your attribute. Now click on vendor and change the properties of the same attribute as input help mode will be changed as
'Dictionary search help' and put your own created search help name in the
'Dictionary search help' tab. Also you can use standard search help name if you know as 'Dictionary search help '.
Also there is another way to handle the same.
In this blog you can find a solution with select options and custom F4
/people/koen.labie2/blog/2006/11/17/custom-f4-functionality-in-webdynpro-for-abap
Hope I have solved your problem.
Cheers,
Darshna.

Similar Messages

  • Event Handling for free programmed search help bond dynamically in SO

    Dear Expert,
    I met a problem of how to handle an event raised by a free programmed search help - (F4), and this F4 is invoked
    by a field defined in a Selection Option component (WDR_SELECT_OPTIONS) - SO. 
    The scenario is that I would like to update the SO after the user multiple select some entries in the F4. I could tranfer
    back all the value chosen in the F4 to the consumer SO, but I can not update the icon in the SO(e.g  in SO, multiple values will be
    displayed with a green arrow icon), because I could not define a handler in SAP standard component SO, and it looks like there is no chance to catch the event triggered at the end of selection in F4.  (this event belonged to this F4)
    Welcome any suggestions or ideas, Thanks very very much. 
    In Addition, I use this way to enable the F4 for SO
    lo_so_component->create_cmp_usage_group(
         name = 'F4_TRANSPORT'
         used_component = 'ZTRANSPORT').

    thanks all

  • Freely Programmed Search Help

    Hi there,
    I have a WebDynpro application with two fields.  The first field has Dictionary search Help on it.
    The second field has a Freely Programmed input help.  The problem I am faced with is that the freely programmed search relies on the value of the first field to determine it's own values - i.e The first field is a contract, and the second field is an item on the contract.  So if the contract changes, so should the list of items provided in the Help.
    Now the way that this works is that the user selects a contract, then selects an item, then completes the fields in a PDF document.
    They press the button Save and Clear which saves the data, clears all the fields, and is then ready for the next lot of data.
    Although I can clear out all the fields, I don't know how to trigger the refresh of the Freely Programmed help.  The first time it is used it gets the right data, and after that it always shows the same data, - I just don't know how to trigger a refresh.  Basically I want it to refresh every time it is used!!
    Many thanks
    Jack

    Hello Jack,
    hmm... it should refresh itself, because you determine what goes in and out. Probably, you need to clean up some nodes in your freely programmed search help component as well i.e. upon leaving.
    Best regards,
    Thomas

  • Freely Programmed search help - Accessing Alternative node

    Hi Experts,
    I am trying to use Freely Programmed search help for calling a custom WD component on pressing of F4 of an input field.
    I have done everything required and the component is being called properly as well.
    The issue here is that i need to pass two values to the the custom WD component on F4. As suggested in one of the threads I used F4_CONTEXT_ELEMENT to get the reference of the source context node and attributes. But the problem is that this gives reference to only that node which has the input field with F4 help (which is being used to call the custom component). The values which i need to pass are present in some other node.
    Can you please suggest a way of accessing the other node to retrieve and use the values in the custom component called?
    Regards,
    Ritvik
    Edited by: Ritvik Prasad on Mar 31, 2010 5:16 AM

    Hi Manas,
    Thanks for the suggestion. I had thought about it too. But the problem that i faced was that no event is triggered/Method called on pressing of F4 on that input field (its internally handled in the framework). In that case what should be the method/event where i should copy the values from the other node to the new attributes created so that it reflects in the Custom component?.
    If you could just elaborate on that it would be really helpful.
    Hi Chris,
    Thanks a lot for this. That actually sounds like fun. I tried looking for options to do that. Although i can get to the node from the element using "GET_NODE" but there I could not find the method "GET_PARENT_ELEMENT" to get the parent element (context as you said). Is there any other method which could possibly return the parent element which i could eventually use to get to the other node.
    It would be great if you could help out with this.
    Thanks ,
    Ritvik

  • Freely Programmed Search help in Std Comp

    hi,
    Is it possible to add freely programmed searh help in standard SAP Component.
    I have dynamically assigned Freely search help to Context attribute using  set_attribute_value_help method.
    Now new component to be used in seach help is made in different package and this component is used as Used Comp
    in Std Component.
    When I click on search help it gives error : Comp usage ZHelp doesnt exist.
    zhelp- My component name.

    You have to add the component usage to the Standard Component, just like you would add the Freely Programmed Search help component usage to any component that wanted to call the search help.
    Component usages can be added using the Enhancement Framework:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/233f2189f74f08e10000000a114a6b/frameset.htm

  • Freely programmed search help with external mapping

    Hi all.
    I have a freely programmed search help to search for physical inventory items.
    I map some data from the component where i use this search help to this search help via external mapping. This works fine.
    But in the search help I want to be able to change the mapped data to perform a new serach. When I change the data and start the action to search again (in the serach help component)  I still get the old field value from context so that the search returns the same result. When I close the search help afterwards the changes are suddenly visible in the using component. So my entered data are somehow transfered to the original context but not to the context of the used component.
    Any ideas?
    Thanks
    Sascha
    Message was edited by:
            Sascha Dingeldey

    Hi Sascha,
    I would suggest, that you do not work with the externally mapped attribute.
    Try to copy the value to a "local" attribute in the searchhelp context while WDDOINIT of the component.
    This is the attribute you should use for the search.
    When you change the searchvalue, it is only changed in the comnponent.
    To get the values back to the calling component you need to copy it back while you call the action submit or exit.
    Hope this helps
    Best regards, Matthias

  • Freely program Search Help

    hi,
    I am using a freely program search help. In this i have two buttons OK and Cancel.
    I have put these buttons in the view under the search table. But my requirement is that, buttons should come at the window level, not in the view, like in dictionary search help.
    Please suggest how can i achieve that.
    Regards,
    Pankaj Aggarwal

    Use a container and every element in Container.

  • Search help question

    Hi,
    I have a selection screen with 3 fields.
    xblnr, kunnr and bukrs
    I created a search help exit for xblnr.
    It finds my values perfectly and returns it on screen.
    How do I make it return kunnr and bukrs values on the screen as well(they do appear on search help pop-up already).
    I tried filling up the shlp_tab and shlp manually, but that didn't help.
    right now, my search help exit is like that to delete duplicates.
    I think I should add some code to the elseif callcontrol-step = 'RETURN', but all I've tried doesn't work.
    Please note that I don't want to do it on my report program with at selection-screen on value-request for xblnr, I would like to solve this inside that userexit. Setting parameters doesn't help either as that requires the selection-screen to be refreshed.
    if callcontrol-step = 'DISP'.
    delete adjacent duplicates from record_tab comparing string.
    elseif callcontrol-step = 'RETURN'.
    exit.
    else.
    exit.
    endif.
    thank you all

    solved it.
    needed to give the parameters like
    parameters: xblnr like ztable-xblnr,
                      kunnr like ztable-kunnr,
                      bukrs like ztable-bukrs.
    then add the search help exit to the table properties for each parameter that i use in the report assigning the corresponding field and voila

  • Event Handler is not getting trigger for Freely Programmed search help

    Hi All,
       I am having a component comp1 defined for value help with one event. In component comp2 i want to call the comp1 but the event handler which i have created is not getting triggered. Any reasons for it.
    Thanks
    Raghavendra

    Hi Kumar,
    Please check these forum threads.
    Re: Help required on Freely Programmed Input help
    Re: Custom search help

  • How to add Freely programmed input help in FPM Search UIBB?

    Hi Experts!
    We have a requirement to create search UIBB in which the input field should have a freely programmed input help.
    I see that WD_VALUE_HELP parameter can be set to the component name and it displays the freely programmed help as well in the application.
    However, I am still digging to implement the search help open and close events of the component.
    I have used the Freely programed value help standard demo object  " FREE_VALUE_HELP "  which shows the value in the help popup however, the selected value is not returned in the input field.
    I am also unable to find any Interface as provided for implementing OVS in search UIBB as well...
    Please help.

    Hi Aliaksandr,
    Thanks for your response.
    I have checked this WDA application demo_value_help .... but it is a normal WDA application.
    However, I want use freely programmed search help in Search UIBB using FPM.
    I found that we can provide the component name used as freely programmed search help in the attribute WD_VALUE_HELP of Interface IF_FPM_GUIBB_SEARCH.
    https://help.sap.com/saphelp_nw74/helpdata/en/03/f2474b6d9a49f4b5a3ed6f04decf22/content.htm?frameset=/en/56/d151c3ba7b4b2e82068a084cb991f3/frameset.htm
    And it displays the search help as well when I do F4 on the field of Search UIBB. But, we need to provide event handler for events - VH_WINDOW_CLOSED and VH_WINDOW_OPENED of the search help component (Component which is provided in WD_VALUE_HELP) some where in the Feeder class, in order to get the selecteed data from the search help, which I am unable to do.
    Do you have any idea of such implementation?
    Appreciate your response!

  • Some questions about standard search help in WD4A

    Hello all,
    I use the SAP standard search help for a business partner number input field. It works fine, but I need to customize the result popup a bit. I have the following issues:
    1. After the search I get a table with a list of all found business partners. The columns are not sortable. Can I change them to sortable (as in SAP GUI)?
    2. How can I add another field/column to the result list (birth date)?
    3. Per default 10 hits are shown on one page in this result table. Is it possible to show more hits at once?
    Best regards and thanks for all help,
    Matthias

    Hi Matthias,
      first of all let's say that the Search Help has been changed a lot in the different SP level.
      Looking in a NW7.0 SP12 I can see that:
      1. It's not possible
      2. You have to change the Search Help definition in DDIC (/nSE11)
      3. Via the Settings link in the TOP LEFT you can change the value (but in my system it is set to 500)
      Keep in mind that WDA support a freely programmed Search Help where you can do everything you want...but it requires coding...
    Sergio

  • Search help freely programmed

    Hi all,
    is anyone able to explain me how to use Search Help freely programmed?
    thanks
    GN

    Hi Gabriele,
    Please go through the component DEMO_VALUE_HELP. This explains all the input help types. The freely programmed search help has been implemented for the CONNID input field of view V1. The Web Dynpro component FREE_VALUE_HELP in the same package is the component where the search help is coded.
    Also below are the steps to be followed for implementing the freely programmed search help.
    This kind of value help is implemented as a Web Dynpro component implementing the Web Dynpro
    component interface IWD_VALUE_HELP. To be able to use the value help for a certain input field, the following steps are necessary:
    1) A component usage of the value help component (HC) has to be declared
    by the consumer component (CC).
    2) A usage of the HC interface controller has to be declared in the CC view.
    3) The input help mode User-Defined Programming has to be chosen for the attribute that is bound to the input field under consideration. The HC usage must be related to this attribute. The component interface of the HC has only one method: set_value_help_listener( ). This method is called by the Web Dynpro runtime if the value help button of the input field under consideration is clicked. The HC has to be implemented as follows:
    1) The method set_value_help_listener( ) has an import parameter. This means that the reference to the listener, provided by the Web Dynpro runtime, is passed to the user-defined HC. This reference has to be saved as a user defined controller attribute.
    2)  To close the help value dialog box, the close_window( ) method of the listener has to be used.
    3)  All views have to be embedded into a window having the name WD_VALUE_HELP. This name is used by the Web Dynpro runtime.
    4) To exchange data between the CC and the HC, context mapping can be used.
    For implementing the component interface IWD_VALUE_HELP, you need to choose the Reimplement button in the HC. The implementation status changes to green and the events and the method of the component interface are visible in the HC controller.
    Regards,
    Uday

  • About Running Remote Search Helps in SRM via Webdynpro ABAP

    Hi there,
    I am having troubles trying to implement an input help for a custom field in the standard Shopping Cart Portal page for item level.
    I would like to implement the same input help used in field Network of Activities, but as I can see in WDA component '/SAPSRM/WDC_UI_DO_ACC', it seems to use another component in order to run a remote Search Help (I assume it is an original search help from PS system).
    Does anybody know how to use this backend search help WDA Component? (/SAPSRM/WDC_UI_BACKEND_SH)
    I haven´t found any information regarding that :S.
    Another option would be to create a new RFC FM in PS returning the expected values, and use these entries to build a list value selector associated to the corresponding context attribute (This is not what I would like...)
    Thanks in advance!

    Vicente Ángel Lopez Romero wrote:
    > Hi there,
    >
    > I am having troubles trying to implement an input help for a custom field in the standard Shopping Cart Portal page for item level.
    >
    > I would like to implement the same input help used in field Network of Activities, but as I can see in WDA component '/SAPSRM/WDC_UI_DO_ACC', it seems to use another component in order to run a remote Search Help (I assume it is an original search help from PS system).
    >
    > Does anybody know how to use this backend search help WDA Component? (/SAPSRM/WDC_UI_BACKEND_SH)
    >
    > I haven´t found any information regarding that :S.
    >
    >
    > Another option would be to create a new RFC FM in PS returning the expected values, and use these entries to build a list value selector associated to the corresponding context attribute (This is not what I would like...)
    >
    > Thanks in advance!
    Figured it out.
    /SAPSRM/WDC_UI_BACKEND_SH is a 'freely programmed' search help used in SRM.
    1. Add this helpview (HV) component usage to your component controller, and view controller.
    2. Map HV SELECTION context to your view
    3. Modify the context attribute you want backend searchhelp to 'freely programmed', and select the component usage created in step above (note this is done dynamically in SAP code, b/c attribute is defined as dictionary search help in SAP components) -- this took a bit to figure out.
    4. IMPORTANT: Give your context attributes the SAME NAME (COST_CTR in my case) as those in structure /SAPSRM/S_CH_WD_MAP_ACC (how obvious was that)
    5. IMPORTANT: Set your LOGSYS in /SAPSRM/CL_PDO_VALHELP_FACTORY class - love those those factories (tic)
    DATA: lo_helper TYPE REF TO /SAPSRM/IF_PDO_ACCT_ASSGT_HLPR,
    CALL METHOD /SAPSRM/CL_PDO_VALHELP_FACTORY=>GET_ACCT_ASSGT_HELPER
    RECEIVING
    RO_ACC_ASSGT_HELPER = lo_helper.
    CALL METHOD lo_helper->set_searchhelp_control
    EXPORTING
    iv_logsys = ls_logsys-logsys.
    6. Now handle event DATA_SELECTED to get data from SELECTION, and move to your Context field.
    How simple was that? Yikes. I should have just built a custom dictionary search help to RFC over and call the BAPI for Cost Center List.
    - Tim

  • Problem in Select Option Freely programmed F4 Help

    Hi All,
    I had a Component 'A'  where i used select option. I used Freely programmed search help for the select option field.
    If i click F4 in the select option field it will call one component in which i have one more select option in component B.
    In component B select option field if i manually entering value and search and click apply values button the values are comming in the select option field in component A.
    But if i pressing the F4 in Component B and search and click apply values the value are not comming in the Component 'A'.
    If i open again component B and closing it without any action the value is coming in component A.
    If i debugged and see the WDDOMODIFYVIEW of tHE WDR_SELECT_OPTION is not getting called for component A.In which it has Rendering delta method of CL_WDR_SELECT_OPTION.
    Any idea about this.
    Regards,
    Ganesh.

    hi Ganesh,
    i have read your post several time and i am still not able to get hold on your problem. Probably it is to do with your complex approach of nested select_option, i can not judge why you did this way. I would advice you to step back and see it for yourself
    1)if it is need to have nested select_option
    2)check component initialization and destroy
    2)check event subscriptions

  • How to assign search help for an input field by fetchign values from an int

    i have an input field ,
    i want to assign search help for the same by fetching values from a table.
    how to achieve this ?

    Using the below ways you can assign search help to a field.
    1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
    2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
    3) Dictonary Help - Use the Data element for that purpose.

Maybe you are looking for