Hidden Search critria

Hi,
Can anyone tell how to get results for a hidden search field(available, but not displayed in web ui) value?
Thanks in Advance

HI,
You should proceed this way.
1. Find the bsp component and the view for the search view u r using. (u can do it using f2 after selecting any of the search field)
2. go to BSP_WD_CMPWB and enhance the component and the view.
3. Then find out the method which is getting called after you click search. The method name generally looks like EH_ONSEARCH_BTN or EH_ONSEARCH. (Use ext. breakpoint before enhancing the
components to find out the view and method.)
4. Redefine the method , copy all standard code from the super class method and put it in the redefined method. Dont call the super class method as you would need to add search criteria
before the search happens.
5. Before the statement lr_qu_rslt = lr_qu_srv->get_query_result( ). you have to modify the lr_qu_srv class to add your criteria before this call.
( if the class lr_qu_srv is of type CL_CRM_BOL_DQUERY_SERVICE , then there is a collection object in the class where
you have to add you parameter. (SELECTION_PARAM_COL) ..
Any issues let us know.

Similar Messages

  • Can I filter search by authorisation group?

    We have 5 sales orgs e.g. Z001, Z002, Z003, Z004, Z005. Each employee belongs to one sales org only. When the user searches on accounts I want to filter the search by the sales org the employee belongs to.
    To test this I maintained the business partners and assigned the authorisation group Z001 to 5 of our customers in one sales org. I have also assigned the authorisation group Z002 to 5 of our customers in another sales org that I do not want displayed. For others I have left empty. I did this because it is not a practical solution for us to maintain an authorization group for every customer.
    In transaction PFCG I have maintained the authorization group B_BUPA_GRP with the entry Z001 as this is the sales org I want displayed for this role.
    When I search for the customers (with no search criteria) it does not appear to do any filtering at all as more than 5 records were found, which is not correct.
    When I run the trace (ST01) I find that for the 5 customers that have the authorization group Z001, it is allowed. This is correct. For the 5 customers with authorization group Z002, it is not allowed. This is correct. However for the customers without any authorisation group assigned it is allowed. This is not correct.
    How is it possible to not display customers without an authorisation group?
    Regards
    Declan

    Well Declan..you have to note this thing before going for this solution.
    The field you want to add as a hidden search parameter , should not be available on UI.
    Otherwise controlling the user will be very difficult.(Nevertheless, you can achieve it, but have to take lot of pains.)
    For example if you want to display partners belonging to a particular country say 'US',then add a record to GT_HIDDEN_PARAMETERS.
    DATA: ls_params   TYPE genilt_selection_parameter.
        ls_params-attr_name = 'COUNTRY'.
        ls_params-sign      = 'I'.
        ls_params-option    = 'EQ'.
        ls_params-low      = 'US'.
        APPEND ls_params TO gt_hidden_parameters.
    Implement this code in EH_ONSEARCH and then call super class. Standard code by default reads this gt_hidden_parameters.
    This is proprietary to BP_HEAD_SEARCH Component. If you have to implement this for some other componet then you should create an attribute gt_hidden_parameters and then read this internal table manually and manipulate the search criteria as is being done in standard code of method EH_ONSEARCH of BP_HEAD_SEARCH/SearchHelp.
    As I mentioned earlier COUNTRY attribute should not be available on UI.
    If Country was  available on UI, then imagine a case if user enters 'UK' as country and you have hard-coded inside to get only 'US'
    Then the result list have partners of 'US' despite user entering 'UK'. I mean to say the hidden parameters should not be available on UI.
    This way you can any valid hidden attributes by looking at the search object of the serach page in Model Browser.
    Cheers,
    Masood Imrani S.

  • Search part not showing all results

    I have a page with a search part that shows Team Sites.  I have 7 Team Sites, so I want those 7 team sites to appear on this page.  However, when I create a Search Query with the SitePath criteria (SitePath:https://MyTestSite.sharepoint.com/teams*),
    only 4 sites are shown in the Test Query and when it actually runs. 
    Why are not all 7 team sites appearing?
    Some additional info:
    I am a member/owner of all the team sites, so security trimming should not be an issue.
    All 7 team sites are searchable by default.
    The 4 team sites that are appearing were created 12+ months ago.
    1 team site that is not appearing was created about 6 months ago.
    2 team sites that are not appearing were created yesterday.
    The search app defaults to 10 items per page, so nothing should be hidden.

    Search on those sites for an item, once you've validated that search works on those sites then try the same query on your search results page.

  • Any idea what this search box is and how to eliminate it?

    When I do a search using Google Search a tan window appears above the search results and below the text window and search options/tools.
    How do I eliminate this from appearing in my browser search result when using Google search?
    The links within this tan window redirect me to sites such as:
    http://www.ideasgames.com/search/?q=search&submit.x=-1238&submit.y=-68
    or
    Google-co.com
    Source code for above link:
    <!doctype html><html itemscope="itemscope" itemtype="http://schema.org/WebPage">
    <head>
    <title>Connecting ... </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script Language="Javascript" type="text/javascript">
    function zzzz(){
    document.cccc.submit();
    </script>
    </head>
    <body onload="zzzz()">
    <form name="cccc" action="/adv/go/" method="get">
    <noscript>
    <input type="submit" value="Please click here to proceed to the website.">
    </noscript>
    </form>
    </body>
    </html>

    Fixed, it was a malicious extension.
    The offending Extension was: "IE Tab Plus 2.0.0.0"
    Looks like embedded hidden search redirect.
    Not to be confused with IE Tab +
    Thanks for the help!!!

  • SSHR limit searches by business group

    Hello, I was wondering how to limit all searches in SSHR to my business group.
    I've set the profile option HR:Business Group but this doesn't seem to be having any effect and returns basically every individual , every job (when applying for job for example).
    How do I limit this?
    Thanks

    Well Declan..you have to note this thing before going for this solution.
    The field you want to add as a hidden search parameter , should not be available on UI.
    Otherwise controlling the user will be very difficult.(Nevertheless, you can achieve it, but have to take lot of pains.)
    For example if you want to display partners belonging to a particular country say 'US',then add a record to GT_HIDDEN_PARAMETERS.
    DATA: ls_params   TYPE genilt_selection_parameter.
        ls_params-attr_name = 'COUNTRY'.
        ls_params-sign      = 'I'.
        ls_params-option    = 'EQ'.
        ls_params-low      = 'US'.
        APPEND ls_params TO gt_hidden_parameters.
    Implement this code in EH_ONSEARCH and then call super class. Standard code by default reads this gt_hidden_parameters.
    This is proprietary to BP_HEAD_SEARCH Component. If you have to implement this for some other componet then you should create an attribute gt_hidden_parameters and then read this internal table manually and manipulate the search criteria as is being done in standard code of method EH_ONSEARCH of BP_HEAD_SEARCH/SearchHelp.
    As I mentioned earlier COUNTRY attribute should not be available on UI.
    If Country was  available on UI, then imagine a case if user enters 'UK' as country and you have hard-coded inside to get only 'US'
    Then the result list have partners of 'US' despite user entering 'UK'. I mean to say the hidden parameters should not be available on UI.
    This way you can any valid hidden attributes by looking at the search object of the serach page in Model Browser.
    Cheers,
    Masood Imrani S.

  • Advanced Search Field Hiding

    I reviewed chapter 7.8 of the following document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d8152-002b-2b10-34bd-9ff3c712dd4b?quicklink=index&overridelayout=true
    My question is now if I hide the search criteria and then go into the details of an item contained in the search result and then navigate with the blue back button, what should I see?
    a) The result list with the search criteria expanded
    b) The result list with the search criteria hidden
    In my CRM 7.0 system I get result a.
    This is for the opportunity search component(BT111S_OPPT), but I would be interested for all components in general. As for BP_HEAD_SEARCH component I'm getting result b.
    I would like to figure out the correct behavior so I can correct the components that are broken.
    Thank you,
    Stephen

    Hi Stephen,
    I checked this scenario in Opportunities search and in Quotations search.
    In Opportunites search when you navigate to the seach view using 'previous' button, controller class method DO_VIEW_INIT_ON_ACTIVATION gets triggered. Here the hidden search criteria is made visible by calling context method typed_context->attr->set_hide_search( abap_false ).
    In Quotations search when you navigate back to the search view using 'previous' button, context class method CL_BT115QS__SLSQUOTVIEWSE_CTXT=>if_bsp_wd_history_state~state_restore() restores the current state hence the hidden search criteria is still hidden.
    On furthur investigation i found that the condiiton failure in Opportunites search is because of the below check in DO_VIEW_INIT_ON_ACTIVATION method which gets triggered whenever the search view is called,
    lr_tcc ?= me->comp_controller.
      IF lr_tcc->typed_context->launcherinfo->get_gorequested( ) EQ abap_true.    ---> condition fails here
        typed_context->attr->set_hide_search( abap_true ).
      ELSE.
        typed_context->attr->set_hide_search( abap_false ).
      ENDIF.
    whereas in quotations search this check is implemented in DO_INIT_CONTEXT.
    Regards,
    Arun

  • After upgrading to Apeture I lost half the photos. And can no longer download from my digital Camera. What can I do?

    After upgrading to Apeture I lost  half my photos from iPhoto. And find it difficut to transfer images
    from digital camers. Do you have a solution? Can I download direct to hard drive and skip Aperture?

    Since iPhoto and Aperture use the same library format now, do you see your missing photos when you open the same library in iPhoto again? Did you upgrade both Aperture and iPhoto? Have you checked to see if you've entered any text into the various search fields in Aperture? Have you checked for any hidden search filters?
    As for transferring digital photos, when you say it's difficult, do you mean that the process is complicated, or that there seem to be actual problems transferring the images?

  • Can no longer download to Adobe Digital Edition

    I used to be able to borrow books from the public library for my eReader.  I would download them to Adobe Digital and then transfer them to the eReader.  I can no longer download from the library.  A get an error message that "Windows" does not recognize the file.  What is the problem?

    Since iPhoto and Aperture use the same library format now, do you see your missing photos when you open the same library in iPhoto again? Did you upgrade both Aperture and iPhoto? Have you checked to see if you've entered any text into the various search fields in Aperture? Have you checked for any hidden search filters?
    As for transferring digital photos, when you say it's difficult, do you mean that the process is complicated, or that there seem to be actual problems transferring the images?

  • Final Cut Pro losing filters?

    I just upgraded my MacBook Pro from Tiger to Leopard. I was running Final Cut Pro 5.1 academic. Before I upgraded, I was in the process of editing a video. Parts of the video used the filters "Light Rays" and "Directional Blur." When I go to work on the video now, it tells me that it is unable to load "Light Rays" and "Directional Blur." When I checked for them in the effects tab, they are not there. It won't let me render anything until they are reinstalled. What do I do? Thanks!

    Mr. Amazing,
    If you've not gathered yet, it helps amazingly so to be very accurate and concise both in vernacular and actions. If you've not gathered, updating is nothing like a fresh installation: words simply cannot be bandied about if you expect prompt, accurate and concise help. It took how many posts to get to this part? Mr. S. is very knowledgeable and his patience, although deeper than mine, does have boundaries, amazingly enough.
    There's another amazing feature of the forum and that is the little used and very hidden Search function. There it is, in the upper right hand corner of this page. It can be very useful and a great boon, provided it's used.
    The most amazing aspect of this forum, however, is the boundless patience of it's users and readers for your query has been asked and answered, no matter what it is, probably a thousand times before. In your case, Mr. S. provided an answer to your problem very early in the thread, I would advise rereading it and taking his advice to heart.
    Z.

  • [SOLVED] grub2 dmraid and parttool

    Hello,
    I want to update from grub-legacy to grub2 and have some troubles to setup
    up my grub2 enviroment with dmraid and parttool.
    I have installed linux, win xp and win vista on fake a raid device.
    On grub legacy I followed the instructions on the wiki as described her  https://wiki.archlinux.org/index.php/In … stall_GRUB
    To boot windows xp or vista a hide the windows partitions among each other. With grub-legacy it works. Now the point is how to get this work with grub2.
    Currently my grub.cfg for windows looks like following:
    menuentry "Windows XP" --class "windows" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (hd3,1) hidden-
    parttool (hd3,2) hidden+
    parttool (hd3,1) boot+
    search --no-floppy --fs-uuid --set root 9084516E84515834
    ntldr /ntldr
    menuentry "Windows Vista" --class "windows" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (dm) hidden+
    parttool (hd3,2) hidden-
    parttool (hd3,1) boot+
    search --no-floppy --fs-uuid --set root 5AFC3ABCFC3A91ED e o
    ntldr /bootmgr
    Currently my device.map looks like this:
    (hd0) /dev/disk/by-id/ata-ST3250620AS_9QE254ZH
    (hd1) /dev/disk/by-id/ata-ST3250620AS_5QF5210T
    (hd2) /dev/disk/by-id/ata-ST3500410AS_5VM0FTBY
    (hd3) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0
    (hd3,1) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0p1
    (hd3,2) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0p2
    When try to start windows it complains with
    Error: hd3 cannot get C/H/S values
    So parttool seems not to work with this configuration.
    Windows just starts - but not correct, so my dmraid just works with grub (linux just starting fine, too).
    The only point is how must I configure my device.map file that parttool ist working?
    A grub console like in grub-legacy to setup the c/h/s values for the fake raid seems not to exist, or I haven't found it currently...
    Cheers framas
    Last edited by framas (2012-04-28 09:06:51)

    I solved it now by hiding the first disk of my fake raid array. Don't know if this is the "right" solution but it works for me...
    device.map:
    (fd0) /dev/fd0
    (hd0) /dev/disk/by-id/ata-ST3250620AS_9QE254ZH
    (hd1) /dev/disk/by-id/ata-ST3250620AS_5QF5210T
    grub.cfg:
    menuentry "Windows XP" --class "windows" {
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (hd0,1) hidden-
    #parttool (hd1,1) hidden-
    parttool (hd0,2) hidden+
    #parttool (hd1,2) hidden+
    search --no-floppy --fs-uuid --set root 9084516E84515834
    ntldr /ntldr
    menuentry "Windows Vista" --class "windows" {
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (hd0,1) hidden+
    #parttool (hd1,1) hidden+
    parttool (hd0,2) hidden-
    #parttool (hd1,2) hidden-
    search --no-floppy --fs-uuid --set root 5AFC3ABCFC3A91ED
    ntldr /bootmgr
    Last edited by framas (2012-04-28 09:07:24)

  • Missing track, big problem :-(

    I've just finished recording an interview I did over the phone, on my PowerBook using GB.
    After the 30 min interview is over I save and everything is peachy. I then 3 min later try to shut GB down and gets an error-message (unfortunately I cant remember the error-code). I cant shut GB down, so I restart the powerbook. As I open GB again, GB says it cant find the audio-file I have recorded (the interview recorded via the built-in mic)
    Now I really need that interview and Ive been trying to find it without any luck. Right now Im using techtool (recovering data) but it freezes.
    Anyone have any ideas? Or can anyone tell me that the file is gone for sure, then Ill stop looking.
    Thanx
    Morten

    Do a "Find". Make the search with the following parameters...
    Filesize is larger than 100MB (I'm guessing that it is bigger)
    Search both "visible and hidden"
    Search only files from a day before it was recorded to today.
    Do NOT put a filename, the temp file may just be a number.
    Also, there is an undelete program called FileSalvage that might help. With the demo you can preview the cryptic files to see if one of them is the proper sound file.

  • I can't find the iTunes Store on my iPhone 4 (VZW). Help?

    I was trying to find a song on my iPhone to purchase while on the road.  I can't find my iTunes Store.  Anyone know where it could have hidden  Search on the phone couldn't find it either.

    Have you disabled it under restrictions?
    Settings>General>Restrictions>iTunes

  • PO does not exist in the system

    Hi,
    While creating sales order PO not given and saved the Sales order with out PO No. Again in change mode realised that PO not given and when im trying to give PO following are the error message.
    Purchase order 428264 does not exist in the system (see long text)
    Message no. V1583
    Kindly send the responses.
    Thanks
    Madhu.

    Hi,
    I am taking two different posts from this thread:
    1st:
    1. Sales order been created with out PO number.
    2. In the change mode system allows to key in PO number.
    3. When keying in the PO number system throws an error ' PO 12345 does not exist in the system".
    Now my query is how to find the right PO number.
    Following are the long text.
    Purchase order 12345 does not exist in the system (see long text)
    Message no. V1583
    Diagnosis
    You are creating an order for a consolidated company and must eliminate internal business volume. For this reason, the system tries to determine if the related purchase order exists. This is not the case, however.
    Procedure
    Enter the relevant purchase order number
    This sounds as you go to T. Code: VA02, Keyed-in your Sales Order No. and then hit "Enter". Now inside Sales Order, you are trying to key-in P.O. No.
    Now, 2nd post:
    Im sorry the issue is not resolved yet. The PO No which user is keying in the sales order is quite unique. When i checked the previous PO's in that series it is there. But the issue is for the given set of sales area it is not there.
    Following are the steps performed:
    1. In VA02 in search critria given the series (OCJ*).
    2. There are set of sales orders available for the given series.
    3. But these series of sales order are from different set of sales area.
    4. There are no sales order available in the series for the given sales area.
    Kindly suggest whether im missing any config setting?
    Which suggests as you go to T. Code: VA02, and inside field: Sales Order, you Press F4 (or you have entered P.O. No. under Tab: Search Criteria).
    Now, there are few queries:
    1. Have you entered P.O. No. within Sales Order, while created? If not, then how come System will search for Sales Order, having specified P.O. No.?
    Secondly,
    If, you are searching through F4 and you have created Sales Order with the same P.O. No., then within new window that pops-up; go to tab: Sales Document according to Customer PO No.
    Field: Purchase Order No.
    key in your filter condition (P.O. series with appropriate *) and make Field: Maximum hits, blank. System will throw all the Sales Order, having P.O. Series based upon filter condition.
    Now, SORT the output based upon either "Purchase Order No." or "Sales Org".
    Hope, i have understood your query, now.
    Best Regards,
    Amit.
    Note: Remember, if there is no such Sales Order with desired P.O. No., system will not list-out it in search. To do so, you have to attach P.O. No. within Sales Order under field: Purchase Order.

  • How to filter apps only in my native language?

    I am desperately seeking for a way to filter apps which are localized to my native language. If searching the App Store I find many interesting apps, but when I see the detail description most of them are only available in English. It costs so much time, energy and nerves to look all the language information and to find a suitable app in my language. Does anyone has an idea how to filter apps with language criteria? Maybe someone found a hidden search function?
    I suggested Apple to add this feature immediately with the release of the App Store 1.0. But they never did and they never answered my suggestion.

    Carolyn, that will not help. As KP and I have said, the only language available for the iTunes Store in France is French. You can see that if you look at the "iTunes Store available languages table" under the "Changing your language setting in the iTunes Store" section of the support article you reference.
    Regards.

  • HT203167 A movie I purchased in the iTunes store is missing. It isn't hidden and doesn't show up in search. I've followed support steps.  Where is it and how do I find it?  I believe I originally purchased the film on my 1st Gen AppleTV.

    A movie I purchased in the iTunes store is missing. It isn't hidden and doesn't show up in search. I've followed support steps.  Where is it and how do I find it?  I believe I originally purchased the film on my 1st Gen AppleTV...other movies show up. Help.

    It was Love Actually. It's been in my library a few years but is now missing. It's odd...it isn't even in the iTunes Store anymore. I think there is a rights issue because a message appeared in the store saying it wasn't available at this time in the U. S. store. Still, if I bought it years ago it should be in my library or I should get a refund....

Maybe you are looking for

  • How to send an updated list using batch job

    Hi All,   The program displays data on the screen, if the data looks ok, then there is an option to update. When I run update, the program submits a batch job and the basic list gets updated, but my batch job is still sending the data on the screen.

  • Digitizer Selection

    Hi all, I'm looking for a digitizer that has capability of measuring up to 300Vp-p and up to 1.5MHz sinusoidal waveform, and can be installed on a 3U PXI chassis. Anyone has any recommmedation on which vendor to use. Thanks Dan

  • How to fix deleting issues in Mail program

    I have a MacBook Air (only a year old) and I like to use the mail program that came on the computer ( since it syncs with my phone ) However when I delelte messages they re-appear in the box I deleted them from. Does any one know how to fix this issu

  • Statistics in WL6

    Since BEA dropped the Java console app that we had in 5.1, the statistics available for JDBC are rather paltry in comparison. One of the biggest things that is missing is the ability to know how many connections have been granted/released in each poo

  • IPhoto 7.13 won't load all pictures in library so I must FORCE QUIT

    I have tried several times to load my iPhoto library and though it displays some of the photos it hangs when trying to load them all. The rainbow circle just spins and spins. This is rendering iPhoto unusable. I tried to cut and pasted the error log