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?

Similar Messages

  • 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

  • Restricting vendors in search help in srm portal

    Hi,
    I need to restrict certain vendors in search help in srm portal while creating shopping cart.
    These vendors should not be visible to the users for selection.
    I tried in the BBP_F4IF_SHLP_EXIT_VENDOR_EXP of the search help BBP_BUPA_VENDOR, but its not working.
    Thanks in advance.
    Aravind

    Hi,
       1) Use tcode BP and enter the vendor number and in the last tab (control). Select central block.
       2)  Use program BUPA_TEST_DELETE for the vendors.

  • Dump with calling Custom search help in SRM Portal

    Hi,
    We are calling a WBS search help from Shopping Cart Cost Assignment screen.
    It works fine with ITS and get the results for WBS elements, but when we try to access the search help through the Portal, after clicking on the FIND button it Dumps "SYSTEM_CANNOT_WRITE_TABLE".
    Any Ideas ??
    Thanks in Advance...!!!

    Hi
    <u>This is clearly a SAP BASIS problem. You need to install GUI Patch 332 (gui46D_332.exe).</u>
    <b>Please go through the links below  for more details -></b>
    Note 842824 - Disposal of the BC-FES-OAC component
    Note 392208 - Automation: Error in the automation controller
    Hope this will definitely help.
    Do let me know.
    Regards
    - Atul

  • How can I replace a standard search help in SRM 7.0 as enhancement?

    Hi experts.
    In SRM 7.0, Shopping Cart, Account tab - when using search help for the Cost Center field, a search help 'KOST' is called in the backend system.
    I need to replace this functionality with a call to a local search help.
    Being newbie in WebDynpro, I expected to be able to make this change in the Context field, search help attribute as an enhancement, but that was not possible.
    Thanks in advance!
    Per

    Hi again.
    I tried the proposed solution with no luck.
    The problem is, that the standard program is dynamically accessing the attributes of the field I deleted and then I got a short-dump
    The solution was however quite simple, when I first had the idea.
    If SAP can access a screen field dynamically adding a search help, then I probably could do the same.
    So I created a enhancement post exit in view method "WDDOMODIFYVIEW" with this code:
    DATA lo_nd_account_detail TYPE REF TO if_wd_context_node.
    * navigate from <CONTEXT> to <ACCOUNT_DETAIL> via lead selection
      lo_nd_account_detail = wd_context->path_get_node( path = `COMP_CONTEXT.ACCOUNT_DETAIL` ).
      DATA lr_node_info TYPE REF TO if_wd_context_node_info.
      lr_node_info = lo_nd_account_detail->get_node_info( ).
      CALL METHOD lr_node_info->set_attribute_value_help
        EXPORTING
          name            = `COST_CTR`
          value_help_mode = lr_node_info->C_VALUE_HELP_MODE-DDIC
          value_help      = 'BBP_COSTCENT_VALUE'
      CALL METHOD lr_node_info->set_attribute_value_help
        EXPORTING
          name            = `G_L_ACCT`
          value_help_mode = lr_node_info->C_VALUE_HELP_MODE-DDIC
          value_help      = 'Z_GL_ACCOUNT'
    The above code sets the search help for two fields in the Context.
    Hope this helps someone out there!
    Best regards
    Per

  • Search help for local system directories in ABAP program

    Hi all,
    Can anyone tell the standard search help available for local system directories on the client system?
    Regards,
    MVD

    Hi,
    You can use this FM.
    <b>RZL_READ_DIR_LOCAL</b> - Get list of files within specific directory(Application Server)
    *& Report  ZDIRFILES                                                   *
    REPORT  ZDIRFILES    .
    PARAMETER: p_fdir            type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
            include structure salfldir.
    data: end of it_filedir.
    *START-OF-SELECTION
    START-OF-SELECTION.
    * Get Current Directory Listing for OUT Dir
      call function 'RZL_READ_DIR_LOCAL'
           exporting
                name     = p_fdir
           tables
                file_tbl = it_filedir.
    * List of files are contained within table it_filedir
      loop at it_filedir.
        write: / it_filedir-NAME.
      endloop.
    Or
    <b>FILE_GET_NAME</b> - Retrieve Logical file path.
    Use Transaction 'FILE' to view/create logical file paths
    Hope this will help.
    Regards,
    Ferry Lianto

  • Collective search help in SRM 7.0

    Hello all,
    Does any body has an idea why the custom elementary search helps wont get displayed in SRM7.0 When we add for a collective search help.
    For ex.. BBP_BUPA* SOURCE_OF SUPPLY is the standard collective search help where we added custom search helps to it,
    While upgrading we try to implement the same in 7.0 also, But theya re not at all visible in the  Drop down of Preferred supplier.
    I tried to check web dynpro componenet  WDR_F4_COLLECTIVE method   in debug mode  but was unable to trace it out,
    Can any body help me how can i include them to standard collective search helps  in web dynpro.
    Thanks and Regards
    geetha

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • 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

  • 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

Maybe you are looking for

  • Weird issue with saving

    Hi, I normally hit Command-S every minute or so when working on something. I hit those keys and keep on going. Just a few minutes ago I did this and the window popped up as if I had hit Shift-Command-S - like I'm trying to save the project as a new v

  • Getting errors while updating links in Indesign document using javascript

    Hi, We are updating the links in InDesign document using javascript. After running the script, we are getting the below errors in Adobe InDesign CC debug. When closing the document for first time we are getting the below mentioned errors, ASSERT 'fRe

  • How to create the planning function through the process chain

    Hi guys, currently i am running some planning function in fortend so it is time consuming now customer want the run the planning function through the process chain any body having the idea please give me.

  • Confirm goods receipt search blank in EBP

    Hi All, I am currently using  IDES SRM 5.0 Standalone scenario. While searching a PO in "Confirm Goods / Services" , the result is blank. I  get a message "No documents correspond to search criteria or no authorization ". Few months back,I was able t

  • New Map in Dashboards

    Hallo all, Does anybody knows how to add my own maps into the dashboards? I follow the path where the current maps are with success. They are exactly the same outside (bmp files) than inside in the maps option. (C:ProgrammeBusiness ObjectsXcelsiusass