Redefining Query method for BP search

Hi All,
I added sales office and sales group field in BP search page (COMM_BUPA_SEARCH) ,
I created child class for CL_BSP_BP_ACCMOD i.e. ZCL_BSP_BP_ACCMOD and tried to redefined Query method.
But in IF_CRM_BSP_MODEL_ACCESS_IL~QUERY there are some private attribute of Super class, because of that I am facing the error.
Please advise me in
1) What should I do to add sales office and sales group in query  criteria .
2)To add sales office and sales group fields on search screen I created new field group and add that in BUP_BUS1006_SEARCH_ALL_FIELDS (Group type attribute is set to Screen Group) But on page the title of screen group is still "Search By Role", insted of "Search by sales Info" (This is description of newly added field grp)
Swanand

1) If am not mistaken, there is a variable in the standard SAP program called lv_where_clause for the search query.But this would be a modification. try looking into this program SAPLCRM_BUPA_BSP_SEARCH_ACC. try putting a break point and see if this is where you wanted to add the field in your query.
Thanks,
Shailaja

Similar Messages

  • Best Method For Keyword Search (Full Text Search)

    I have some cataloged columns I am searching for Keywords.
    This table is getting huge over 6.7 million records and it is
    becoming slow. What is the best method to optimize the DB for this
    Search.
    Do I need to create a column that
    will have a keyword associated to a description of each record
    or.... and search this particular column for the Records?. My
    clients records at time are store like "Bolt, Flange" and some are
    stored as "Bolt, Flange 1/4inch....." . Any one with any idea of
    the best methodology of getting this Keyword Search Optimized and
    returning faster query results?
    Thanks

    Consider creating a Verity collection on the appropriate
    columns in your database. The frequency of database update will
    help in determining if this is the appropriate thing to do.

  • BOL Search/Query Object for Schema Search!.

    Hi All,
    I have to do search for categorization schemas, as the first step I opened the standard schema search component ( GS_MCAT ) and found that the Dynamic Search Object responsible for the same is:   'MC_DynaQSchemaByAttributes'.
    Now, I have 2 questions 4u
    1.  If I run the BOL browser by giving the component set as 'all' I couldnt see this query!. how can I find
    this in BOL/MODEL browser
    2. Is there any standard BOL Search/Query Object on which I can perform a search on Schema based on the product assigned at the categorization level!.
    Any help/hint highly appreciated!,
    Thanks in Advance, Sudeep..

    Also solved.
    As SAP tends to confuse people with the "ALL" component set, ...
    I debugged the "CL_CRM_CATEGO_GENIL" class. Here's the component set you need to load:
        lv_core->start_up( 'ONEORDER' ).

  • Lightswitch html use the 'any' query method

    Hi
    Can someone please tell me how i can use the "any" query method for entity collections in lightswitch html?
    Thanks

    Hi Xpert360
    It's for a type of EntityCollection this is the code from the msls-2.5.2.vsdoc.js line 2220
    any: function any(predicate) {
    /// <summary>
    /// Determines whether this sequence contains any
    /// items that optionally satisfy a condition.
    /// </summary>
    /// <param name="predicate" type="Function" optional="true">
    /// A function to test each item for a condition.
    /// <br/>Signature: Boolean item.predicate(item)
    /// </param>
    /// <returns type="Boolean">
    /// True if this sequence contains any items that
    /// satisfy the condition, if any; otherwise, false.
    /// </returns>
    var result = false;
    this.each(function (item) {
    if (!predicate || predicate.call(item, item)) {
    result = true;
    return false;
    return true;
    return result;
    Check it out and let me know if you know how to use it, my problem is how to use the call back function.
    Thanks

  • How do I use "Search Query" for nontrivial searches?

    After a few years in the community, this is my _first_ question to the boards ;-)
    In speaking with a colleague today, I learned about an NI forum feature that would be useful for me. When I tried to configure it, I then learned that I didn't know how to use it. When I tried to learn how to use it, I further learned that it wasn't fully documented. So, I'd like some clarification :-)
    The feature in question is "Search Query" which will send you an email when a forum search matches your query. What I don't know is:
    What are the rules (syntax) for search queries? For example, I would like to search for single words, all the words that I specify, as well as exact phrases. How do I differentiate between multiword queries and exact phrase queries?
    Is it possible to have more than one Search Query?
    If so, how do you delineate them? Would I use commas, a new line, something else?
    I'm asking because the available (and discoverable) documentation doesn't mention what to do when you want more than one Search Query. The help text on the subscription page [1] makes me think that only one query is possible, and says a Search Query:
    Sends you mail every time a message matching your query is submitted. Search queries take up to 15 minutes to take effect. Saving a blank query will disable this feature and will stop any mail from being sent.
    The other place I tried was the NI Forum FAQ [2], which makes me think that more than one query is possible:
    If you add a board, thread, message, or search term to your subscriptions, the system will send you an e-mail every time someone posts to the board, or replies to the message or thread. If you prefer not to receive an e-mail for your subscriptions, you can subscribe to the RSS feed of a board, thread, user, or search term.
    The FAQ goes on about what to do with board, thread, and message subscriptions, but doesn't say anything more about search subscriptions.
    The last place I looked was on the search results page itself. In the blue header that precedes the results, there's a link on the far left that says "Search Options" with a single option that says "Subscribe to this search's RSS Feed". While I could subscribe and use an RSS reader, I really would prefer email. I suppose if only one Search Query is possible, then this will be my workaround.
    As a comment, why does the Search Options menu not also have a "Subscribe to this search" option, which would add another entry in the Search Query box? This is a noticeably different interface than the Thread Options menu.
    [1] Subscriptions & Bookmarks
    http://forums.ni.com/ni/user_subscriptions
    [2] Frequently Asked Questions
    http://forums.ni.com/ni/help_faq
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)
    Solved!
    Go to Solution.

    Hi Joe,
    Thanks for all of the questions and congrats on posting your first question!
    Unfortunately I think all of your questions come from the valid assumption that the search query functionality is more robust than it actually is.  The search query functionality really only serves a single purpose and that is to email you when your phrase has been posted to the forums.  For me, I use it to email me when my name is mentioned in the forums.  It serves this purpose well since I have it set up to work off just a single search term.  However I find that multiple word phrases are combined with an OR which is not as useful.  The search query does not adhere to any common search syntax that you would expect (I believe we are the only community that uses this feature so it has not been improved upon).
    The best way to set up both multiple word queries and multiple different queries is to use the RSS feed as you mentioned.  This way you can tailor your search very specifically using different advanced search options and subscribe to them all in one feed reader without constantly getting emails.  The search query emails do not adhere to the digest subscription settings.  I find that the RSS feeds work very well for searches and I am fond of using them, but I do use an RSS Reader for many things so it is not out of my normal workflow.
    Thank you for reading the Forum FAQ.  I've done some work to improve it but I think it has a long way to go and it's good to know that people read it
    Regards,
    Laura
    Web Support & Operations
    National Instruments

  • How do i get a list of all Roles defubed under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?

     

    Sorry for the typographical mistake.
    Please read the question as:"How do i get a list of all Roles defined under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?"

  • Is there a reliable method for detecting that a query is too large?

    I am writing some code (that uses OCI) to properly detect when a query string is too long for OCI and/or the Oracle database server. I can't find any specific error code information in the docs, so I just started firing off large queries to see what would happen.
    The queries I am sending are >2MB in size, up to 16MB. If the queries are above ~10MB, I get the error "ORA-03113 'End-of-file on communications channel'" after a fairly short amount of time (i.e. not enough for a timeout to expire). If the queries are below ~10MB, but above ~2.5MB, it either just sits there and does not do anything (for more than 15 hours). So watching for ORA-03113 when executing large queries does not seem like a very reliable method for detecting the queries that are too large.
    Does anyone know of a reliable way of detecting that a query is too large for the OCI client and/or the Oracle database server?
    I am using version 10.2.0.1 for both the OCI client and the Oracle database server, but I'm getting similar errors for combinations of 10.2.0.1 and 9.2.0.7 for both the OCI client and the Oracle database server.
    These large queries need to be handled properly (i.e. distinguished from some generic failure) because the server handles requests from users, which could be programs that generate SQL queries (and have constructed huge ones in the past).
    Thanks for any information!

    The ORA-03113 means that the Oracle server process has died trying to satisfy your request. In almost all cases it is strictly correct to call that a bug, and we shouldn't easily forgive the server process when it happens. But in the case of multimegabyte statements my anger and disapointment turns to sympathy, for in my heart I can't bring myself to blame it. Can you?

  • How to change the lable text for a search parameter in af:query

    Hello.
    I have a db table with a column "Date Requested". I have created a search functionality using the ViewCriteria with bind variables to filter the results in a given date range based on the Date Requested Column. I have used it as the af:query with table as results on the screen.
    I want to change the label on the screen for that search attribute as "From Date" and "To Date". Right now I see the Date Requested as the label name in the af:query component
    Please let me know if you have any suggestions.
    Thanks,
    Vinay Polisetti

    Vinay,
    Not Sure. As per the below threads there is a bug (bug 12806987) raised for this sometime back. Not sure about the status of it.
    View Criteria: I can´t change the labels to bind variable
    Label of bind variables with Criteria inside ViewCriteria
    You could probably try the follow the below link and try to change it programatically.
    Binaries: Customizing the <af:query> component display by overriding CriteriaItemAttributeHints
    Cheers
    AJ

  • How to Enable the LOV to query for partial user entries in af:query in an ADF search form

    Hi guys,
    I have faced one issue in creating a search form in ADF, in that I have used af:query and table region. and I have attached an lov vo to the base vo for the list of values and given UI hint as Input values with List of values. Now the issue is that I have given auto submit property as true so when I give some value suppose "Jan-14" and tab out it gives me all the correct results. but if I give like "Jan%" and then tab out then it does not give me any value. Could you kindly help me with some solution. I am using Jdev 11.1.1.6.0.
    Thanks,
    Tanmoy

    To enable the LOV to query for partial user entries, we can trap the 'LaunchPopupListener' event and add custom code there. Within the af:query component, just wondering how can we set property the 'LaunchPopupListener' for the search criteria ?

  • Af:query not fetching records when VC Modified for advance search

    Gurus,
    I have a view criteria and using it i have a af:query component in my page. When i run the page i see the fields in the search box correctly. However i see another LOV in the search which has options like "Equals","Between", "Does not contain" etc. Though this option is good for 1 search criteria, it is not of any use for another. How can i remove it from the search criteria that i dont want
    thnks
    Jdev 11.1.1.5.

    you would need to add the following to the view criteria item in the view criteria definition for the VO - in order NOT to show any of the operators.
    <CompOper
                Name="DepartmentName"
                ToDo="-2"
                Oper="">You would need to do - by open the VO.xml and add this xml snippet - which would ensure that the operators are NOT shown in the query panel.
    Sample:
    For Departments VO, say there is a view criteria that defined on department id and department name and you do NOT want to show the operators.
    After defining the VC, open the VO file - add the above.
    <ViewCriteria
    Name="DepartmentsVOByDeptIdorDeptName"
    ViewObjectName="com.samples.model.DepartmentsVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="Always"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteriaRow
    Name="vcrow0"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="DepartmentsVOCriteria_vcrow0_DepartmentId"
    ViewAttribute="DepartmentId"
    Operator="="
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DepartmentsVOCriteria_vcrow0_DepartmentName"
    ViewAttribute="DepartmentName"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional">
    *<CompOper*
    Name="DepartmentName"
    ToDo="-2"
    Oper="">
    *</CompOper>*
    </ViewCriteriaItem>
    </ViewCriteriaRow>
    </ViewCriteria>
    Thanks,
    Navaneeth

  • Can we write query for fomatted search without from clause

    can we write query for fomatted search without from clause as below.
    SELECT (($(u_amt)*14)/100)
    here U_amt is a UDF .I want to assign this to another field .
    Rgds,
    Rajeev

    Hi Rajeev,
    You can write query for FMS without from.  That is because you can omit it when you get value from active form by default.  The grammar of it is:
    Select $[$38.u_amt.0\] * 14/100 in your case if you have item type marketing document @line level.
    From View-System Information, you can get the info you need for your FMS query at the left bottom of your screen.
    Thanks,
    Gordon

  • How to search in BI 7.1 query designer for the required key figures & chars

    Hi All,
         Can anyone plz tell me how to search in BI 7.1 query designer for the required key figures & characteristics. I have the query being built on a multiprovider which has many cubes.
    So, i have a huge list of key figures and characteristics. I am not able to search for the required one by the name or the technical name.
    How can we search and pick the required object from the enormous list of the Mutliprovider in the Bex Query Designer??
    Thanks
    Phani

    There is not a search feature available. You have to do an educated guess under what dimension your infoobject could be and select.

  • What is the method/alg​orithm used by Diadem for peak search?

    Hi all,
    Can you please let me know what method/algorithm is used by Diadem for peak search? Please note I am familier with peak search function in Diadem but I need to know the theory/algorithem that it uses to find the peaks.
    Thanks
    Hossein
    Solved!
    Go to Solution.

    Greetings Hossein
    Check the last paragraph of this document. 
    Let us know if that answers your question or if you have further inquiries on this subject. Have a nice day!
    Luis J.
    Applications Engineer
    National Instruments

  • Method for finding row count after executing query

    Is there a method for finding the row count from the resultset after executing a query on a database ?

    The best way: read the data from the result set. If you read it into e.g. a LinkedList, size() will tell you how many rows you got. Or you could increment a counter.
    There are other ways, such as variants of ResultSet that do the read loop for you. But since you'll be doing the fetch loop anyway, those just add unnecessary work and moving parts.

  • How to frame the select query for wildcard search.

    Hi Experts,
    I have an input field P_USERALIAS.This value could contain the actual value or the wildcard for example : user can enter P_USERALIAS as SAP123 or S or SAPABC123 . I need to generate a dynamic search on table USREFUS  depending on what has been entered.Please help.
    Useful answers will be rewarded.
    Regards,
    Shrita Sharma.

    THIS IS A TEST REPORT FOR WILDCARD SEARCH**
    TABLES: USREFUS.
    PARAMETERS: P_NAME1 TYPE string.
    RANGES: R_NAME1 FOR USREFUS-USERALIAS.
    DATA: T_usrefus LIKE usrefus OCCURS 0 WITH HEADER LINE.
    *replace
    if p_name1 cs '*'.
    replace all occurrences of '*' in p_name1 with '%'.
    SELECT * FROM usrefus
    INTO TABLE T_usrefus
    WHERE useralias like P_NAME1.
    else.
    SELECT * FROM usrefus
    INTO TABLE T_usrefus
    WHERE useralias = p_name1.
    endif.
    LOOP AT T_usrefus.
    WRITE: / T_usrefus-useralias.
    ENDLOOP.
    **THANKS & REGARDS
    SHRITA SHARMA.

Maybe you are looking for