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

Similar Messages

  • Calling search helps dynamically in module pool program

    Hi Experts,
    I have created two search helps. I need to call these search helps in my module pool program dynamically for a single field (i.e ZMATNR).
    you might be known... 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
    Raghu

    Hi,
    Use the below function module and  pass the search help created in search help field according to the condition.
    Process on Value-request.
    if condition = A.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created                                                          
    Elseif  Conditon =B.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created      
    Endif.
    Regards,
    Prabhudas

  • Calling search help in SRM system

    Hello all!
    I have a problem with using the functional module ‘F4IF_FIELD_VALUE_REQUEST’ in SRM system. I need to call search help by this function module and retrieve output parameter. If I’ve connected by SAP GUI all works splendid, but in HTML environment a behavior of this FM is very strange. In the HTML connection after I’ve select the subordinate search help for selection criteria field search help becomes disappeared and main screen becomes shown as modal (sic!) window.
    Does anybody know how to avoid this?
    This is piece of code with FM call
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'ZSRM_002_SCR_REQITEM'
          fieldname         = 'PRDID'
          searchhelp        = 'COM_PR_COLLECTION'
          shlpparam         = 'PRODUCT_GUID'
          dynpprog          = 'SAPLZSRM_PP_SELECT_SCREENS'
          dynpnr            = '9003'
          dynprofield       = 'ZSRM_002_SCR_REQITEM-PRDID'
        TABLES
          return_tab        = lt_return
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
    Best regards and thanks in advance.

    Is my explanation not clear or nobody knows how to win this problem?

  • Call elemetary search help dynamically

    Hi,
    I would like to call an elemetary search help at run time based on the contents of a screen field.
    e.g. field 1 (case type: value 1/2/3/4)
         field 2 (case number (get the case number from SH1/SH2/SH3/SH4 depending on value in field 1)
    I tried using a serach help exit for this purpose, however there are too many problems. Is there a FM that I can use at on value-request to call the specific search  help for field case number?
    Examples would be appreciated.
    Thx. LM

    Hello Liza,
    There are quite a few standard Function Modules which help you program your own F4 help in the POV event. You can look for FMs starting with F$IF. One of the most common ones, which might be applicable in your case is F4IF_FIELD_VALUE_REQUEST. this Function Module has got elaborate documentation which must help you solve your problem without much difficulty.
    Regards,
    Anand Mandalika.
    P.S. Reward points for this answer if it has helped you solve your problem.

  • ABAP sentence/code to call search help

    Hello,
    I created a search help in the Dictionary, and have used it in a module-pool, filling the corresponding field in the Attributes window.
    But now I would like to call that search help from my code, in a different program. Is there any ABAP sentence for that purpose?
    Thank you very much.

    Hi Ivson,
    You can use the matchcode object concept.Select-options or parameters can be used in case of type 1 programs.
    select-options:s_fail for failtable-failcode matchcode object fail.                           "Fail is the serach help you created.
    regards,
    MV

  • Attaching Search helps dynamically to an attribute

    Hi ,
    I have a requirement where I would like to attach search help to an attribute dynamically in WD ABAP .
    Is it possible to attach a search help with respect to some condition dynamically at runtime .
    Best Regards
    Sid

    Hi Thomas,
    My scenario is as follows:
    I have a table control with around 5 columns. The first column has a F4, based on the value selected there the F4 attached to the second column needs to change dynamically. Eg: Initially the F4 attached initially is /kyk/h_ctr and then it should get changed to /kyk/h_order.
    These columns are mapped to Component Controller attributes.
    Based on your reply yesterday I implemented the same in one of my view methods. The value does get changed but it doesn't reflect in the front-end, it still shows the initially attached F4 instead of the new one. What else do I need to do?

  • 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

  • Calling Search Help in BAdI implementation.

    Hi All,
    I have created my search help with search help exit function. Now I need to call this Search Help in my BAdI Implementation ( Method of BAdI) . Please suggest me which function I should use to call my search help.

    Hi,
    Please use the following FM. It might be helpful.
    F4IF_SELECT_VALUES
    Regards
    Bhupal Reddy

  • Call search help as seperately

    Hello,
    May I know if there is possible to call the popup window for search help directly, but not through the input field which uses the search help.Thank you very much!
    Best regards,
    Shumin

    Hi Shumin,
    *& Report  ZTEST_SEARCHHELP_ITAB
    *& This report is to populate F4 help for custom fields
    REPORT  ztest_searchhelp_itab.
           TYPES DECLARATION                                        *
    TYPES: BEGIN OF ty_mara,
           matnr TYPE mara-matnr,
           mtart TYPE mara-mtart,
           END OF ty_mara.
           INTERNAL TABLE AND WORKAREA  DECLARATION    *
    DATA : it_mara TYPE TABLE OF ty_mara,
           wa_mara TYPE ty_mara.
         PARAMETERS DECLARATION                              *
    PARAMETERS p_matnr TYPE ty_mara-matnr.
       SELECTION SCREEN FOR VALUE REQUEST         *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
       SELECT QUIRES FOR CUSTOM FIELDS                *
    SELECT matnr mtart FROM mara INTO TABLE it_mara UP TO 10 ROWS.
         FUNCTION MODULE TO POPULATE F4 HELP         *
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'MATNR'
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = 'P_MATNR'
          value_org   = 'S'
        TABLES
          value_tab   = it_mara.
    Here you will first fill the table  ***it_mara**  as per your requirements by the \
    Select Query and then you will take the values for Search Help from the same table( it_mara).
    Let me know if you have any doubts.
    Edited by: AMIT BISHT on Sep 12, 2008 11:11 AM

  • Call Search Help

    Hello Experts,
    I m developing one screen, in that  have a field plant .
    Plant is input by use of standard search help.Moment i give plant,
    i want to call another Standard search help where this plant parameter is passed by ticking SET GET parameter in
    previous LOV. It gives me only last werks value in another LOV field.
    Problem is  that as soon as i change plant everytime ,it doesnot get reflected in other LOV. ?
    Regards,
    Aastha

    Hi Astha,
    use search help exit in the second field.use dynpro value read to populate the second LOV.
    cheers
    shibu

  • Calling search Help with parameter/

    I have selection-screen as follows
    PARAMETERS : p_bukrs1 TYPE bukrs ,
                 p_kostl1 TYPE kostl .
    PARAMETERS : p_bukrs2 TYPE bukrs ,
                 p_kostl2 TYPE kostl .
    Req: When user press F4 on P_KOSTL1, it should display cost centers only for company code value entered in P_BUKRS1, similarly for P_KOSTL2 it should display cost centers for comapny code entered in P_BUKRS2.
    I know I can select records on AT SELECTION-SCREEN .. ON VALUE-REQUEST for respective fields and display in F4 with some FM .
    <b>Is there any method by which I can call the search help specifying the company code as parameter?</b>

    by using FM DYNP_VALUES_READ u can get the values of BUKRS.
    based on the values of BUKRS get values of Cost Centres from DB tables into Internal tables
    F4IF_INT_TABLE_VALUE_REQUEST by using this u can display.
    Regards
    peram

  • Set search help dynamically to SAP Standard Screen

    Hi,
    I have one issue where I have to Create f4 help For a field present on SAP standard screen.
    Please advice how to do that.
    Can i dynamically set Search help in any screen-exit of the standard screen?
    Please help.
    Screen No is 130
    and Program is SAPLQM03.
    Here I want to attach a Zsearch help to a standard   FIELD RQM01-LS_KDPOS.
    Thanks,
    Ishani

    Hi Ishani,
    The field that you mentioned here in structure RQM01 is having a check table VBUP. So if some values are there in that table, then that will appear as F4 help to you. Consult with your functional and check how values are coming to this table VBUP. Othertahn this, I am afraid you will not be able attach any help.
    Regards,
    Abijith

  • Assign Search help dynamically

    Hi,
    I have two fields(issue_status and remarks)in a table control. I want to assign a search help to the 'REMARKS' field of the table control only when the user selects the value 'REJECTED' in the 'issue_status' field of the table control.
    could some one please help me in solving this problem.
    Regards,
    Makam

    If you are building a ABAP application you should post this in the ABAP Forum and if it's a BSP application you should post it in the BSP Forum.

  • Calling DDIC search help

    Hello
    Is it possible to call a DDIC search help within a WD application without binding it to an input field. We are looking for a way to call a search help on a button pressed event.
    Regards, Mathias

    Hi Mathias,
    Using CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP is a very easy solution to this problem but, you are advised  not follow this approach of using this class & method as they may be stopped at any time by SAP.  All the classes which start with CL_WDR* are meant for internal use by SAP and are not meant for use by customers. We are supposed to use only classes which start with CL_WD*. Try go through this [thread |CALL SEARCH HELP IN WEB DYNPRO;which deals with the same same issue.
    You can try resolve this problem by creating an [Freely Programmed Value Help|https://wiki.sdn.sap.com/wiki/display/WDABAP/Freely%2bprogrammed%2binput%2bhelp] & when you press on the pushbutton you can call this search help. You can try go through this [thread |freely programed F4 help;where I have explained about how you can create an Freely Programmed value help.
    Regards,
    Uday

  • How to populate data from screen on to search help field

    Hello all,
    I have a requirement in which for a field i have attached a search help and i am calling the search help by using the FM
    F4IF_FIELD_VALUE_REQUEST it is working fine.
    I have one additional requirement that whernever any data is entered on the screen field say ( A* ) then F4 is pressed on the search help in the field this value must be considered. Now it appears blank but i want this data to get populated from the screen
    field how can i achieve it.
    Warm Regards,
    Naveen M

    hii naveen,
    YOu have to make use of the function modules:
    DYNP_VALUES_READ Read screen field values before PAI field transport
    DYNP_VALUES_UPDATE Change screen field contents w/o PBO
    Each of which is very well documented
    or
    trigger the drop-down in POV.
    PROCESS PAI.
    FIELD <FIELD>.
    PROCESS ON VALUE-REQUEST.
    FIELD FIELD MODULE F4HELP_FOR_FIELD.
    MODULE F4HELP_FOR_FIELD.
    > Call search help: see the fm VRM_* to manage dropdown list
    DATA: DYNAME LIKE D020S-PROG,
    DYNUMB LIKE D020S-DNUM.
    DATA DYNPFIELDS LIKE STANDARD TABLE OF DYNPREAD WITH HEADER LINE.
    DYNPFIELDS-FIELDNAME = <other field name>.
    DYNPFIELDS-FIELDVALUE = <value>.
    APPEND DYNPFIELDS.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    DYNAME = DYNAME
    DYNUMB = DYNUMB
    TABLES
    DYNPFIELDS = DYNPFIELDS.
    ENDMODULE.
    rgrds,
    Shweta

Maybe you are looking for