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

Similar Messages

  • 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?

  • 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

  • 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

  • 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

  • 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

  • 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

  • Search help for BADI

    Hi,
    Is there any search help to get a list of program names. That can be used in the BADI's.
    Or else atleast provide me some steps for creating a search help using search help exit.
    Thanks & Regards
    Santhosh
    Message was edited by:
            Santhosh DS

    Here is how to create search helps..
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm
    you can create new search help for displaying program names.. it is easy...

  • 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

  • Want help with badi implementation?

    Hi experts,
    I m new to BADI'S.I got a requirement to get a sub-screen to the standard transaction MFBF.The subscreen will be having 2 fields personnel number and personnel name. For this the functional guy told me to activate the badi rm_hr_integration to get the sub-screen.If the badi is activated he said we get the above mentioned 2 fields as columns in the table control in the selection screen of transaction MF42N. What should i do to activate the badi?If i activate the badi will i get the require sub screen?Do i need to write any additonal code?
    Please anyone suggest me the soln with some procedural steps.sloutions will be rewarded with points.
    Thanks,
    dp.

    Hi Nagaraj,
       Thanks for the reply. I created the implementation for the badi and activated the badi.Then i run the transaction MFBF to see whether i got a subscreen but i there is no change.In the implementation of the badi there is a tab for subscreen.In that tab there are some fields to fill.The fields call program and screen no are filled automatically with values SAPLBARM and 800 respectively.There are 2 more fields to fill called program and screen no.What i have to fill in those fields?any suggestions?
    Thanks,
    dp.

  • 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

  • Search help results of cost center

    Hi everybody
    Cost center is normally assigned to SC item based on the attribute set in PPOMA_BBP (attribute CNT). Now, when you're in the item details screen and want to change that default cost center you can search for other ones using the "glasses icon". This starts some kind of a F4 search help screen and returns a list of all available cost centers existing in the backend system.
    Our SRM users are NOT created in the backend system, therefore we're not able to control cost center authorizations via backend user authorizations.
    So the problem we have is, that in the result screen we get by far too much cost centers from which the enduser can make his choice. We'd like to reduce this result list to only the cost centers assigned via CNT attribute on org. unit level in PPOMA_BBP.
    I already looked at BAdIs BBP_F4_READ_ON_ENTRY and BBP_F4_READ_ON_EXIT (method GET_COSTCENT) and to verify if they could do what I wanted simply tried to delete all entries from table ET_COSTCENT_LIST and ET_COSTCENT_FAVOURITES... no changes, the result list still contains a complete overview of all our backend cost centers.
    To all SRM gurus out there: how is it possible to restrict the result list of cost center search help?
    Thanks again anyone for some help.
    Kind regards,
    Renaud

    Hi Case,
      We can get this functionality with out changing any standard program.
      Herewith I am sending details.
    1.     Implement the badi using definition BBP_DRIVER_DETERMINE and write below  mentioned code in method DETERMINE_DRIVER.
            IF functionname = 'B470_SHLP_CALL' AND sy-tcode NE 'PPOMA_BBP'.
    functionname = 'ZB470_SHLP_CALL'.
            ENDIF.
    2.     Copy the standard FM B470_SHLP_CALL to ZB470_SHLP_CALL then make        
           the changes in ZB470_SHLP_CALL.
           Here you have to make two changes.
    a.     Clear the destination name (LV_DESTINATION) for calling search help
                            from SRM
    b.     Give your own search help name (ZCOST_CENTER we need to create this search help in SRM )
           Now it will call the search help ZCOST_CENTER from SRM only
                   Sample code
              CASE shlp_field.
            WHEN gc_g_l_acct.
          lv_shlpname = 'SAKO'.
           lv_shlpparam = 'SAKNR'.
            WHEN gc_cost_ctr.
          lv_shlpname = 'ZCOST_CENTER'.
          lv_shlpparam = 'KOSTL'.
          CLEAR lv_destination.
    3.      Create you won search help (ZCOST_CENTER) in SRM and write code in search help exit for getting the cost centers from user attributes. For reading the cost centers from user attributed you can use the FM BBP_READ_ATTRIBUTES (pass the CNT as attribute ID)
    Regards,
    Padmaraju
    If it useful to you,please reward points.

  • Do we have search help facility in variable selection (F4 help).

    Hi All,
    At my client place users are comfort with R/3 search help (F4), and looking for the same feature in Bex Reporting. Is it possible to have the same kind of feature in Bex reports.
    Example.
    In R/3 T-Code MB5B, user searches with material description or with some other options like sales material by general product hierarchy. Can we get the same kind of feature.
    And my client says that if we drop down for material it is taking huge amount of time to display the material numbers and description, we want to know how to reduce the time for displaying the material or customer master data text in variable selections.
    In Bex we are aware of material text is going to display as small or medium or long descriptions, when we drop down.
    Your suggestions are most valuable to us.
    Thanks in Advance.
    Akash

    Goto se11
    in  data type  :  put  KIDNO  change  mode   ... avoid the  messges  ....
    there  in theDefinition   :  put your new  Search Help   activate  it  ....
    so that   it will be attached..
    otherwise there  so many ways of attaching the serach help   for F4 ..
    Implementing search Helps 
    Search helps can be implemented in a variety of ways:
    1 .Add to Table field Added via SE11: Place cursor on desired field within database and select menu path  Goto->Search help->for field
    Effect: If field used to create screen field, search help will be called when user executes F4/drop down input help. All fields on screen will be populated if appropriate fields exist in search help and screen.
    2.Add to Table  Added via SE11: Place cursor on desired field within database and select menu path  Goto->Search help->for table
    3.Add to Data element Added via SE11: Select desired data element (double click), enter search help name and parameters in appropriate fields on screen. Will be applied to all fields associated with that data element
    4.Add to Screen field Added via screen painter: One of field attributes is search help. Will only populate the one screen field.
    5.Add to Sel. screen parameter (MATCHCODE) Added using 'matchcode' addition for parameters declaration: Search help name must be no more than 5 characters long.
    e.g. PARAMETER p_prog LIKE trdir-name MATCHCODE OBJECT zsh.
    Rewatrd  points if it is usefull ...
    Girish

  • Account assignment search help in SC.

    We currently implement stand-alone scenario and looking for solution how to maintain account assignment data in EBP. As far as I know account assignment data managed in back-end system and not replicated into EBP.
    We would like to manage account assignment data in EBP in Z-table. This table required to have F4-search for WBS-elements in SC transaction.
    So the question is how to create F4-search based on Z-table. Can BADI BBP_F4_READ_ON_ENTRY help me to resolve this issue? It seems like this BADI does not work in SC transaction.
    Is it possible to show WBS-element description on account assignment overview screen?
    Thanks,
    Alexander

    Hi
    Which R/3 back-end are you using ?
    Are you not replicating the same A/c Assignment caetgories from R/3 into SRM
    system ?
    Do let me know.
    <b>Meanwhile, Please go through the following SAP OSS Notes below -></b>
    Note 945158 - F4-Help Validation in local Scenario
    Note 815849 - FAQ: Account assignment system response
    Note 791465 - PPOMA_BBP:Incorrect search help in back-end for WBS elements
    Note 725247 - Search help and BAdI BBP_F4_READ_ON_ENTRY in accnt assgn scr
    <u>The 2 Related Notes for Note 725247</u>
    1) Note  925890 - Cost centre drop down not working
    2) Note  839534 - Problems with dropdown list in Acc. ***. overview
    Note 856914 - Cost Assignment search returns incorrect description
    Note 712701 - Backend search help for WBS elemnt (Work breakdwn structure)
    Note 693795 - Search help for activities for the network
    Hope this will help.
    Regards
    - Atul

Maybe you are looking for

  • GarageBand 3 loops missing

    I may have deleted some of GarageBand. I have version 3.0.4 (104.7) I can play all the instruments on the keyboard, so something is still there. My "loops" area shows up, but it's dull gray and I'm prompted that they're missing. Is there a download I

  • Only PCM output?

    I moved my Mac Mini (Core Duo) to my home theatre today, and plugged it into my receiver via DVI->HDMI and the optical solution using the minijack plug on the back of the Mini. I seem to only be able to get PCM out though, which means that I'm not ge

  • Web service error message ' Invalid Response Code: (403) Forbidden'

    Hi Experts, I created a webservice, and it working fine in Development and Quality systems. But it is not working in Production system. When trying to click on 'Open Web Service navigator for selected binding' for testing it's giving the following er

  • Can't install Flash CS4

    I downloaded Flash, extracted it, and open the folder. However,when i click on setup.exe, nothing pops up. I looked inside task manager and see that the setup is using up 50% cpu but nothing pops up.I am using vista home premium sp2. Any ideas?

  • Why does iCal crash on display month as March 13?

    My iCal crashes every time I try to display Mar 13 as a month view.  I've seen some discussion of this from Feb 12, but surely apple have resolved this by now?