CALL SEARCH HELP IN WEB DYNPRO

Description :
My web dynpro contains some buttons and allow some interaction...
One of the buttons is : 'LOAD DATA'...
I'd like to call a search help when the user PRESSES this button, how can i do that ? maybe a reusable component ???
Thank you...

Hi Stephan,
Well there is a way by which you can achieve this functionality...  You need to call the static method HANDLE_VALUE_HELP of class CL_WDR_VALUE_HELP_HANDLER. To use it we simply need to pass in a reference to the context element, and the name of an attribute. It will then run the value help defined in the context for that attribute.
However being SAP internal, the method could change or disappear at any time. So this isn't a reliable approach. You would be better off following the approach suggested by the other users. I am however just quoting it for your inspection.
Suppose I have a context node by name NODE1 & an attribute MATNR under it of type MARA-MATNR. Now up on click on a button I want the search help MAT1 for MATNR to be displayed. Below is the coding for the buttons action handler:
method ONACTIONCALL_VALUE_HELP .
  data: wd_node type ref to if_wd_context_node,
        wd_element type ref to if_wD_context_element.
  wd_node = wd_context->get_child_node( name = 'NODE1' ).
  wd_element = wd_node->get_element( index = 1 ).
  CALL METHOD CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP
    EXPORTING
      CONTEXT_ELEMENT   = wd_element
      CONTEXT_ATTRIBUTE = 'MATNR'.
endmethod.
Regards,
Uday

Similar Messages

  • Search Help with Web Dynpro call on another system

    Hi all,
    I have to create a search help with web dynpro on a field but the database is on another system... How can I do?
    Many Thanks in advance...

    I would use a search help exit. Nothing WDA specific here, as this has been possible long before WDA came around.  With a search help exit you define the search help like normal, but instead of database table or view being the source of selection, you have a function module.  Within the coding of this function module you can call an RFC to read data from another system or call a web service if you need to bridge over to something that isn't ABAP based.
    You can read more about Search Help Exits here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • Search Help with Web Dynpro

    Hi all,
    I have to create a search help with web dynpro on a field but the database is on another system... How can I do?
    Many Thanks in advance...

    I would use a search help exit. Nothing WDA specific here, as this has been possible long before WDA came around.  With a search help exit you define the search help like normal, but instead of database table or view being the source of selection, you have a function module.  Within the coding of this function module you can call an RFC to read data from another system or call a web service if you need to bridge over to something that isn't ABAP based.
    You can read more about Search Help Exits here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm

  • How to create search help for Web Dynpro?

    Hi all,
    I have troubles when creating search help for web dynpro. I have visited this link /people/dirk.rehberg/blog/2006/12/27/generic-search-help-for-web-dynpro-for-java but I can't find this generic search help plug-in for download. If u have this plug-in can u share it for me or upload somewhere for download. Or anyone has already done this search help please help me solve this problem! Thanks in advance!

    Hi Dinh Thieu Thien,
    please place such a request to the appropriate forum "[Web Dynpro for Java|Web Dynpro Java;".
    Thanks and regards,
    Boris

  • Creating Search Help for Web Dynpro ABAP (FPM) Forms

    Dear All ,
    I am very new with SAP HCM P&F with FPM form. I am stuck with field search help functionality in FPM form. I have created on search help using 
    Web dynpro component to get all travel requests for all employees and linked it to FPM form field and its working fine....
    But.... my requirement is how to filter travel request based on the PERNR (employee number) field in FPM form.
    I think it can be achieved by using importing parameter LISTENER of interface IF_WD_VALUE_HELP_LISTENER but I am clueless how to pass PERNR to this interface to get travel requests for only employee number in field PERNR.
    Kindly help me out in this issue.
    Chohan

    Use this code in set_value_help_listener
    for e.g to read effective date.
    wd_this->help_listener->f4_context_element->get_attribute( EXPORTING name = 'EFFECTIVE_DATE' IMPORTING value =  wd_this->gv_eff_date ).

  • Search help in web dynpro Java i-view

    Hi experts!!
    I am new to EP so i need some help..
    I am trying to implement some web dynpro i-views and i would like to know if there is any way to have F4 search help for  fields in form template that correspond to R/3 fields. In other words i want to take the search help values from the R/3.
    Should i create a model  to call a BAPI for search help??? Or is there any other way?????
    Thanx in advance...!!!
    PS: will reward points to usefull answers.

    Hi You can create Value Help in Webdynpro to show F4 Help values.
    Follow this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2833ce90-0201-0010-f1af-d3cfe1155b16
    Reward Points if Helpful
    Edited by: Praveen Kommineni on May 7, 2008 8:05 PM

  • How to put dynamic search help in web dynpro ABAP.

    Hi,
    I have a table element with two columns in my web dynpro ABAP.Both the columns are F4 helps.
    Based on the value of the first column,the F4 help of second column must change dynamically.Kindly tell me how to do this.
    Thanks & Regards,
    Raji.

    Hi ,
    Use this code to dynamically assign search help and to deactivate search helps.
    data lo_nd_info type if_wd_context_node_info.
    lo_nd_info = lo_nd->get_node_info( ).
    CALL METHOD lo_nd_info->set_attribute_value_help
    EXPORTING
    name = 'ATTR1' " Your attribute Name
    value_help_mode = '121' " Valid value help mode
    value_help = 'Z187442'. " Search help name
    The various possible values that you can pass to value_help_mode are as shown below.
    deactivated 101
    automatic 111
    ddic 121
    ovs 131

  • Search help in web dynpro

    Hallo dear all,
    i defined a search help in the ABAP Dictionary and want to use it in a web dynpro. The search help is based on the data base table /BIC/PSCPLPROD (selection method).
    It shall be used in a web dynpro that presents  select-options (among others) for the field /BIC/SFINCUST of the table /BIC/SCPLPROD.
    How can i realize that the selct-options field can automatically use the predefined search help?
    I must explain additionally that the mentioned select options field is alreday linked to an other search help which unfortenately is unseless in this case. So Iwant to "overwrite" this link with the link to my search help on the DDIC.
    Your answer would really minimize my project troubles. Many thanks in advance.
    Best regards Dorothea.

    why can't you have another field and have the required search help attched to it.
    if you can control this at Dictionary level then the Problems at WebDynpro side is minimum.

  • Search help in web dynpro for a individual element of structure

    Hi ALL,
    I'm a screen where i have imported the structure from DDIC into the context of the view.
    The issue I'm facing is how to attach a search help for a particular element of structure.
    Example: Z_structure:
                          name
                          Id
                          city.
    Here i have a created search help for city that is "z_city_srhp" in DDIC.
    please provide a solution how to attach this search help to city.
    Thanks in Advance,
    LalitKumar.

    HI,
    IN the context select the CITY attribute.
    Properties will be diplsayed. Select dictionary search help and give the seach help name.
    Regards,
    MAdhu

  • How can I click to hande OVS and Search help for Web Dynpro

    Once the F4 help is clicked,  the event OVS of IF_WD_VALUE_HELP_FORWARD is triggered.
    Here  I would like to change the value list of F4 help list, I implemented a class and a method that handle that event.
    Since event only has importing parameter, how can I change the exporting paramter?
    Thanks
    Xin.

    hi,
    when you click on F4 help, Event OVS is triggered.
    now you can define an Event handler for OVS event.
    Inside this Event handler , you can change the Value help list.
    Inside the event handler there are three different phases to achieve this :
    Phase 0 :configuration phase.
    Phase 1 :Read values of the original context entered by user in Search Criteria.
    Phase 2 :  call business logic for a table of possible values.
    Phase 3 :  apply result.
    Refer the SAP Standard Component : Demo_Value_help.

  • Search help in Web Dynpro in ABAP

    Hi,
    I am starting with WD for ABAP (NW04s). I am using PA0022 table as model and displaying these values on the view. By default most of the fields like country, education centre, Faculty, Branch, Score come with an F4 option. But the value displayed in these fields are always key fields(Numeric), which would not make any sense for the end user. Now I would like the Text/Descriptions to be displayed against each field.
    Can anyone help me out.
    Regards,
    <i><b>Seema.</b></i>

    Hi Phil
    This is the dump i m getting,
    Note
    The following error text was processed in the system D35 : Attribut LANGU konnte nicht gefunden werden. ¥&#43970;¦
    The error occurred on the application server RETHR6_D35_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE_INFO~GET_ATTRIBUTE of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: GET_AND_FORMAT of program CL_WDR_DATA_CONTAINER=========CP
    Method: IF_WDR_SHLP_CONTEXT_MANAGER~GET_VALUES of program CL_WDR_DEFAULT_SHLP_CONTEXT===CP
    Method: CREATE_SEARCH_HELP of program CL_WDR_DDIC_SEARCH_HELP=======CP
    Method: CONSTRUCTOR of program CL_WDR_VALUE_HELP_HANDLER=====CP
    Method: HANDLE_DD_SHLP of program CL_WDR_VALUE_HELP_HANDLER=====CP
    Method: HANDLE_VALUE_HELP of program CL_WDR_VALUE_HELP_HANDLER=====CP
    Method: HANDLE_AFTER_UPDATE_DATA of program /1WDA/LSTANDARD===============CP
    Method: IF_WDR_CLIENT~AFTER_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: DO_AFTER_TRANSPORT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Plz help me out.
    Regards,
    Seema

  • Calling search helps dynamically

    Hi all,
    I have two search helps. I need to call these search helps in my Application dynamically for a single field (PARNR) based on PARVW.
    If it is a single search help, we can assign that in field attributes.
    But here... I need to call different search helps for a single field based on the condition.
    Pls help me.
    Thanks
    Kiran

    Hi Kiran,
    I Think by using OVS help u can acieve this, using WDR_OVS as used component.
    here examples... check
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac
    /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    Cheers,
    Kris.
    Edited by: kissnas on Mar 26, 2011 5:17 AM

  • Select Options and Search Help in ABAP Dynpro

    Hi Guys,
    I am new to ABAP WD. We are workin on ABAP Stack of the Portal with no DB Tables n data. we have to fetch the data from R/3 and display it on the Dynpro screen.
    But  here the problem is the Standard Search Help attached to the data elements cannot fetch any data, as by default it searchs the ABAP stack for the data. Is there any work around for the same wherein i can fetch the data from R/3 and display it when user requests for the search help.?
    Please let me know.
    Thanks and Regards,
    Sagar

    Hi,
    You can also use freely programmed help here.......
    Please check the following links for
    OVS
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm
    OVS Help in Web Dynpro ABAP
    Freely programmed
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm
    regards
    Pranav

  • Calling a Method in Web Dynpro ABAP

    Hi Experts,
    I have created a class in se24 and called its methods in web dynpro by simply creating its object. It is working fine. After that i came to know that method should be called through creating a service call in WD.
    What is the standard way and why?
    Thanks
    Ravindra.

    Hello Ravindra ,
                                  I think the better way is to create an assistance class ( Say A1)  and create an attribute (Say AC1) as object of your class ( Say  C1 ).
    In the costructor of you assistance class A1  you can instanciate the object of C1 .
    Now inside a method of assistance class you can call the method of C1 any time because AC1 is already instantiated .
    MVC architecture recommends you should have separate  method to aceess the data and you write your business logic in assitance class methods .
    Hope this will help you .
    Regards
    Vivek

Maybe you are looking for

  • Error Message: itunes was not properly installed. If you wish to import CDs

    I am using Windows XP Professional Service Pack 2 and currently iTunes v8.1 Whenever I start iTunes, a message window pops up saying: "itunes was not properly installed. If you wish to import or burn cds, you need to reinstall iTunes." I can click OK

  • How to handle BEA-382108 error in route error handler?

    Hi, I have a proxy service with error handler at route level. when any wrong inputs are given to this proxy the Biz will generate fault with error as BEA-382108 having error message as XPATH can only be done for XML or MFL content. This is error is h

  • Charting within Web-PL/SQL Application - advice required please

    Currently trying to enhance our Designer generated Web-PL/SQL application by including charting. There is no provision to do this within Designer so are exploring other solutions, specifically using a server side servlet to render a chart as a gif, r

  • Help needed about a phone that i sold......

    Hey everyone im really hoping you guys can help me as this is doing my head in.......... i had a iphone 3gs 16gb black that i bought second hand last march, it worked perfectly in every way, i loved it!!!!!!!!! My husband bought me a 4s for my 40th b

  • No Email's received on my PC

    Since 19th June, I have received no BTmail on my Windows Vista Mail program. I can access and receive my Emails on the BT Webmail site and am receiving on my android smartphone. My PC mailbox settings are POP3 (and having noticed the port numbers HAV