Enhancin the query BT1O SEARCH

Hi,
I am in CRM 7.0.I am trying to add new fields in the query object CRMST_QUERY_1ORDER_BTIL in order to enhance the 1 order search .
So what steps do i need to follow henecforth in order to ensre the serach is working ?
I currently get a dump when i click on the search button in the UI.
The dump is from the method make_instance_valid of cl_crm_report_accrule.
Please let me know how to proceed.
Suvidha

Hi,
you will find your anser in the following note:
Note 1527039 - Enhancements in CRM Reporting Framework
read this and the attached documents.
br
Jürgen

Similar Messages

  • How to Automate the Query Search Upon Return to the Calling Form?

    Greetings Ya’ll Gurus,
    Could you please share with me how to make the Query Search executed automatically each time, when database table is updated, upon return to the “Calling Form” (i.e. FormA in this posting) from the “Called Form” (i.e. FormB from here on)?
    I have FormA call_form to FormB. FormB may return to FormA. FormA allows users to enter the Query parameters and perform query Search to the database table with a list of search results afterward; whereas FormB allows users to add or delete the same database table records. Both form images are as follows:
    FormA:
    !http://dot.state.ak.us/nreg/jtomasic/FormA_DWR_SEL.GIF!
    FormA call_form to FormB by clicking PB “Daily Work Report” (see circled PB "Daily Work Report" in the above image.)
    FormB Image (FormB allows users to add and delete database records):
    !http://dot.state.ak.us/nreg/jtomasic/FormB_DWR.GIF!
    FormB EXIT_FORM and returns to FormA (see circled PB "DWR Selection" in above image).
    Currently, our users must press the PB “Search” on FormA each time to refresh the Query “Search” results after returning to FormA, and they request to have the "Search" done automatically/programmatically upon return to FormA each time when the database table is updated.
    If you have programming code on this and are willing to share or if you have any suggestion or thoughts on this, it would be most greatly appreciated.
    Thanks a lot & Happy Holidays!

    Thanks so much Andreas, and yes, your link for calling a form and passing a context is very helpful. I believe, your suggested use of the global variable for the saved database table will work for the automation of the Query Search. I am, however, not sure how to make the code and the trigger to automatically perform Query PB "Search". The code for our current "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA is as following:
    DECLARE
         alert_button     NUMBER;
         alert_id               ALERT;
      MY_WHERE VARCHAR2(2500);
      MY_DIST_ID         DIST.DIST_ID%TYPE     := :BLK_UPDATE.DIST_ID;
      MY_ORG_ID          DWR.ORG_ID%TYPE       := :BLK_UPDATE.ORG_ID;
      MY_ACTY_ID         DWR.ACTY_ID%TYPE      := :BLK_UPDATE.ACTY_ID;
      MY_ACTY_WORK_ID    DWR.ACTY_WORK_ID%TYPE := :BLK_UPDATE.ACTY_WORK_ID;
      MY_CNTY_ID         DWR.CNTY_ID%TYPE      := :BLK_UPDATE.CNTY_ID;
      MY_ASSET_GRP_ID    DWR.ASSET_GRP_ID%TYPE := :BLK_UPDATE.ASSET_GRP_ID;
      MY_ASSET_ID        DWR.ASSET_ID%TYPE     := :BLK_UPDATE.ASSET_ID;
      MY_RTE             DWR.RTE%TYPE          := :BLK_UPDATE.RTE;
      MY_BEG_MP          DWR.BEG_MP%TYPE       := :BLK_UPDATE.BEG_MP;
      MY_END_MP          DWR.END_MP%TYPE       := :BLK_UPDATE.END_MP;
      MY_FROM_DATE       DWR.DWR_DATE%TYPE     := :BLK_CONTROL.FROM_DATE;
      MY_TO_DATE         DWR.DWR_DATE%TYPE     := :BLK_CONTROL.TO_DATE;
      MY_FLAG_OFFSYS     VARCHAR2(11)          := :BLK_UPDATE.FLAG_OFFSYS;
      MY_FLAG_COMMENTS   VARCHAR2(11)          := :BLK_UPDATE.FLAG_COMMENTS;
      MY_SPECIAL_EVENT_SEQ_NO SPECIAL_EVENT.SPECIAL_EVENT_SEQ_NO%TYPE  := :BLK_UPDATE.SPECIAL_EVENT_DESCR;
      MY_FLAG_ACCDT      VARCHAR2(11)          := :BLK_UPDATE.FLAG_ACCDT;
    BEGIN
    :blk_control.dummy_flag := 1 ;
    :BLK_CONTROL.DUMMY_ERR_FLAG := 'N';
    VALIDATION_SELECTION;     -- Program Unit VALIDATES DWR SELECTION PARAMETERS PRIOR TO
                                                    -- PERFORMING THE SEARCH AND POPULATING THE DISPLAY BLOCK
    if :blk_control.dummy_flag = 1 then
      IF :BLK_CONTROL.DUMMY_ERR_FLAG = 'N' THEN
        MY_WHERE := BUILD_WHERE_CLAUSE(MY_DIST_ID,
                                       MY_ORG_ID,
                                       MY_ACTY_ID,
                                       MY_ACTY_WORK_ID,
                                       MY_CNTY_ID,
                                       MY_ASSET_GRP_ID,
                                       MY_ASSET_ID,
                                       MY_RTE,
                                       MY_BEG_MP,
                                       MY_END_MP,
                                       MY_FROM_DATE,
                                       MY_TO_DATE,
                                       MY_FLAG_OFFSYS,
                                       MY_SPECIAL_EVENT_SEQ_NO,
                                       MY_FLAG_ACCDT,
                                       MY_FLAG_COMMENTS);
        SET_BLOCK_PROPERTY('BLK_DISPLAY', DEFAULT_WHERE, MY_WHERE);
        GO_BLOCK('BLK_DISPLAY');
        CLEAR_BLOCK(NO_VALIDATE);
        EXECUTE_QUERY(ALL_RECORDS);
        IF :BLK_DISPLAY.DWR_SEQ_NO IS NOT NULL THEN
                   SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', TRUE);
        ELSE
                   SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', FALSE);
                   alert_id := FIND_ALERT('no_data_query');
                   IF ID_NULL(alert_id) THEN
                        error_msg(1000);
                   ELSE
                        set_alert_message(alert_id, 1040);
                        alert_button := SHOW_ALERT(alert_id);
                   END IF;
              END IF;
              GO_BLOCK('BLK_UPDATE');
              GO_ITEM('BLK_CONTROL.PB_SEARCH');
         END IF;
    end if;
    END;My questions are:
    After initializing, set and/or reset the global variable for the saved database table,
    do I copy the above code (i.e. the "entire" code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search) to the WHEN-NEW-FORM-INSTANCE-trigger, or other trigger(s), of FormA to automate the Query Search whenever there is a successful database commit/save? Or
    is there a simple way to activate the code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA? Or
    is there a simple way to activate the EXECUTE_QUERY(ALL_RECORDS) command in the WHEN-NEW-FORM-INSTANCE-trigger or other trigger(s) of FormA ?
    Thanks and always.

  • Problem in the The Query... to search a part of Record

    HI friends,
    I have to serach some records from the table. But the records in the table are like this
    Uname----------DocNo---------- DocDate
    ashish----------vsg-1000----------07-23-2007
    leena----------vsg-1001----------07-20-2005
    chinu----------vsg-1059----------12-12-2006
    Now user is giving a range say: startingDocNo: 1005 endDocNo: 1045
    Here the query should return all the records between
    vsg-1005 to vsg-1045.
    How can i search this. What is the procedure to do this. vsg- is always prefixed to the no.
    Please tell me about this. thanks for your answer in advance..

    You can use LTRIM function in the where clause to trim 'vsg-'.
    E.g:
    select uname,docno,docdate
    from table1
    where to_number(ltrim(docno,'vsg-')) between 1005 and 1045PS: To improve the performance, create a function based index on to_number(LTRIM(docno,'vsg-'))

  • Maximum size of the URL for search query

    Is 255 a max character limit to in the URL top be passed from the web application for a search / navigation query. I have lot of conditions for flitering using the WHERE clause. The query is formed dynamically by the web application based on user input.
    Is there a way to override the limititation so that many conditions can be passed through?

    If you are using presentation api doing something like this:
    ENEQuery query = new UrlENEQuery ("N=0", "UTF-8");
    query.setNavRecordFilter(oneBigWhereClause);
    There is no limitation on the size of your string representing your record filters, as long as your engine can handle it. I have tried passing in 100K record id filter without any problem.

  • SQL Query to search all the tables for a given string

    Hi all,
    This is concerning a query to search each and every table/column for a given string.
    I came across a similar post (Re: question about searching 600 tables and this query seems to be inline with my requirements:
    select table_name,
    column_name,
    :search_string search_string,
    result
    from cols,
    xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
    columns result varchar2(10) path '.'
    where table_name in ('MY_TABLE')
    However, I am getting the following error:
    ORA-24451: OCIKCallPushTrusted, Maximum call depth exceeded
    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit and could you please let me know the best possible way to accomplish this task?
    Thanks.
    Edited by: itech.quest on Sep 19, 2010 8:30 AM

    Hi Tamir,
    Thanks so far. I am yet to make the crucial breakthrough as far my application goes. Are you talking about the EUL5_QPP_STATS table? I tried retrieving worksheets even from that table also with the following query
    SELECT DISTINCT Eul5QppStats.QS_DOC_NAME,Eul5QppStats.QS_DOC_DETAILS
    FROM EUL5_QPP_STATS Eul5QppStats,EUL5_DOCUMENTS Eul5Documents
    WHERE Eul5QppStats.QS_DOC_NAME = Eul5Documents.DOC_NAME
    However, the worksheet data retrieved by Discoverer Oracle's product is not matching my dataset for every workbook. Please suggest.
    Reg
    Thomas

  • Control the query of Content By Search web part or a Catalog-Item Reuse web part from JavaScript

    Is it possible/supported to intercept and change the query before it gets issued by a Content By Search or Catalog-Item Reuse webpart?
    I am writing a multilingual site utilizing cross-site publishing mechanism, and the out-of-box (OOB) web parts would perfectly work if not for the following requirement that I've got: I need to serve location-specific content to the end user. I have several
    versions of each content page for each geographical location, and I have tagged the pages accordingly with managed metadata keywords. I also can deduce the user's location from her browser's IP address and store it in a JavaScript variable. It is here
    where I am getting stuck: I am trying to change on the fly the queries the web parts issue in order to attach the information about the user's geographical location, unsuccessfully so far.
    I cannot rely on server-side code unless it is a cloud-hosted app code. I am about to give up and consider a custom solution alternative instead, which would be relying on Search REST API and custom client-side scripted widgets in place
    of the OOB search web parts. This seems like an expensive alternative as the entire site could have been built using the OOB web parts, if not for the location requirement.
    I would appreciate any suggestions.
    Thanks in advance,
    Ivan.

    hi
    I would check several directions:
    - in query transformation you may add keyword filter "Value of a field on the page". Documentation doesn't clearly says what "field" means here: is it only for site columns, or also may work for UI controls on the page. In second case it would solve your
    problem (it would be possible to add hidden field on the page and set value via javascript). But chances that it works like this are not high;
    - in the query settings of the Content by search web part there is setting "Loading behavior": Choose whether this query is issued on the server while the page is loading, which is better for your main content, or from the browser after the page appears.
    I.e. if you will choose 2nd option there will be a chance to intercept the query on the client side in theory. All of this requires experimenting of course;
    - by default Content by search web part sends query to /_vti_bin/client.svc/ProcessQuery with http post from client side (you may check it in fiddler). You may try to find the exact javascript function which performs the call and override it by adding additional
    conditions to the query (fortunately it is not complicated in javascript).
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Always displays the default saved search in af:query

    hi,
    The saved search drop down lists the saved searches but could not select another saved search. The dropdown selected value always point to the default saved search, as well as it's UI in criteria region. The same behavior in saving a new search, it will always refresh to the default. What seems to be the problem here? The current QueryDescriptor point to the new search but the UI always displays the default.
    Thanks in advance.

    Found the solution. The queryDescriptor getter calls again the default value that's way it doesn't change. Thanks for the time.

  • Displaying the count of search result?

    Hi,
    We have built new search pages for our client to search for candidates registering in their iRecruitment site. The client prefers to see the no of records of each search result. Typically some searches may fetch around 50000 records.
    How to achieve this. Currently we have set the VO_MAX_FETCH_SIZE for one responsibility as 50000. I think this will have a performance impact and it cannot display the exact count if it is > 50000. Is there any other way just to show the count of search records?
    thanks,
    Hem

    Henry,
    As Ram insisted before that if no. of records in your VO is more than max fetch size set in profile option, then it won't return excat number of records.You can very well use this method in normal flow, if you expect that your VO query will not return more than max fetch size records.
    Otherwise run a separate query to get total, as discussed.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • UDF Value is not coming in the query report

    Hi all,
    i have designed query report based on AR Invoice which has some UDF .
    all udf have FMS applied and all these udf has values.
    when i run report some times udf values are coming in the report and somtimes not even if udf contains values.
    if i open perticular invoice and again update that udf and again run report now udf value will come in the report.
    every time i need to manualy update the udf even if that udf contain value.
    how to avoide this problem.
    Pls suggest solution.
    Regards,
    Chetan

    Hi Chetan,
    Try this,
    -> Open the require document(module).
    Assign this procedure and then ADD the document
    and Run the Query Report.
    1. Goto the UDF and Click (ShiftAltF2).
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query in UDF.
    4. Select the AUTO REFRESH WHEN FIELD CHENGES.
    5. Select the Auto Refresh Field (for example CardCode (or) Remarks).
    6. Check the Display Saved Values.
    OR
    -> Open the require document(module).
    1. Goto the UDF and Click (ShiftAltF2).
    2. When will you add the document at that time
    you can Click the SHIFT + F2 and than ADD the document.
    and than Run the Query Report.
    Regards,
    Madhan.

  • Paramerterized Interactive Reports - is there a quick solution to stop the query from executing when entering the page prior to user clicking go.

    Example
    Currently, when the user enters the page the interactive report runs (without the user hitting "go")and - indicates no data found because one of the "parameterized" fields is required and the sql is not setup for nulls.
    I'm Looking for a way to not perform a query  at all -------until the user hits go for the first time on the page - then each time they re-enter the page in the same session it would be ok to auto submit the query.
    I believe I can setup a hidden item and check on my interactive report E1 not null.  Then create a "computation" on "after submission" that would set this value to a value - say 1.
    I can seem to be able to get this to work however.
    In my interactive report - I'm wondering what "condition type" should I be using.  Any thoughts would be greatly appreciated.

    In this case I just have 2 parameters.  The goal is to allow the user to "pre filter" BEFORE rendering the interactive due to the possible size of the report.  This pre fliter could be by say- order type or region or branch etc.
    Right now, I believe its all one region - see below.
    My first attempt, I put a branch on the after submit on the go button and then put a condition on the interactive report.  This worked but caused a looping issue when trying to select a column on the interactive report itself.  My guess is , because that drop down was also using that same go button.
    Anyway, please advise how to best  "pre filter" prior to rendering an interactive report.  Should I have two seperate regions or can I use one region.  Any assistance would be greatly appreciated. 
    Order Parameters 2 
    Before Header 
    Branches
    Computations
    Processes
    After Header 
    Computations
    Processes
    Regions
    Before Regions 
    Computations
    Processes
    Regions 
    Body (3) 
    Search 
    Items 
    P6_TEXT
    P6_ITEM_NUMBER
    Region Buttons  P6_GO
    Order Type &P6_TEXT 
    Report Columns 
    Order Type
    Operating Unit
    Order Number
    Line Number
    Item Number
    Invoice Week
    Items 
    P6_NAME
    P6_ITEM_NUMBER_ALT
    Position 01  Breadcrumbs
    After Regions 
    Computations
    Processes

  • How to hide the Save Results Layout checkbox on the Create Saved Search pop

    I need to hide the Save Results Layout checkbox on the Create Saved Search popup. Can anyone tell me how to do it?
    This popup is used when the user is on a query (rendered by the af:query component) and they select click the "Save..." button. The have three options, Set as Default, Run Automatically, and Save Results Layout. I have an implementation that supports everything except saving the layout. So I need to hide that checkbox.
    Thanks,
    Mike

    For anybody else who needs to do this, here is how I did it.
    Add this to your css
    /* This hides the Save Results Layout checkbox on the Create Saved Search screen */
    span[id$='saveLayout'] {
    visibility: hidden;
    }

  • G/L Account Numbers missing in the Query Designer

    Hi Experts
                   New G/L Account numbers are been added to some items like Rebates & Discounts. These G/L Account Numbers are been seen in the RSA1 and are not present in the Query Designer. So i want to know the procedure to update these G/L Account numbers in the Query Designer, Can you please help me.
    G/L Account Numbers in RSA1 = 718 and in Query Designer it is 661 so please guide me to update the rest of the G/L Account nos in the query designer.
    Thanking you
    Regards
    Mrudul.
    Edited by: Mrudul Naidu Cherukupalli on Feb 1, 2008 5:23 PM

    Yes, the problem is with the extractor
    It is not been enhanced because i am working on SAP BW 3.1C and its been implemented in 2004 and since then it is not been used properly.
    The Datasource is 0EC_PCA_3 (Enterprice Controlling line items).
    Yes i maximized to 1000 records per call and searched for the G/L Account E16411 which i cannot find in the cube.
    When i checked the results with R/3 i found the totals are doubled and when divided the Key figure Net of Credit and Debit by 2 i got the some results correctly(Sales Revenue, Sales Revenue of Exports and Sales Revenue of Domestic)
    I Checked the Service Marketplace and found the note which should be implemented to rectify the error of duplicating the records,
    Can you please help me to update the  G/L Accounts in the datasource.
    My Development System contains more then 2000 G/L accounts in the cube (query designer).
    Thanking you,
    Regards
    Mrudul.

  • "None of the fact tables are compatible with the query request"

    Hi guys,
    I have a weird issue. Previously fine working Subject area started to give this error after migration. The issue is happening when I select a column from dimension and try to display it. Also, I can't get to the list of values in filter I get "Error retrieving choices" error. One dimension is working fine though, and when a column from it is selected, it displays other column just fine. I checked physical layer, primary keys, mappings in the BMM, LTS sources, Connection Pool settings. Everything looks legit. For few hours it was working fine, and now it's giving this issue. Anyone knows what the cause could be. The search I've conducted revealed that this is a data mapping issue - however, all my layers seem to be in check. Thanks

    hi user582149,
    It is difficult to answer you question with such a little amount of details. Could you specify:
    - how many facts/dimensions are you using in the query?
    - what is the structure of your Business Model?
    - which version of OBI are you using?
    - what does your log say?
    I hope to tell you more having the information above
    Cheers

  • How to use the Oracle FTS search from my own program ?

    Hi,
    Due to certain reasons, we cann't use the UI that comes up with the Oracle help. Now I am wondering, If anybody has attempted to build something like the following:
    Have thier own JSP from where they had this search input box
    Accept the data (input) that's punched there by the user
    Use the code engine to query the .idx file with the input
    then whatever comes back as a result of that search (as a list or whatever), loop thru and display them as hrefs in thier own UI.
    If somebody has done this, I would appreciate if they could share thier code.
    Thanks very much.
    -Ram

    Brian,
    Thanks very much for quick response.
    First to answer your questions ....
    Yes, you have got it right. We want it to use for a help system and this is about OHW.
    The reasons for not being able to use the UI as is because: We want the UI to have our look and feel.
    As such we wrote some code that would also take care of the the context sensitivity (of course using the topicID's etc). We have a Data initialization bean on the top of each page and that sets the topicId for that page from the Mapping file and so when the user presses the F1 key it shows up the right help page.
    Now the challenge is: Search
    What I want to do is:
    Provide a search field (<input type="Text" name="searchFieldName">) on my page and thus accept the input (let's say request.getParameter("searchFieldName")) and write some code by which I will pass that off to your engine .. and which will then look at the .idx file and return the results to me as a collection or something like that, so that then I can use that to render the search results in my page. (I guess you must be doing something similiar, right).
    So did that make sense ? I will appreciate if you can provide me some code examples or directions pertaining to this.
    I looked at your method's (orcale help jar file) and tried to proceed but lost my way.
    Thanks a lot
    -Ram

  • Can the Google search box in Safari be made to use the UK Google search page?

    I've only just realised, (after nearly eight months of Mac ownership!), that my Google search results seem to be rather US-oriented.
    I think this is because the search box in Safari, which I do have set to Google as my default, is using the US Google.com search engine instead of the Google.co.uk one.
    Am I correct in thinking this? And, if I am, is there any way of tweeking Safari to use the UK version please?
    I'm using Safari 5.0.5

    If you want to fix your Google search to a specific Google location, I recommend that you download and install the free plug-in Glims:
    http://www.machangout.com/
    which not only does that but much more equally useful stuff! Such as enabling Safari to run full-screen, and more.)
    (It adds items to Safari Preferences).
    Not only does it already list a number of search engines and regions, but you can also add any other search engine not already listed in Glims by using the method described here:
    http://www.machangout.com/tutorials/addsearchengine
    Just enter the name you give the search engine in the name field, and the URL for it in the Query URL field.

Maybe you are looking for

  • Private Area not Created in cFolders

    I assigned a collaboration folder (competitive scenario) while creating a Bid Invitation. This creates a public area and I added a document. The bid invitation is then published. Now when bidder creates a bid, private area is not being created in cFo

  • How to use Siri on OS X to enter test into a browser field?

    Siri on ML lets you enter text into Notes, but I'm trying to use it to enter text into a gDoc, or other browser field. I can get it to listen (fn^2) but what I say seems to go into outer space -- I think that it's trying to let me do voice commands,

  • I don't remember my password to unlock my phone

    I just got my iPhone 5s today and just set a password, but failed too many times and can't remember my password, what do I do!!

  • Echo on my Win7 Compaq Presario CQ62-231NR

    I just bought a Compaq Presario CQ62-231NR Laptop running Windows 7.  The sound has a weird echo on it.  Does anybody know how to turn off that effect? Thanks in advance. Cheers, Burt Solved! Go to Solution.

  • Add-on Business Package

    Hello, Where can I find or download Business Packages for the SAP Entreprise Portal ? I cannot find the "Business Package for SAP Higher Education & Research 1.0" ! Thank you in advance. Regards, Mathieu