Issue in custom search help for Suggest Value

Hi,
I have a requirement to have the suggest values pick up the records form any par of the string. Basically, using pattern. I have written the code in search help exit and it work in some cases and doesnt work for others.Eg. The result shows up for 123 but doesnt show for 1234, even though 1234 exists and it had showed up when i keyed in 123.
My select quest works fine and i can see the values in record tab but on the screen. What could be going wrong.
Thanks in advance for your help.
Pris.
PS: the code:
IF callcontrol-step = 'SELECT'.
    DATA:lwa_selopt TYPE  ddshselopt,
         lit_selopt_id TYPE RANGE OF yselxyz-builder_id,
         lwa_selopt_id LIKE LINE OF lit_selopt_id ,
         lit_selopt_desc TYPE RANGE OF yselxyz-builder_name,
         lwa_selopt_desc LIKE LINE OF lit_selopt_desc,
         lwa_header TYPE yselabc,
         lit_header TYPE STANDARD TABLE OF yselabc,
         lv_sel_val TYPE ddshselopt-low.
    READ TABLE shlp-selopt INTO lwa_selopt WITH KEY shlpfield = 'BUILDER_ID'."'DKEY'.
    IF sy-subrc EQ 0.
      lwa_selopt-option = 'CP'.
      CONCATENATE '*' lwa_selopt-low INTO lwa_selopt-low.
      MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_id.
      APPEND  lwa_selopt_id TO lit_selopt_id.
      MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_desc.
      APPEND  lwa_selopt_desc TO lit_selopt_desc.
      CLEAR:lit_header[],record_tab[].
      SELECT builder_id builder_name FROM yselxyz INTO TABLE lit_header
        WHERE ( builder_id IN lit_selopt_id )
       OR ( builder_name IN lit_selopt_desc ).
      SORT lit_header BY builder_id.
      DELETE ADJACENT DUPLICATES FROM lit_header COMPARING builder_id.
      CALL FUNCTION 'F4UT_RESULTS_MAP'
        EXPORTING
          source_structure  = 'YSELABC'
        TABLES
          shlp_tab          = shlp_tab
          record_tab        = record_tab
          source_tab        = lit_header
        CHANGING
          shlp              = shlp
          callcontrol       = callcontrol
        EXCEPTIONS
          illegal_structure = 1
          OTHERS            = 2.
      callcontrol-step = 'DISP'.
      EXIT.
    ENDIF.
  ENDIF.

Issue Resolved. For less than 50 records, client side filtering takes over. In that case the search help exit will not come into picture. Issue resolved by avoiding client side rendering.
callcontrol-maxexceed = 'X'.
Thanks,
Pris.

Similar Messages

  • Custom search help for a custom field in SRM 7

    EDIT: I'm gonna clarify on this thread since my first post wasn't explicative enough... thanks for the patience
    Hi all gurus,
    the question is about a search help in SRM7 but since the task is about abap development, I guess this is the right section to ask for.
    Shortly; every purchase doc in our SRM7 has a custom header table which contains data which are retrieved from the connected backends. In this custom table, the user has the opportunity to add manually a line, and for a specific input field in table, we have to define a search help which should retrieve the appropriate possible values w.r.t. the "target" backend for the document.
    A bit of technical data: say the field is called ZZ_R3_ROLE; it's included in a custom structure ZR7_HEADER_CST_GEN which is itself an append for BBP_PDHCF.
    I defined a Search Help for that field and the corresponding exit FM to manage our task.
    Unfortunately, to retrieve the possible values for the specific backend I need some informations like:
    - the backend on which the document will be distributed;
    - the process type of the document.
    This means that my search help should take into account additional informations that comes from the document I'm processing; I don't know what's the "clean" solution to do this.
    I've seen on an old system (a SAP SRM 3.0) a workaround based on IMPORT/EXPORT ... TO MEMORY ID has been used. Actually, I'd like to find a more elegant solution, if any.
    So... as you can see, I'm absolutely a newbie on the argument, but since I can trigger the search help only from a purchase document (PO, contract) process, I should need at least the GUID of the document to retrieve, for example, what's the target backend for that document in order to provide proper values.
    Any hint/suggestion and in particular, a sketch of code as example is welcome.
    Edited by: Matteo Montalto on Oct 22, 2010 3:01 PM

    Hi,
    into your modify view,
    extract data you need in your search help in an itab (do it into a class do not perform select directly into modify view) and then bind it as value help to your WD element.
    Regards,
    Ivan

  • Enhancing standard (single select)search help for Multiple value selection

    Hi,
    Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
    Is there a way to do it.
    I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
    It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
    Appreciate your help,
    Thanks,
    Sri
    Edited by: Sri on Sep 9, 2010 8:50 PM
    Edited by: Sri on Sep 9, 2010 8:52 PM

    As far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
    Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
    I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me.

  • Custom Search Help for the field Equipment number

    Hi,
    I have enchanced sales order transaction and included a field Equipment number(EQUI-EQUNR).
    Here after pressing F4(Search help) standard search help is display.
    I have a requirement wherein, the standard search help should not appear and a customised search where a specific Equipment category type values should appear in the search help.
    Ex. Field equipment  category (EQTYP).EQUNR(Equipment Number).
    Please let me know how to work for the customised search help.

    Hi,
    You need to create a customized search help.
    [Elementary Search Help - Structure|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee38446011d189700000e8322d00/content.htm]
    [Creating Elementary Search Helps|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee5f446011d189700000e8322d00/content.htm]
    Then you need to attach the search help to the screen field..
    [Assigning Search Helps to Screen Fields|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee93446011d189700000e8322d00/content.htm]
    [Hierarchy of Search Help Call|http://help.sap.com/saphelp_nw04/helpdata/EN/0b/32e9b798da11d295b800a0c929b3c3/content.htm]
    regards
    Nitesh

  • Custom Search Help for Functional Area of Cost Centre(KS01/KS02)

    Hi,
    I need to implement a custom search help and custom enhancement for the field Functional Area in Basic Data tab of Cost Centre Create/Change(KS01/KS02) transactions. Details of the requirement are as below:
    1. There will be a custom relation for the Cost Centre category and Functional Area which was maintained thru a SAP standard table TKA05 and a custom table.
    2.When the relation to Cost Centre category and Functional Area is a one to one it exist in the TKA05 and if its one to many it will be maintained in the custom table.
    3. The requirement is when the Cost Center to Functional area is maintained in table TKA05(One to One) in this case the corresponding Functional Area needs to be populated automatically after entering the cost centre and pressing a enter key by user.
    4.When the Cost Centre Category and Functional area does not exist in table TKA05 and existing in custom table(One to Many) in this case the F4 should be enabled for user selection with the list of Functional area values corresponding to the cost centre category entered that are maintained in the custom table.
    As per the functionality provided by SAP the input help(F4) of the field Functional area in Cost Center does not have any relation with Cost Centre Category. The existing F4 is from the Value Table(TFKB) attached to the domain of FKBER.
    Please provide your valuable inputs to implement the above requirement. Your input will be rewareded.
    Thanks in advance,
    Regards,
    Prasad.

    kalyani,
    i can see your requirement in below way..
    as it just reads: you need to assign the standard cost center help to a z cost center field in component /SAPSRM/WDC_UI_DO_ACC.. which actually is fetched though the component /SAPSRM/WDC_UI_BACKEND_SH
    so, if you see the component controller of SAPSRM/WDC_UI_DO_ACC you will see the component
    USAGE_SH_F4     /SAPSRM/WDC_UI_BACKEND_SH                        
    USAGE_SH_F4     /SAPSRM/WDC_UI_BACKEND_SH     INTERFACECONTROLLER
    so you can replicate the same functionality for your z field.
    but can you clarify one thing.. why are you going for this z field in place of standard field ?

  • Custom search help for characteristic based variant

    Dear Experts,
    I have characteristic based variant report, my requirement is, in any  Article(matnr) related transaction( Ex: MM43, VA01..) I required custom search help based on these characteristics and i will populate article/variant. Attached report selection screen snap. This screen will come in my custom search help.
    Regards,
    Abbas.

    I have found own for my problem. I am using MAT1 standard search help and with database view.
    Regards,
    Abbas.

  • Custom Search Help for Business Agreement field in transaction BP.

    Dear Experts,
    My requirement is to add Custom search help to Businees Agreement field (BUPA_CRMM31-BUAG_ID) in transaction code BP.
    PLease guide me how to add Custom search help to Businees Agreement field which dont have search help option.
    Regards,
    Bala

    Hello there,
    I think the requirement/question is not very clear in your post.
    However, the segment Java applet calls a CRM class which has related code and methods.
    Class:  CL_CRM_MKTTG_SEGAP_COM
    Package: CRM_MKTTG_SEG_APPLET.
    Please explain the problem in detail.
    Regards,
    Vinamra.

  • Problem with custom search help for std SD_DEBI

    Hi,
    I have created a custom zcustom search help and included in std search help SD_DEBI.
    In the custom serach help i have added the fields ktokd and sales area fields(sales org, Disb channel, division).
    now when i goto va01 transaction and hit F4 for sold to party i was able view the KTOKD and sales area fields in the custom tab
    when i select the values from f4 help and hit enter they are not getting displayed in sold to party field.
    when i select only sales area fields from f4 and press enter they are getting displayed in sold to party field.
    problem is with the ktokd field that i have included.
    Any suggestions please let me know

    Hi deepti,
    I think you have missed parameter assignment from your Z append search help to standard search help.
    Select the search help and click on Param Assignment button and assign the refernece parameter(KUNNR) of your
    append search help to std collective search help (KUNNR).
    Thanks,
    Pawan

  • Search help for default value

    Hi all..
    I doing a dialog program. I need to have a search help in my input field. How can i do it?
    I want to have 3 default value in the search help.
    example: apple, orange, pear.
    How to retrieve it?

    hi,
    u can make drop down list
    declare that field as list box... ( in attribute )
    then write this after PAI in screen flow logic...
    PROCESS ON VALUE-REQUEST.
      FIELD ifmtp-form_type MODULE fm_drop.
    MODULE fm_drop INPUT.
      CLEAR ifmtp.
      REFRESH ifmtp.
      ifmtp-form_type = 'C'.
      APPEND ifmtp.
      ifmtp-form_type = 'F'.
      APPEND ifmtp.
      ifmtp-form_type = 'H'.
      APPEND ifmtp.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield  = 'FORM_TYPE'
          value_org = 'S'
        TABLES
          value_tab = ifmtp.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " fm_drop  INPUT
    here ifmtp-form_type is my field of screen which i have declared as list box...
    and u have to declare one internal table with this field in TOP Module...
    DATA : BEGIN OF ifmtp OCCURS 0,
              form_type LIKE zform_track_mast-form_type,
           END OF ifmtp.
    reward if usefull....
    Edited by: Dhwani shah on Jan 22, 2008 11:58 AM

  • Problem in Customizing Search Help for Business Partners in CRMD_ORDER

    Hi All,
    I am absolutely newbie in CRM. I have a problem here.
    We are using SOLMAN for incident management in our project. We use transaction CRMD_ORDER for creating a support message. Now this creen has 4 kinds of partners namely SLA Partner,Reported By,Support Team,Ticket Owner. Now for all these partners there is a common Search Help being used i.e. COM_PARTNER. We have a requirement that for all these fields we want to take user directly to hit list which should have only 2 fields. These hit lists are different for all these 4 fields. I have right now no idea how am I going to achieve this? I have a hint about Search Help exit being used but not sure which one and how? Please guide on this.
    Thanks in advance,
    Saket.

    Hi,
    you are using icident - i guess you are on CRM 7.0?
    Why won´t you use the webclient UI but CRMD_ORDER?
    In Webclient UI component BT_PARTNER you will find the relevant searchhelps and can influence them with methods GET_V*
    Best regards
    Manfred

  • Default multiple values in custom search help

    Hi All,
    I created a custom search help for the vendor. The fields in the search help are LIFNR (Vendor) and KTOKK (Account Group).
    I would like to be able to set three default values for the account group. That is, when the user clicks on the dropdown to display the search help, I would like to have three values populated in the KTOKK field. Is this possible?
    Any help would be appreciated.
    Thanks!

    Hi,
    I am not sure abt default values, but if you are using this search help in any report than you can set hot keys in your search help and using hot keys, you can set some default filter values in you report's parameter.
    you can set variant in your report where parameter is having values like :: =,<hotkey>,<sel1>,<sel2>
    here <hotkey> : wht you have assingned in search help.
           <sel1>    : one of those default values you want to display.
           <sel2>    : one of those default values you want to display for the second field.
    hope it helps,
    Regards,
    Sagar

  • Standard Search Help in Custom Search Help

    I've created a Custom Search Help for Product Hierarchy. But when search help window appears, I want to put a standard search help of Product Hierarchy on Product Hierarchy field which is located on Resctricted section. Is that possible? Let me know if there's a way...
    Thank you

    hello ibnu,
    it is not possible i attach a standard search help mara
    no such feature available .

  • Attaching Search Help for screen field in standard transaction

    Dear All,
    I want to attach my own custom search help for field 'Requiremenr Tracking Number (BEDNR) in PO (ME21n).
    How can i do this?
    Pls gv the stps.
    Thanks a lot.
    Kind Regards.

    Prasad, you know, when I search forum for answers, I'm really disappointed when I see people have found a solution but don't share, and as the thread was maybe one year old or later, I don't feel to ask because the guy probably don't remember what he did. So giving a little explanation immediately is always a very good idea.

  • Access Account assignment data inside custom search help

    Hi Experts,
    I have faced with a challenge and I am stuck. Need some expert advise.  I am developing a custom search help for GL account. Inside the search help exit I have to know what is the account assignment category of the accounting line i am currently accessing in WEB UI. for example i have one item in SC and there is a cost distribution between cost center and WBS element. Now i want to access GL account search help from second line in the account assignment ( ie from line having WBS as Acc Assignment).
    one approach that i can think of is Enhance Accounting WD component and capture the details in a static attribute of a custom class and access them inside the search help exit. I know this will work. But i am looking for more clean approach.
    I saw below code in WD comp method GET_BO_INFO of component controller.
    lo_task_container = /sapsrm/cl_ch_wd_taskcont_fact=>get_task_container_instance( ).
       CHECK lo_task_container IS BOUND.
    * Get the BO type
       ev_bo_type = lo_task_container->get_bo_type( ).
    * Get the BO mapper, BO GUID, and item GUID of the lead selection
       CASE ev_bo_type.
         WHEN /sapsrm/if_pdo_obj_types_c=>gc_pdo_shop.
           lo_bom_sc ?= lo_task_container->get_bom_sc( ).
           ev_hdr_guid = lo_bom_sc->/sapsrm/if_cll_bo_mapper~get_bo_guid( ).
           ev_item_guid = lo_bom_sc->/sapsrm/if_cll_bo_mapper~items_get_lead_selection( ).
    I am not sure if this works. But even if this works I can not get the exact accounting line that the user is currently processing. Any ideas????
    thanks
    sankar.

    Hi,
    Any Ideas?

  • Search help for Custom Item level field

    Hi All,
    I have two custom fields at Item level. Both of them has fixed values defined at domain. The fixed values have a short text also given with them.
    The problem I am facing is when SRM provides default search help for these custom fields, for first field the 'Value' and 'Description' comes in the search result screen, but for second, only 'Value' comes in the search result.
    When I try to debug, it shows the SHLPTYPE as 'SH' for first one and for the second as 'FV'.
    What does this indicate?
    My requirement is to display both value and description in the search result screen.
    Please suggest.
    Thanks
    Nandalal

    Hi
    Sorry for the delay. My User got locked for some time.
    I have seen the document you sent me on my email id.
    <b> I noticed in the case where the Search help is working fine, there is no space in between the contents of the Fixed values and their short text under the value range tab of the Domain element.
    But in the case, where there is a problem with the search help. There both the Fixed values and their short description is having a space in between the words.
    Try maintaining COND_A instead of "COND A". Also with the short description use "COND_A" instead of "COND A".</b>
    <u>I hope this will resolve the issue.</u>
    <b>Update me once you have any issues.</b>
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

Maybe you are looking for

  • [URGENT] Replication ACK taking too much time

    Hi I am having a typical Master-Slave architecture where the Master is started with ACK_ALL in repmgr_set_ack_policy method. But we notice that the master takes about 10 secs to do a single updatem, since Master seems to wait for a long time to recie

  • Wha' Happen? I Can't Do My Wurk!!!

    Sorry for the Mighty Wind reference..<G> But I was arranging some files in the HD window, you know where the side bar lists; Desktop,Users,Applications, Documents, Pictures and used to list MUSIC! I say used to as I accidently slid it out the window

  • Just to confirm this feature in number range object

    Hi all, I've created one number range between 00001 to 99999. And i hope it will start over again automatically from 00001 after hit the upper limit. I did not choose the "No Interval Rolling". Is that all i have to do? thanks.

  • BW 7.0: several ORA-01408 during import

    Hi, I'm copying my BW system with export/import procedure from prd to dev. During import, and I think only on fact-tables, there are several ORA-01408 such as: DbSl Trace: Error 1408 in exec_immediate() from oci_execute_stmt(), orpc=0 DbSl Trace: ORA

  • Multiple classification not allowed

    Hi I would like to maintain same site to multiple site (store) hierarchy. However, error message appeared when I would like to assign site to class via tcode WB86. From the diagnosis, it says that we can define class types and their features in the I