Field Available in result, not in search

Hi,
In my requirement, there is a field available in result, but not in search criteria.
Hence:
1. I appended the Zfield in the BOL structure of the search.
2. Got the DDLB value in GET_V_ZFIELD.
3. Displayed the field in config.
4. Wrote the following code in EH_ONSEARCH.
But it did not give the result with the ZFIELD search criteria, rather results all types. I checked in dquery_definition, the search parameter/criteria is available. Please suggest how to proceed.
method eh_onsearch.
  data: lr_query_service    type ref to cl_crm_bol_dquery_service.
  data: lr_qs         type ref to cl_crm_bol_dquery_service,
        lr_col_params type ref to if_bol_bo_col,
        lr_entity     type ref to if_bol_bo_property_access,
        lr_qs_col type ref to if_bol_bo_col,
        lr_attr   type ref to if_bol_bo_property_access,
        ls_attribute type genilt_selection_parameter,
        lv_low type string.
  field-symbols:<fs_result> type crms_thtmlb_search_field_info,
                <ft_ddlb> type  crmt_thtmlb_search_ddlb_nvp.
  lr_qs ?= me->typed_context->XXXXX->collection_wrapper->get_current( ).
  if lr_qs is bound.
    lr_col_params = lr_qs->get_selection_params( ).
  endif.
  if lr_col_params is bound.
    lr_entity = lr_col_params->get_first( ).
    while  lr_entity is bound.
    call method lr_entity->get_properties
      importing
        es_attributes = ls_attribute.
    if ls_attribute-attr_name = 'ZFIELD.
      lv_low = ls_attribute-low.
   if lr_window is bound and lr_window->gv_vr_set = abap_false.
    if lv_low is not initial.
      lr_qs->add_selection_param(
                                 iv_attr_name = 'ZFIELD'
                                 iv_sign      = 'I'
                                 iv_option    = 'NE'
                                 iv_low       =  lv_low ).
      super->eh_onsearch( htmlb_event = htmlb_event
                          htmlb_event_ex = htmlb_event_ex ).
    endif.
    endif.
*Remove the just added entity from search parameter list so that it does not appear on UI.
      try.
          if lr_entity->get_property_as_string( iv_attr_name = 'ATTR_NAME' )  eq 'ZFIELD' . "#EC NOTEXT
            if lr_entity->get_property_as_string( iv_attr_name = 'LOW') eq lv_low. "#EC NOTEXT
              lr_col_params->remove( lr_entity ).
              exit.
            endif.
          endif.
        catch cx_sy_conversion_error cx_root .
      endtry.
      lr_entity = lr_col_params->get_next( ).
    endwhile.
  endif.
*Build the Parameter table again.
  me->typed_context->XXXX->build_parameter_tab( ).
endmethod.

Please check this blog; the necessary steps are explained in detail.
/people/tuncer.gorgun3/blog/2010/06/21/enhancing-standard-activity-bol-query-with-related-fields
Regards
Kathirvel

Similar Messages

  • Additional Field Availability in MIGO Screen

    Dear Sir,
    In the MIGO screen , we want to see that is there any extra Field available which has not been made enabled/displayed .
    Pl guide us as how can we see the availability of such fields pl .
    Regards
    B Mittal

    Hi,
    Follow the path:
    SPRO->MM->Inventory Management and Physical Inventory->Setting for Enjoy Transactions-> Setting for Goods Movement (MIGO)-> Field Selection for MIGO
    Here make document header text as u201CInput,enabled,displayed u201D entry as u required and save.
    Regards,
    Biju K

  • Adding Z field in Opportunity search and result view BT111S_OPPT/Search

    Hi,
    I have been searching this forum on adding Z fields in search and result view but couldnt find the precise information.
    We have Z field in ultimately residing in BUT000.
    Now when this field is used in BP_HEAD_SEARCH for search and result, it could be easily done via configuration. (since the field was added to CRMT_BUPA_IL_HEADER_SEARCH during EEWB extension.
    Now, the requirement is to add the fields in Opportunity BT111S_OPPT/Search & BT111S_OPPT/Result.
    I am confused with regard to the approach we need to use to get this field in search and result.
    I thought the easiest option is to add the Model node and and give the BOL attribute. This works fine but I can't see this field (with dynamic getter/setter) in the UI configuration.
    During the attribute creation wizard, I gave BOL entity as BTQROpp (system defaulted) and the relation was
    BTADVSOpp/BTOrderHeader/BTHeaderPartnerSet/BTPartnerAll/BTBusinessPartner/ZZZGEOG_REGI
    is this correct? or am I doing something wrong?
    Why can't I see the fields in configuration?
    So alternatively I created a field through AET and i could see this field is in the structure and in UI config, but what logic I need to put to retrieve the value?
    Any advice?
    Many thanks in advance for your help
    Rakesh

    Hi Rakesh,
    Please follow below steps:
    1. Append your custom field to structure associated with your search/result structure.
    2. After you append this field to structure, this field would be available in context node.
    3.  Check if the field is reflected in available fields in configuration.
    4. If field is not present in configuration then please follow steps stated by me in:
    Re: New Column can not be added in chtmlb:configTable
    5. Once you add this field to design layer, you would be able to configure it to your search query. Check if your query works with this field.
    If not then please go through below forum :
    Re: BADI for Claims search in trade promotion management
    Let me know if this helps.
    Regards,
    Bhushan

  • "Search for" results not shown in list view

    Hello,
    I just installed Leopard a few days ago, and so far I'm very happy.
    The ony oddity I noticed today was that "Search for" results (the default searches in the pane on the left side) are not shown in list view.
    What happens is this:
    - I open a finder window in list view.
    - I click e.g. on "Search for" - "All documents".
    - The status bar on the bottom of the finder window says e.g. "1789 objects", but the actual window is empty (although it has a very long scrollbar). If I click somewhere in the empty space, info for an actual file is shown - as if the files were there, just shown in white letters on white background. I can also type in the search field, and the status bar updates accordingly, but again, no files show up.
    Icon and Coverflow views, however, do work.
    - If I switch from Icon to List view, a file list is shown for the fraction of a second, then disappears.
    This is not an end-of-the-world-bug for me, but still pretty annoying.
    Any idea what might be the problem here? I have no exotic software installed that could cause trouble; just QuickSilver and the usual productivity apps.
    Thanks!

    The problem disappeared a few launches later . ..

  • Field"Code group" is not in the result for report CRM_SRV_REPORT

    Hi Guys,
    For the tx CRM_SRV_REPORT - Service Process Monitor, the field "Code group" is not in the standar result, but, is in the initial screen for filter selection.
    This field is not available in the layout modification.
    How can I add this field to the layout of the result list?
    Regards,
    Lyda

    Hi Lyda,
    Additional field cannot be added in the layout of the result list.
    If you will observe the code of the report CRM_TSRV_REPORT, in the field catalog, there is not Code, code group etc., hence it is not seen in the layout.
    Since it is a std report it cannot be modified, either u can create a Z report by copying this or u can raise an OSS message for this.
    Regards,
    Shalini Chauhan

  • Search result not appearing in search view

    Hi,
    I have successfully indexed  a xml file in one collection.When i tried to search for the result set for that particular collection in search view,am getting "no results found" warning.I have tried it in QR server also but i am not
    getting that xml file in results set.
    Can anyone help,how to get the result set in search view?
    Thanks
    Kaappz

    Hello Kaappz,
    The common cause for this problem is that the document is not indexed or we are searching for content that is not in the content composite field. 
    Can you verify that the document is indexed by searching from the qrserver (port 15100) for and(meta.collection:<collectionname>, <term in doc>) and confirming that the document shows up in your results? 
    If so, if the document does show up in search results for the collection, I would recommend searching at the qrserver with the parameters: view=<name>sppreview, and view=<name>sppublished parameters, and determine if you see the document. 
    Let us know your findings.
    Thanks!
    Rob Vazzana | Sr Support Escalation Engineer | US Customer Service & Support
    Customer Service   & Support                         
      Microsoft| Services

  • After installing iOS6, my Maps are not working at all, anything i search it says "result not found" even after placing a pin and selecting "Direction to here" i get the same result not found. Very disappointed with the new iOS

    After installing iOS6, my Maps are not working at all, anything i search it says "result not found" even after placing a pin and selecting "Direction to here" i get the same result not found. Very disappointed with the new iOS.

    Have you run it in a debugger? That will show you exactly what is happening and why.

  • Altavista will not display search results

    altavista us will not display search results. altavista canada works fine. On us site results will display in no style page but not in basic page style. The page comes up blank. This may have been caused by delta search. I think I have rid my computer of delta? Reloaded firefox. I use norton 360 and have run registry clean up and virus scans. Also cleaned explorer. In explorer the u.s. altavista works ok that is why I think it something to do with firefox and delta search showed up at the same time unwanted and forced a change on my home page. Have cleared computer of what delta files I could find my have something in the registry but I would not know what to look for or to do with. I am running xp

    In a round about way you solved my problem cor-el ! At the end of standard diagnostic there was mention of malware so I ran malwarebytes before running profile manager. malwarebytes found 21 items some in the registry. deleted these items and tried altavista us again and to my surprise it is working ok now.I thought norton 360 would catch such things but I guess it doesn't ! will keep and run a malware program from now on. thank you for your help.

  • Podcast Search results not showing all episodes

    I'm new to podcasting & our podcast isn't showing up properly.
    When you look at our podcast in the search results, only one episode shows up.
    There are three episodes total, but they show up only if you subscribe to the podcast.
    Is there a way for the search results to show all of our episodes?
    Our iTunes link is http://itunes.apple.com/us/podcast/the-hills-fellowship/id448179201
    Our RSS feed is http://sermon.net/rss/client/thehillsfellowship
    Please help if you can!
    Also, they were uploaded last week...so it's been enough time for them to be processed & show up.

    I'm afraid I can't give you a comforting answer.
    The feed at the URL you quote contains the tag
    <itunes:new-feed-url>http://sermon.net/rss/thehillsfellowship/main</itunes:new-feed-url>
    so the feed iTunes is now using is
    http://sermon.net/rss/thehillsfellowship/main
    and that is the one you should be updating - though in fact they are almost identical and it's possible that the method you are using updates them both.
    The feed at http://sermon.net/rss/thehillsfellowship/main is valid and I can't see anything wrong with it. As you say, it can be subscribed to and shows all three episodes: but the Store page (and thus the search results) show only the first episode.
    The Store should have updated by now: it's not unknown for the Store to get stuck and fail to update for several weeks: usually it eventually updates and I have no idea why it does this. It doesn't happen often, but I have seen the occasional complaint.
    However there is another issue which may be relevant: although the date of the latest episode is July 17th, the feed was updated today:
    <lastBuildDate>Mon, 15 Aug 2011 16:11:23 GMT</lastBuildDate>
    <pubDate>Mon, 15 Aug 2011 16:11:23 GMT</pubDate>
    This raises the possibility that there was something wrong with the feed before (hence the failure to update) but that whatever you've done today cleared it. That would indeed result in the three episodes showing on subscribing but not in the Store - it would take a couple of days or so to catch up.
    If that is the case the Store should update in a day or two. If not, then it might update at some future date or it might not: I can't explain that.
    I should at least give it two or three days and see what happens. Check the Store page using the link you gave, not the Search results as these often lag behind.
    If you don't get a result after several days you could try iTunes Support, but I have to tell you that they don't have a good record for helpfulness and the chances are you won't get anywhere with them.  Go to http://www.apple.com/support/itunes/ - click on 'Other iTunes Store Features' in the list and then on 'Podcasts'. You will see a link to either 'Express Lane', which will guide you eventually to some contact options, or you may see a link to email them.

  • Product Delivered Status Date should be there in Standard Search and Result screen of Service Order. Product Delivered Time should be Available in Result screen and In Result screen there should be facility to filter on basis of Time

    Hi team,
    Product Delivered Status Date should be there in Standard Search and Result screen of Service Order. Product Delivered Time should be Available in Result screen and In Result screen there should be facility to filter on basis of Time.
    How to add this in search result screen.configuration is it possible? or any changes in development.
    Compnent - BT116S_SRVO
    Thanks
    Kalpana

    Hi Kalpana
    Please reread my comment. I said to try and populate "Requested End" Date.
    Make sure the date profile assigned to the transaction includes this Date Type.
    If you can populate this either manually or programmatically the solution should be quite forward.
    If you cannot do this, only then should you look at making any significant sort of enhancement.
    Regards
    Arden

  • RoboHelp 10 FlashHelp not returning search results

    Hello All,
      I have been using Robohelp for some time now going all the way back to RH7. Currently using RoboHelp 10. I just created a RH10 Flashhelp project and I am having problems with the search results. Here is what I get.
    After Producing FlashHelp and opening localling to test search I get the following
    IE 9: Search works correctlly
    Firefox 26.0: Search returns no results immediately, no long progress of searching almost instant return of no results.
    Chrome: same as Firefox.
    Hosting on IIS 6 Windows 2003 server R2 with Service Pack 2
    IE9: No search results
    Chorme: No search results
    Firefox: No search results
    Does anyone know of possible browser or RoboHelp generation settings that may cause this.
    Thank You,
    Anthony Padgett

    Hi Anthony
    As you are producing FlashHelp, (well, assuming you are based on this being the FlashHelp forum and all) I might suspect looking at the Flash Player installed on your system. Note that IE, Firefox and Chrome implement the Flash Player differently. So it's entirely possible to have perhaps version 8 of the Flash Player on IE and version 12 in Firefox. Not sure if Chrome is special or if it uses the same player as FF or IE.
    But that's where I'd begin looking.
    Additionally, it might also depend on whether you are viewing the help content off your local C drive or whether you are testing after uploading to a web server.
    Cheers... Rick

  • New tabs highlight the URL field; not the search field.

    My homepage is Duckduckgo. I often use ctrl+t to open a new tab and immediately proceed to the search bar. As of yesterday (and a massive headache for me), no longer when I push ctrl+t does it go to the search area, but rather occupies the URL area! I wondered if this was Duckduckgo, so I changed my homepage to other search providers, specifically Yahoo and Google. A new tab still focuses on the URL field, not the search field. I wondered if this was my add-on "New Tab Homepage", so I disabled it and went into about:config, changing the value of the new tab from about:newtab to Duckduckgo. It failed to solve the issue. This is a huge issue for me and I need to find a solution immediately.

    Well, I just got it fixed. I ticked the box that said to place focus in the URL bar and saved, then unticked it. Now it loads back in the search bar. Thanks!

  • MM/ MB01 goods entries : the field WEMPF (recipient) is not available.

    The message has been transfered from the SD  to the MM forum :
    MM/ MB01 goods entries : the field WEMPF (recipient) is not available.
    Edited by: Vincent JAYET on Sep 23, 2011 3:59 PM

    Than again why you are posting here.  Continue all your queries in MM forum which is the right forum for your query.
    G. Lakshmipathi

  • ITunes Store not displaying search results on my Mac Mini

    Over the past couple weeks I've noticed problems with search results not displaying in the iTunes Store on my Mac Mini.  I do not have this problem on my Macbook Air or other Apple devices.  I can enter an artist such "Coldplay" and all I get are audiobooks and podcasts.  When I enter this same search on my Macbook, I get all the expected results--songs, albums, etc.  I am running OS X 10.9 on both machines (with iTunes version 11.1.2).

    Hi there kushfromgbr,
    You may find the information in the article below helpful.
    About SyncServices
    http://support.apple.com/kb/HT5847
    OS X Mavericks
    OS X Mavericks v10.9 and later do not use SyncServices. Instead, Mavericks supports sharing your information using several network-based and cloud-based solutions. If you want to sync your information across multiple devices and computers, you should use one or more of these methods. These include iCloud, CardDAV servers, CalDAV servers, and servers that utilize the Exchange ActiveSync protocol.
    If you would like more information about setting up iCloud on your devices you can take a look at the article below.
    iCloud: Set up iCloud on your devices
    http://support.apple.com/kb/PH2609
    -Griff W. 

  • Search Results Not Highlighted

    After a recent update Acrobat 9 Standard 9.4.5 does not highlight search ruseults.  Is anybody else having this problem?  Is there a setting I can change?

    Adobe has relayed that this is an idendtified issue in the message below that is being worked on.
    Hello Leland,
    Thank you for taking the time to notify us of this unexpected behavior after updating to Acrobat 9.4.5. This has been identified as a bug by our Engineering team.  They are hard a work adding a fix to be included in the next update.  There is no time frame for this patch to be released.
    We apologize for the inconvenience and hope to have this issue resolved in the future.
    Regards,
    Ed Hutton
    Adobe Systems Inc

Maybe you are looking for

  • Different figure display between Balance and Line items

    How can I find out the difference between line item and Balance in FS10n? Actually when I Executing the FS10N the balance of DR. balance is greater then that account Dr. Balance line item. Can any one tell me why? Thanks & Regards, Anandakumar

  • How to discard the special character from field-Table.

    Hi In my data i am having a lot of SPECIAL CHARACTER also involved, I want to display only the consumer name (PURELY), is there any method/function module to discard the special character and display only the A-Z character as stored in DB. Gaurav

  • Creating new folder ripple effect in other folders

    I was in the RoboHelp 7 Project Manager pod. The HTML Files (Topics) folder was highlighted. I right-clicked and selected New > Folder. I named the new folder Assets and pressed Enter to create the folder. All on its own, RH created an Assets folder

  • I have an Apple 3GS phone. How can I record a telephone call?

    I have an Apple 3GS phone. How can I record a telephone call?

  • Override abstract method ?

    hi all package jgraph; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class JFrameMain extends javax.swing.JFrame {       public JFrameMain() {         initComponents();     // <editor-fold defaultstate="