Tables related to the Query Manager

I have been looking for the table that hold the data on preformatted queries.
I found the OUQR table which shows the basics of every query in teh Query Manager.
What other table(s) have data related to the queries in teh Query Manager.

Great,  is there any other tables.
When I run a query it states I have 255 charactors but shows no table info.
Other then the OUQR and OQCN, is there another table(s) that contain more data on the queries?
Thanks

Similar Messages

  • Which Table Store the Query in the Query Manager?

    Hello, I have looking for the table which store all the query inside the Query Manager.
    From this i can retrieve the query without open the program.
    Please help. Thanks.

    Hi William,
    Try this Queries in MSSQL Server Management Studio and dont use Query Generater.
    1. Run this Query, Result: Query Manager Details
    SELECT * from OQCN
    2. Run this Query, Result: Query Details on Query Manager
    SELECT * from OUQR
    Regards,
    Madhan.

  • Bex Query: Too many table names in the query The maximum allowable is 256

    Hi Experts,
    I need your help, Im working on a Query using a multiprovider of 2 datastores, I need to work with cells to assign specific acconts values to specific rows and columns, so I was creating a Structure with elements from a Hierarchy, but I get this error when I'm half way of the structure:
    "Too many table names in the query. The maximum allowable is 256.Incorrect syntax near ')'.Incorrect syntax near 'O1'."
    Any idea what is happening? is ti possible to fix it? do I need to ask for a modification of my Infoproviders? Some one told me is possible to combine 2 querys, is it true?
    Thanks a lot for your time and pacience.

    Hi,
    The maximum allowable limit is 256 holds true. It is the max no. of characteristics and key figures that can be used in the column side. While creating a structure, you create key figures (restricted or calculated) and formulas etc.. The objects that you use to create these should not be more than 256.
    http://help.sap.com/saphelp_nw70/helpdata/EN/4d/e2bebb41da1d42917100471b364efa/frameset.htm
    Not sure if combination of 2 query's is possible.  You can use RRI. Or have a woorkbook with 2 queries.
    Hope it helps.

  • How to invoke PL/SQL Table parameter in the query string?

    Hello,
    I've met a problem invoking PL/SQL Table parameter in the query string, in OWS 3.0.
    What I'm going to do is, to invoke a stored procedure to generate a web page using PL/SQL Web Toolkit 2.0, like: "http://.../owa/test_proc".
    But there is a IN parameter for this procedure, and it's a PL/SQL Table variable. So I can't invoke the procedure sucessfully just using "http://.../owa/test_proc?v_plsql=i_plsql".
    Did someone have met this kind of problem or have the answer to it? Thanks so much for your help.

    When using procedures with pl/sql-tables as parameter they should be overloaded, e.g.:
    procedure my_procedure (my_var in varchar2)...
    and
    procedure my_procedure (my_var in owa_util.ident_arr)
    the procedure then can be called with:
    http://..../my_procedure?my_var=Scott, which invokes the version with the varchar2 parameter, or
    http://..../my_procedure?my_var=Scott&my_var=Miller......
    which invokes the version with the pl/sql-Table
    Another solution might be the use of flexible parameters, passing pairs of parameter_name, parameter_value to your procedure. Your procedure looks like:
    procedure my_procedure (name_array IN owa.vc_arr, value_array IN owa.vc_arr)..
    and is invoked (note the ! )
    http://..../!my_procedure?ename=Scott&sal=200&job=clerk.....
    looping through the pl/sql tables will retrieve values of ename, sal and job for name_array and Scott, 200 and clerk for value_array
    Hth
    null

  • Tables to get the query usage

    Hi Guru's,
    I have a requirement to identify the Query usage. For eg: How many times the query is executed in the last month and the users who are executing the query. We do not have BI statistics installed in the system. So please help me to identify the tables which is storing this Query related data.
    Regards
    Savi

    You check the query run times and other details in the work load analysis (ST03) or using the table RSDDSTAT .
    inorder to check the information using the above two methods -make sure the Bi stats are maintained in your system
    http://wiki.sdn.sap.com/wiki/display/MaxDB/WorkloadMonitor%28ST03orST03N%29

  • Can anyone provide me with the tables related to the PO table BBP_PDORG

    Hi All,
    I have a table "BBP_PDORG" which talks about the Purchasing Organizational Unit.
    I need to have relationship tables of the Purchase Order  header with this table.
    Can anyone provide me with the related tables of "BBP_PDORG"
    Regards
    Dharma

    Hi Dharma,
    the "BBP_PDORG" is item related table, so you get the linkage in two steps:
    1) BBP_PDORG (organization) <----> CRMD_ORDERADM_I (item)
    Table: CRMD_LINK
    Write the BBP_PDORG-SET_GUID into the CRMD_LINK-GUID_SET. As a result you will get the CRMD_LINK-GUID_HI (this is a GUID of the CRMD_ORDERADM_I).
    2) CRMD_ORDERADM_I (item) <-----> CRMD_ORDERADM_H (header)
    In the item table you have the GUID of the header: CRMD_ORDERADM_I-HEADER
    Kind regards,
    Peter

  • Solve the query

    Hi all,
    We r working on SQL queries unable to solve teh below query.
    "Display the names of the highest paid programmers for each language"
    The table relating to the query is given below.
    PNAME DOB DOJ S PROF1 PROF2 SALARY
    anand 21-APR-66 21-APR-92 m pascal basic 3200
    altaf 02-JUL-64 13-NOV-90 m clipper cobol 2800
    juliana 31-JAN-68 21-APR-90 f cobol dbase 3000
    kamala 30-OCT-68 02-JAN-92 f c dbase 2900
    mary 24-JUN-70 01-FEB-91 f c++ oracle 4500
    nelson 11-SEP-65 11-OCT-89 m cobol dbase 2500
    partick 10-NOV-65 21-APR-90 m pascal clipper 2800
    qadir 31-AUG-65 21-APR-91 m assembly c 3000
    ramesh 03-MAY-67 28-FEB-91 m pascal dbase 3200
    resecca 01-JAN-67 28-DEC-90 m basic cobol 2500
    remitha 19-APR-70 20-APR-93 f c assembly 3600
    revathi 02-DEC-69 02-JAN-92 f pascal basic 3700
    vijaya 14-DEC-65 02-MAY-92 f foxpro c 3500
    Thanking in advance.
    Milind.

    you can achieve it using analytics.
    SQL> create table dummy(ename varchar2(32), salary number, language varchar2(32))
      2  /
    Table created.
    SQL>
    SQL> insert into dummy values('Scott', 5000, 'C')
      2  /
    1 row created.
    SQL> insert into dummy values('Tiger', 4000, 'C')
      2  /
    1 row created.
    SQL> insert into dummy values('Mark', 5000, 'Java')
      2  /
    1 row created.
    SQL> insert into dummy values('Smith', 4000, 'Java')
      2  /
    1 row created.
    SQL> insert into dummy values('White', 3000, 'Oracle')
      2  /
    1 row created.
    SQL> insert into dummy values('Blake', 25000, 'C++')
      2  /
    1 row created.
    SQL>
    SQL> set linesize 1000
    SQL> column ename format a32
    SQL> column salary format 9999999
    SQL> column language a32
    SP2-0158: unknown COLUMN option "a32"
    SQL>
    SQL> select * from (
      2  select ename, salary , language
      3       , row_number() over (partition by language order by salary desc ) high_sal
      4  from dummy)
      5  where high_sal=1
      6  /
    ENAME                              SALARY LANGUAGE                           HIGH_SAL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
    Scott                                5000 C                                         1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
    Blake                               25000 C++                                       1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
    Mark                                 5000 Java                                      1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
    White                                3000 Oracle                                    1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
    SQL> select ename, salary, language from (
      2  select ename, salary , language
      3       , row_number() over (partition by language order by salary desc ) high_sal
      4  from dummy)
      5  where high_sal=1
      6  /
    ENAME                              SALARY LANGUAGE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    Scott                                5000 C                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    Blake                               25000 C++                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    Mark                                 5000 Java                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    White                                3000 Oracle                                                                                                             

  • Query Manager- Filter List Missing Values in the Filter List.

    Hello experts,
    We would like your help in the following issue.
    We are using SAP B1 9.0 (PL10).
    When we run a query report from the query manager in SAPB1, the report results that are displayed contain an extended list of names, starting from A to Z. When we use the filters button in this report, in the filter field with the BP Names the list contains only the names from A to M, and not the rest.
    Please advise us, if anyone has faced the same issue.
    Thank you in advance,
    Vassilios Korolis.

    Hi,
    Please check SAP note:
    1012827 - Filter table function displays only up to 499
    values
    Thanks & Regards,
    Nagarajan

  • Query Manager Tables

    I see that the OQCN table holds the Query Manager Categories. Does anyone know which DB table holds the actual query name and where, if anywhere, the sql itself is held.
    Thanks

    OUQR table, QName and QString.

  • Results table difference when running query from Alert compared to Query Manager

    Hello,
    I have following query - Aim is to create alert to tell employee which customers to make visit to in next 4 weeks
    SELECT DISTINCT T1.CardName, T1.U_VisitDue, T1.U_VisitReason, T1.U_Priority, T1.U_Region as 'Area', T1.U_VNotes
    FROM dbo.OCRD T1
    WHERE DateDiff(d,T1.U_VisitDue, GETDATE()) <29
    Group BY T1.CardName, T1.U_VNotes, T1.U_VisitDue, T1.U_VisitReason, T1.U_Priority, T1.U_Region
    FOR BROWSE
    My problem is that when I run query through alert the field U_VNotes is displayed differently.
    Running the query from Query Manager the contents of this field appear in one field of the result table.
    Running the query via Alery the content of this field is split into several fields in results table according to 'new line' in field entry.
    This makes the results table from the Query less 'user-friendly' because if you want to sort the table by 'Date' column for example it makes a mess of the table because of the extra rows.
    I want results table to look like top version in picture below ... but i want to run from alert.
    Is this possible?
    How can I achieve it?
    Thanks for any assistance
    Regards, Karen

    Hi
    check this support note:1774628 The SQL SELECT DISTINCT Statement does not work in ALERTS
    Kind regards
    Agustín Marcos Cividanes

  • Pass parameter to sql statement in query manager

    Hai to all,
               I want to pass the percentage  as the parameter into the sql statemnet.i what to execute it in the query manager.
              If i execute that statement then cann't found the tablename error is coming.
             Other than the data in the table (general data)  pass to the parameter in the sql at runtime.
    for example:
    select [%0] *100
    how to pass 10 to that sql statement.
    Please help me...
    Regards,
    Raji.

    Hi Ramya,
    You can create a SP with parameters to accept and then execut this SP from SAP Business One Query Manager by passing the parameter (in your case 10). The result will be as desired.
    Ex:
    Create this Procedure in SQL Management Studio
    create proc Test(@a as int)
    as
    begin
    select (@a*100)
    end
    To Execute the Query use this Query and pass the desired values with parameters
    execute Test 10
    Regards,
    Reno

  • Query Manager Problem

    Here's an interesting problem a client is having. I have a simple query for them that retrieves some information from the primary B1 database, along with a UDT. The query works just fine inside SQL Server Management Studio. When we implement it into the query manager, before saving it, it worked just fine. We then saved it then tried running it again. One of the columns is not visibil. When click the edit button and try running it, it still doesn't work. But when we add or delete whitespace while in edit mode the query works just fine. I haven't been able to find anything on the notes yet and the customer is on 2007A PL 10 but they are planning on upgrading to 8.8+.
    Any ideas on why the query manager is behaving this way? Is it a bug thats been fixed in a later patch for 2007A or is it something else entirely?

    You may add index to U_slsm column.
    Update your query as:
    Select T0.U_slsm as 'Slsm',
    LEFT(T0.Code,9) as 'PC No',
    T0.U_date,
    T3.CardCode,
    T1.DocNum as 'Shop',
    T2.DocNum as 'Quote',
    T0.U_amount,
    T0.U_dm,
    T0.U_comment
    From [dbo].[@ORDERLOG T0]
    Left Join dbo.ORDR T1 on T0.U_DocNum = T1.DocNum
    Left Join dbo.OQUT T2 on T0.U_quote = T2.DocNum
    Left Join dbo.OCRD T3 on T0.U_CardCode = T3.CardCode
    Where T0.U_slsm = '[%0]'
    Order By T0.U_date Desc, T0.U_amount
    I have doubt regarding your links to those 3 system tables. Are those documents having internal links?

  • Print Preview for Query Manager

    Hi all
    When I open up query manager and run a report query it opens up the correct information however when I click on print preview it brings up a window which says print preferences and has a selection of window, table, or selection area.  I want the selection to be table permanently.
    What I want to know is what do I need to do to skip past that window and take me directly to print preview in the table format?

    There is no option available to skip the print preferences window or to make the selection to be permanent.
    As an alternate, Export the result to Excel and print from there or
    Create a Query Print Layout for the Query by clicking 'Create Report' button in the 'Query Manager' window, and print the Query Print Layout by selecting  Tools -> Queries -> Query Print Layout

  • U00BFhow can I show ITemname in Query manager?

    If I do a query using items, when i choose de range of items only show ItemCode and  numbers of records, how can also show itemname??
    thanks.

    Dear Mariano,
    You can get the details information about all the fields of the OITM table
    by doing the following step :-
    1. Open the Query Manager in the SAP Business One Application.
    2. Select the Table OITM
    Then you will get all the details information about the fields available in OITM table with
    description.
    After that you can select the fields of the OITM table as per your requirement.
    Regards,
    Rakesh Pati
    SAP Business One Forum Team

  • Query Manager Statement

    Dear all,
      Which database table store the query manager statement??
    How can i transfer it from one company Db to another??
    Regards,
    Kit

    Hi Chun,
    As far as I know, they are stored in two tables, one for some registration in SBO and one where the actual query is. (one of those tables is OUQR)
    However, SAP does not like it when you fool around in the company database. So you'd better use the DI-API.
    In the DI-API you find the <b>UserQueries Object</b>. What you can do, is create two company objects (through the DI-Server?) and connect to both companies. Now you can transfer the UserQuery objects between the two databases.
    Hope this helps,
    Rowdy

Maybe you are looking for

  • Error in Using Print Version  on Standard Report

    Hi Experts, I am working on Governance risk compliance and on clicking  'Print Version' on output of a report, sytem is giving the following error: Print version System Failure: call FM SALV_WD_EXPORT_PDF to ProgId ssrchgrc_PORT I have checked the en

  • Router trouble with iPhone?

    I had to reset my router, and after doing so my iPhone would not connect to my network.  I tried everything posted about it, but nothing worked.  I even hit the "forget this network" on the phone.  Nothing.  Well now I have the answer.  All I had to

  • J2ee installation

    Hi all, I have installed the j2eesdk1.4_beta2\bin on windowXP platform. The following is my setting: J2EE_HOME=C:\Sun\j2eesdk1.4_beta2 JAVA_HOME=C:\j2sdk1.4.2_05 CLASSPATH=.;%J2EE_HOME%\lib\j2ee.jar PATH=%JAVA_HOME%\bin;%J2EE_HOME%\bin when i start t

  • Grub won't install after reformat from gentoo install (error 18)

    Previously I had gentoo installed with grub in the / partition in sdb2 (hd1,1).  I got through the arch install after reformatting that jfs partition except grub wouldn't install because it said the "Selected Cylinder exceeds maximum supported by BIO

  • Search keywords on a purchased app

    Ok, this is going to sound silly, but a few weeks ago I wanted to download this app but my iPhone didn't have the latest update that was required for that app, so I could not download.  Instead I downloaded a similar app that was listed in the same s