Determine 3.5 or 7.0 queries

Hi to all,
we are about to let the users use the 7.0 query designer. is there a way to determine which query is already 7.0?
thanks in advance,
Carsten

Very strange. I do!
This ABAP works for me - try it.
David
*& Report  ZZDG_LIST_BI7_QUERIES
REPORT  zzdg_list_bi7_queries.
TYPES:
BEGIN OF ty_data,
  compuid  TYPE rszcompdir-compuid,
  compid   TYPE rszcompdir-compid,
  txtlg    TYPE rszelttxt-txtlg,
  propvers TYPE rszeltprop-propvers,
END OF ty_data.
FIELD-SYMBOLS:
<queries> TYPE ty_data.
DATA:
l_t_queries TYPE TABLE OF ty_data.
START-OF-SELECTION.
Get all queries
  SELECT
    compuid
    compid
    FROM rszcompdir
    INTO TABLE l_t_queries
    WHERE objvers = 'A'.
  LOOP AT l_t_queries ASSIGNING <queries>.
Get element version
    SELECT SINGLE propvers
      INTO <queries>-propvers
      FROM rszeltprop
      WHERE eltuid = <queries>-compuid.
Get query description
    SELECT SINGLE txtlg
      INTO <queries>-txtlg
      FROM rszelttxt
      WHERE eltuid = <queries>-compuid
      AND objvers = 'A'
      AND langu = sy-langu.
  ENDLOOP.
  SORT l_t_queries BY compid.
List BI7 queries
  LOOP AT l_t_queries ASSIGNING <queries> WHERE propvers = '1'.
    WRITE: / <queries>-compid,
             <queries>-txtlg.
  ENDLOOP.
END-OF-SELECTION.

Similar Messages

  • Determining in BI or in the queries which Factory Calendar to use

    Hello,
    Need some help? Any input would be much appreciated.
    Basically I am creating a query in BI 7.0 based on Utilisation for a particular business Unit. However, I need to define or incorporate somewhere, to use the GB Factory Calendar.
    I have done the normal SCAL maintenance and transferred Global settings from R/3. So all the Factory calendars have been transferred over. Our BI system is picking up the default factory Calendar as 'DE'.
    How do I now tell BI I want to use specific Factory Calendar 'GB' (Great Britain) at ALL TIMES since this is the only one we will use.
    Do we need to use a particular info object in query?
    0CALMONTH to check working days as opposed to 0FISCPER
    Many thanks in advance
    Kuljit

    Hi Del,
        Its so easy just create exit variable , wirte a logic for finding working days. and use it in Query.
    Regards,

  • How to determine estimated cost of dynamic SQL queries before execution?

    Hi Performance Gurus,
    Does anybody need know of a function module or program which can give me an estimated cost for a given SQL query. SQL query is a dynamic query and we need to know the estimated cost before we execute it.
    Cheers
    Jiby
    Moderator message: subject corrected, in the future please use one that describes your problem better.
    Edited by: Thomas Zloch on Aug 24, 2010 12:56 PM

    Hi,
    The mentioned function module does not give you the cost but the plan.
    On DB2 e.g.
    U Explanation of query block number: 1   step: 1
    D Query block type is SELECT
    S Performance appears to be bad
    S No index is used. Sequential tablespace scan
    E Method:
    D           access new table.
    D           data pages are read in advance
    D           pure sequential prefetch is used
    D           new table:
    D                       SAPD8M.DD02L
    D                       table space locked in mode:  N
    D           Accesstype: sequential tablespace scan.
    I think there is some information that could be used as well (cost figure transformed to text)
    S Performance appears to be bad
    S No index is used. Sequential tablespace scan
    But as already said: the whole requirement is quite strange...
    I'm not aware of any other options, sorry.
    Kind regards,
    Hermann

  • List of Queries/Workbooks in old version (3.5)

    Dear experts,
    I'd like to get a list of all queries and workbooks still beeing used in the old version (3.5).
    I'm looking for information like:
    ID, Name, Version, LastUsed, Creator, User ...
    Is there a way to enable the old frontend tools ( BeX, Query Designer) while they are installed on all clients ?
    Regards,
    Dirk

    Hi Dirk,
    look at that:
    determine 3.5 or 7.0 queries
    Carsten

  • InfoObjects used in Queries

    In BW 3.0B, is there an easy way to determine which InfoObjects are used in queries?  The ‘Where Used’ list for individual objects does not include queries.  I’m really looking for a way of determining which objects are actually used for reporting.
    Thanks in advance,
    Mike

    Hi Mike,
    You can see all queries in table RSRREPDIR , which will have some compressed name of the query in COMPUID field. This field will link it to a cross reference table which lists all the columns and rows of the report (table RSZELTXREF).
    The infoobject is stored in this table (RSZELTXREF) in a compressed format, I am not sure where to find the link to the infoobject technical name, but you can find the infoobject description in RSZELTDIR.
    This way (RSRREPDIR>RSZELTXREF>RSZELTDIR) you should get close to what you want.
    cheers,
    Ajay

  • Custom Report Layout with mutliple child tables

    I am trying to create a custom report layout (using Bi Publisher) where I have parent data (multiple jobs on a page) and several child tables for each job (JobDays and JobStops) and several child tables for JobDays (JobDayProviders, JobDayCrew). On the apex screen, I have a join on Jobs and JobDays and I am using functions to string each child row value for JobDayProviders and JobDayCrew together and putting a <br> in between so that they will format on separate lines within a cell. It works fine on the screen but when trying to print to pdf, it ignores these line breaks. I have also tried using <br></br> (saw an article that said just use HTML in bi pulisher) which puts two lines in between each value on the screen and is still ignored on the pdf.
    for example:
    Table hierarchy:
    Jobs table
    Job Stops
    Job Days
    Job Day Service Providers
    Job Day Crew
    Report Layout per job (will have mutlipe jobs to print, just printing 1 day per job):
    Jobs.col1 JobStops.row1 JobDay.col1 JobDayProviders.row1 JobDayCrew.r1
    JobStops.row2 JobDayProviders.row2 JobDayCrew.r2
    JobDayProviders.row3
    Thanks,
    Linda
    First, is there a way to get bi publisher to recognize the line breaks? If not, what is the best way to create a custom report for this scenario? I tried to create a report query with mutliple queries, but cannot determine how to link the child queries to the paren query. I have seen an example where a button is pressed to print one parent row and the id of that row is saved and referenced as a parameter in each of the queries, but if printing mutliple parents on a report, how would I link the child queries to the parent query?

    Helen,
    The best way for your case is to use a content folder and customize it whichever way you like.
    however, your question is about reports. the problem in reports is this that you have to use just one single query and the layout of the results of this query are displayed in a peculiar way.
    anyway. something similar but not exactly the same as what you wanted do is the following.
    use a query like the following: (with a union in between)
    SELECT COLUMN1,NULL , NULL ,NULL ,NULL
    FROM my_source_table
    WHERE myCriteria LIKE 'SoAndSo%'
    UNION
    SELECT NULL,COLUMN2 , COLUMN3, COLUMN4, COLUMN5
    FROM my_source_table
    WHERE myCriteria LIKE 'SoAndSo%'
    ---------- Now, have the following codes in the layout segments:
    <!--- header --->
    <table border="0" cellpadding="1" cellspacing="1" width="20%" align="center">
    <!--- body --->
    <tr align="center">
    <td><table border="0" cellpadding="1" cellspacing="0" width="30%" align="center">
    <tr align="center">
    <TH><#COLUMN1.FIELD#></TH>
    </tr>
    </table>
    </td>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN2.FIELD#></TD>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN3.FIELD#></TD>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN4.FIELD#></TD>
    <TD class="report_cell" ALIGN="LEFT"><#COLUMN5.FIELD#></TD>
    </tr>
    <!--- footer --->
    <TR><TD></TD></TR>
    this should produce a report with a table structure (you may see the whole if you give BORDER="1" in the main table tag). Within this table, the first column of the first row should be showing top-leftmost column value once (COLUMN1 value) and then the next rows would show last four column values as a table block on the right-bottom part.
    with kind regards,
    naqvi

  • How to know the recipient belongs to which site ?

    there are two sites site-1 and site-2 in a domain, and also there is  a mailbox  [email protected] in site-1 and  a mailbox
    [email protected] in site-2.
    when a user for [email protected] in site-1 want to send a mail to
    [email protected] ,the hub transport role can get that the
    [email protected] is in site-2, so it delivery the mail to the hub transport in site-2, so my question is how did the hub transport know that the
    [email protected] located in site-2,?did it get that by inquiry the global catalog,or something else?
    Please click the Mark as Answer button if a post solves your problem!

    Site membership is determined with a series of DNS queries
    during startup of the server; the Netlogon service is responsible for this. When you check the DNS entries of your Active Directory you’ll see not only the standard A records but also service records. These service records are used to find other services in
    the Active Directory site. Site membership is determined by comparing the local IP address with information found in DNS. The Active Directory Topology service also
    queries Active Directory, by default every 15 minutes, to retrieve a list of Domain Controllers and Global Catalog Server in the Active Directory site. This information is written to the Application Eventlog:
    http://www.msexchange.org/articles-tutorials/exchange-server-2010/planning-architecture/smtp-routing-exchange-2010-part3.html
    it seems what your stated is the site membership of the sender , but what I want to know is the  site membership of the recipient.
    Please click the Mark as Answer button if a post solves your problem!

  • Querying wide (multi-record case) table data in oracle 10g

    I've got a set of "wide" (multi-record case data format) tables similar to the format described in Oracle's "Oracle Data Mining Concepts" book in chapter 2 (http://download-west.oracle.com/docs/cd/B14117_01/datamine.101/b10698/2data.htm#1010394).
    I like the flexibility of this format, especially since it can handle thousands of attributes. But the main problem I have with this format is in determining how to write efficient, complex queries against the data.
    I've included some sample data below to demonstrate my problem. I've got two tables, one with people and the other with the attributes and values of age, income, height and weight. If I try to generate a complex query against this data, I seem to either have to rely on multisets and functions, or on a large number of self joins. Neither of which seems to scale well or perform well for large amounts of data. I know I could also add a pipelined TABLE function to filter the data more, but none of these options seem like great solutions. Does anyone have any ideas for a better way to form complex well performing queries against this type of data layout?
    For example, with my sample data below I'd like to select everyone whose (income = 2000) or (income = 50000 and weight = 210), but the only way I see of doing this is with a query like the following (which won't take advantage of any indexes on the data):
    select * from people_attributes_view
    where find_eq_attr(AttributeValue('income',2000),attribute_values) is not null
    or (find_eq_attr(AttributeValue('income',50000),attribute_values) is not null
    and
    find_eq_attr(AttributeValue('weight',210),attribute_values) is not null);
    Any help is greatly appreciated.
    Thanks.
    -- My full example starts here ----------------
    -- Create the sample tables and data
    create table people (id int, name varchar(30));
    create table attributes (id int, attribute varchar(10), value NUMBER);
    insert into people values (1,'tom');
    insert into people values (2,'jerry');
    insert into people values (3,'spike');
    commit;
    insert into attributes values (1,'age',23);
    insert into attributes values (1,'income',1000);
    insert into attributes values (1,'height',5);
    insert into attributes values (1,'weight',120);
    insert into attributes values (2,'age',20);
    insert into attributes values (2,'income',2000);
    insert into attributes values (3,'age',30);
    insert into attributes values (3,'income',50000);
    insert into attributes values (3,'weight',210);
    commit;
    -- Create some types, functions and views for the search
    CREATE OR REPLACE TYPE AttributeValue AS OBJECT
    (attribute varchar(30),
    value NUMBER);
    CREATE OR REPLACE TYPE AttributeValues AS TABLE OF AttributeValue;
    create or replace function find_eq_attr (val AttributeValue, vals AttributeValues) RETURN AttributeValue IS
    begin
    for i in vals.FIRST .. vals.LAST
    LOOP
    if ((val.attribute = vals(i).attribute) and
    (val.value = vals(i).value)) then
    return vals(i);
    end if;
    END LOOP;
    return null;
    end;
    create or replace view people_attributes_view as
    select p.name, p.id,
    cast(multiset(select attribute,value from attributes a where a.id = p.id)
    as AttributeValues) attribute_values
    from people p;
    -- Search for everyone whose (income = 2000) or (income = 50000 and weight = 210)
    select * from people_attributes_view
    where find_eq_attr(AttributeValue('income',2000),attribute_values) is not null
    or (find_eq_attr(AttributeValue('income',50000),attribute_values) is not null
    and
    find_eq_attr(AttributeValue('weight',210),attribute_values) is not null);

    I like the flexibility of this format, especially
    since it can handle thousands of attributes. But the
    main problem I have with this format is in
    determining how to write efficient, complex queries
    against the data. Can't be done. The flexibility is achieved at the cost of simplicity and performance, it is a trade off.
    See this thread for a full discussion on the subject.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:10678084117056

  • High Response Times with 50 content items in a Publisher 6.5 portlet

    Folks,
    Have set up a load test, running with a single user, in which new News Article content items are inserted into a Publisher 6.5 portlet created of the News Portlet template. Inserts have good response times through 25 or so content items in the portlet. Then response times become linearly longer, until it takes ten minutes to insert a content item, when there are 160 content items already.
    This is a test system that is experiencing no other problems. There are no other users on the system, only the single test user in LoadRunner, inserting one content item at a time. The actual size of the content item is tiny. Memory usage in the Publisher JVM (as seein on the Diagnostics page) does not vary from 87% used with 13% free. So I asked for a DB Trace, to determine if there were long-running queries. I can provide this on request, it zips to less than 700k.
    Have seldom seen this kind of linear scalability!
    Looked at the trace through SQL Server Profiler. There are several items running for more than one second, the Audit Logout EventClass repeatedly occurs with long durations (ten minutes and more). The users are publisher user, workflow user, an NT user and one DatabaseMail transaction taking 286173 ms.
    In most cases there is no TextData, and the ApplicationName is i-net opta 2000 (which looks like a JDBC driver) in the longest-running cases.
    Nevertheless, for the short running queries, there are many (hundreds) of calls to exec sp_execute and IF @@TRANCOUNT > 0 ROLLBACK TRAN. This is most of what fills the log. This is strange because only a few records were actually inserted successfully, during the course of the test. I see numerous calls to sp_prepexec related to the main table in question, PCSCONTENTITEMS, but very short duration (no apparent problems) on the execution of the stored procedures. Completed usually within 20ms.
    I am unble to tell if a session has an active request but is being blocked, or is blocking others... can anyone with SQL Server DBA knowledge help me interpret these results?
    Thanks !!!
    Robert

    hmmm....is this the ootb news portlet? does it keep all content items in one publisher folder? if so then it is probably trying to re-publish that entire folder for every content item and choking on multiple republish executes. i dont think that ootb portlet was meant to cover a use case of multiple content item inserts so quickly. by definition newsworth stuff should not happen to need bulk inserts. is there another way to insert all of the items using publisher admin and then do one publish for all?
    i know in past migration efforts when i've written utilities to migrate from legacy to publisher the inserts and saves for each item took a couple of seconds each. the publishing was done at the end and took quite a long time.

  • Dimension design question

    Hello,
    I am new to Dimensional modeling. I have a requirement where I need to create a TIme dimensional with following attibutes
    time_id,system_date, Hours,week_end_indicator,hliday_ind and some more. This dimension was created because of the fact that I am receiving a count file of roadway traffic which hold count for every hours. There is new requirement that some file will have a count after every 5 minutes . My question is how I am going to accomodate this new functionality with the current TIME dimension because there is no column with Time . Should I create a new column in the TIME dimensio or create another Dimension.
    I will apprecdiate your input.
    Thanks
    Suhail

    Hi
    You should first declare the grain of the fact table "http://www.rkimball.com/html/designtips/2001/designtip21.html". You do this by understanding the queries that your users will run against the fact table. Although this sounds obvious it deserves considerable thought and you should determine the technical implications of these queries exactly. Once you understand the demands that the queries will place on the data you should find a way to accomodate the lower grain in either the fact or the dimension. Note that the dimension is not the only place where you keep non additive attributes. This case is an example of instances where a non additive attribute (a date-time stamp) could be carried on the fact.
    The new file will contain data which is of a lower grain than the previous one (minutes versus hour). For this reason you should create a new fact which is at the lower grain - not a new dimension. You can still use the previous "hour" fact as a summary fact. If you aggregate the new fact to vehicles per hour and update the old fact each time you get new data you won't have to change applications that work off the old fact. You should decide whether you would like to lower the grain by adding an attribute to the dimension or whether you would like to keep a date-time attribute on the fact to keep the cardinality of the dimension low.
    I would venture to say that you will probably have to keep at least one date-time stamp or else two such attributes to cater for a start and end time on the fact. Once again it depends on the type of queries your users will run.
    For this purpose I suggest that you read "http://www.rkimball.com/html/designtips/2001/designtip29.html" as well as "http://www.intelligententerprise.com/020613/510warehouse1_1.shtml". Kimball has written some other articles specifically on using date-time stamps in the fact. You could also visit "www.intelligententerprise.com" and search under Data Warehousing for more information. If you still don't feel confident with your sollution you could e-mail Ralph Kimball (from www.rkimball.com).
    Regards

  • OBIEE concurrency

    I'm working with OBIEE 11g (11.1.1.5).
    I have dashboard with several sections of reports\queries in each.
    Each query takes few seconds and thus, the dashboard take a while till fully loaded.
    The log imply that the queries are being executed sequentially and not in parallel.
    Is there a way to configure the OBIEE to execute several queries simultaneously?
    I've checked connection pool configuration in admin tool – connections is set to 10.
    Thanks

    I think connection pool of 10 is low , please double check the system load at time and find the active connections .
    You can open rpd in online mode and check in manage sessions options , or you can montior the performance in EM.
    http://<server>:7001/em
    You might need to check parameters in NQSConfig.ini to determine the max no of the queries that can be executed by BI server.
    [ SERVER ]
    MAX_SESSION_LIMIT
    SERVER_THREAD_RANGE
    DB_GATEWAY_THREAD_RANGE
    Refer https://blogs.oracle.com/pa/entry/obiee_11_1_1_too
    Pls mark if it helps.

  • How to determine which queries are in which workbooks?

    HI Folks.
    I am attempting to determine if there is a method by which I can determine which queries are utilized in which workbooks in SAP BW system. 
    I found table RSRWBINDEXT which gives me the workbookid and name.  However I am not able to locate the table that gives me workbook id and query id. 
    Please let me know if you this table?
    Thanks
    Uday

    Hi,
    In BEx... copy workbook technical name.
    After wards goto RSA1 metadata repository click-workbook---find your workbook.
    If you click that workbook It gives receives information from all Queries list
    Thanks,
    Mirza

  • How to determine where-used characteristics in Queries???

    I'm trying to find an easy way to determine what queries a particular characteristic is used in? Tried from infoobject on workbench and where used Icon...and it does not reflect query information. From query designer, can do this for key figures, but apparently not for characteristics.
    Thank you for any help anyone can offer!
    Lauren

    Hi Lauren,
    You can get this info from RSD1 > put in the InfoObject name. From the menu Edit > Where used list (do not use the where used button).
    Hope this helps...

  • To determine the Queries which uses Berfore Aggregation

    Hi,
    Is there any best way to determine the Queries which uses Berfore Aggregation properies like any table which has information of all the calculated key figures which uses Before aggregation properties.
    Otherwise how can we determine the same using RSRT.
    Please help.
    Thanks
    Bhanukiran

    Hi,
    Below listed are the tables related to queries. See if you get this information in any one of those...
    RSZELTDIR     Directory of the reporting component elements
    RSZELTTXT     Texts of reporting component elements
    RSZELTXREF     Directory of query element references
    RSRREPDIR     Directory of all reports (Query GENUNIID)
    RSZCOMPDIR     Directory of reporting components
    RSZRANGE     Selection specification for an element
    RSZSELECT     Selection properties of an element
    RSZELTDIR     Directory of the reporting component elements
    RSZCOMPIC     Assignment reuseable component <-> InfoCube
    RSZELTPRIO     Priorities with element collisions
    RSZELTPROP     Element properties (settings)
    RSZELTATTR     Attribute selection per dimension element
    RSZCALC     Definition of a formula element
    RSZCEL     Query Designer: Directory of Cells
    RSZGLOBV     Global Variables in Reporting
    Regards,
    Yogesh

  • How can I determine if PeopleSoft Queries are used in Crystal Reports

    One PeopleSoft user requested that we delete 118 Queries. How can we determine if any of these Queries are being used in Crystal Reports?

    >
    One PeopleSoft user requested that we delete 118 Queries.
    >
    Why? How would the user know, or even care, if the queries exist?
    It is not the concern of a user whether such queries exist or not. If your system has a security flaw that allows non-privileged users to executed those queries then you need to fix that flaw.
    Remove the privileges that the user has on those queries and then, for that user, the queries will not exist.
    >
    How can we determine if any of these Queries are being used in Crystal Reports?
    >
    You can't.
    How do you determine if an app has any Java code that uses the SCOTT.EMP table? You can't.

Maybe you are looking for

  • How to manage different load frequencies in OWB?

    How to manage different load frequencies in OWB? We are using OWB repository 10.2.0.1.0 and OWB client 10.2.0.1.31. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux. We have situation to bring data feed into database using OWB on di

  • ITunes won't open because of my soundconfigurations?

    I don't know how it started, but it says 'iTunes can not be opened because of your soundconfiguration' Can anyone help me to fix this issue? Regards

  • Problem in a Button redirecting to a Page

    Hello All, I have a single page with 3 report regions based on same table .. and a fourth report region on another table .. Im trying from the fourth region to create a BUTTON to redirect to a FORM based on the table of the fourth region .. that tabl

  • Cant get my mini to update to 10.5.7

    my install stops almost immediately, and has the big yellow exclamation point with "install failed". underneath it says "the following install step failed: run prininstall script for MacOSXUpdCombo10.5.7. Contact the software manufacturer for assista

  • How can I use JEditorPane in my simplified web system? URJENT!!!!!

    Hello friends! In my client side browser..I would like to display the contents of web pages which are retrieved from the web server. Does the JEditorpane is useful in this scenario? if so how can i display? As i accept data in stream from the server.