RSRT Generate Query

We are preparing to transport our queries to our Q box. My question is do we need to generate the queries in RSRT.
What does that Generate button actually do ?

Hi Richard,
You do not need to generate the queries as a pre-step to transporting them. Generate button will generate all the code behind the query. Sometimes this helps especially when you are testing a complex query definition as generating in RSRT would cut down on the front end processing time. Also sometimes a query may not execute in BEx and we usually use the Generate in RSRT as a means to validate that the query definition is okay and active.
Hope this helps...

Similar Messages

  • Doubt in RSRT regarding generate query.

    Hi All,
    I have a doubt in transaction code RSRT (Query monitor). Under the tab environment, there are 2 options.
    1) Generate queries.
    2) Gen.Queries directly as shown below.
    i.e in RSRT> Environment> Generate Query
    and   RSRT> Environment> Gen. Query directly.
    I would like to know what the functions of these two options are and what they do?
    And also would like to know how these 2 are different from generate report.
    I know generate report means regeneration of query, but what does regeneration of query actually do?

    1) generate queries = generate the query @ next call.
    This means it does not gets generated unless the query is called by a workbook, web template,...
    2) Directly: generates the selected queries directly.
    Generation of a query:  a query is in fact an ABAP program.  This program is created by the BI system.
    To generate a query is to 'create' the ABAP program for the query.
    You can also delete the old ABAP's (old versions):
    environment -> delete old ABAPs

  • Execute generated query report in RSRT

    Hello experts,
    I tried to execute the generated report for a query in transaction RSRT and it failed ("query not found on server" was the error). Now my question is more general - what is this report for? Is it just a "background program" for a query and should not/cannot be executed in SE38? Can you execute your generated query programs in SE38?
    Thanks in advance!
    Greetings,
    Daniel

    Hi Daniel,
    Basically the queries are Subroutine Pools and you can call this in ABAP.
    Please see the following links.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/41c97a30-0901-0010-61a5-d7abc01410ee
    Re: Execute generated query report in RSRT
    I hope this will help you to get more clarity as well to me to get more points!!!!
    Regs
    Gopi.

  • BI server generating  query in a different way between two instances

    Hi All,
    We have executed a report in dev,test instances,BI server generated query in a different way in two instances where as dev BI server is on AIX operating system(recently we migrated from windows),test instance is on still on Windows environment.
    For a report below are the queries
    DEV(AIX)
    WITH
    SAWITH0 AS (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end )
    select distinct SAWITH0.c2 as c1,
    SAWITH0.c3 as c2,
    SAWITH0.c4 as c3,
    SAWITH0.c5 as c4,
    SAWITH0.c5 as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    SAWITH0.c1 as c8
    from
    SAWITH0
    order by c1, c6
    Test(Windows)
    select distinct D1.c2 as c1,
    D1.c3 as c2,
    D1.c4 as c3,
    D1.c5 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c1 as c8
    from
    (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end
    ) D1
    order by c1, c6
    If we observe test query is very simple and easy to back track but in Dev it is appending like sawwith0,sawwith1 etc..looking difficult.
    Is there in any configuration to change to generate query like Test(with out SAWWITH0).
    NOTE:Any how results are same in both instances.
    Please help me to resolve this issue.
    Thank You,
    Anil Kumar.

    Anil,
    Are your database settings the same in both of the rpds dev and test?
    Check wether you didn't change anything to the default. Open your RDP double click on the Database in the physical layer and go to Feature you can check all the settings there
    Adil

  • Performance issue while generating Query

    Hi BI Gurus.
    I am facing performance issue while generating query on 0IC_C03.
    It has a variable as (from & to) for generating the report for a particular time duration.
    if the variable (from & to) fields is filled then after taking a long time it shows run time error.
    & if the query is executed without mentioning the variable(which is optional) then the data is extracted from beginning to till date. the same takes less time in execution.
    & after that the period has to be selected manually by option keep filter value. please suggest how can i solve the error
    Regards
    Ritika

    HI RITIKA,
    WEL COME TO SDN.
    YOUHAVE TO CHECK THE FOLLOWING RUN TIME SEGMENTS USING ST03N TCODE:
    High Database Runtime
    High OLAP Runtime
    High Frontend Runtime
    if its high Database Runtime :
    - check the aggregates or create aggregates on cube and this helps you.
    if its High OLAP Runtime :
    - check the user exits if any.
    - check the hier. are used and fetching in deep level.
    If its high frontend runtime:
    - check if a very high number of cells and formattings are transferred to the Frontend ( use "All data" to get value "No. of Cells") which cause high network and frontend (processing) runtime.
    For From and to date variables, create one more set and use it and try.
    Regs,
    VACHAN

  • Link to Web Analyzer from rsrt or query designer does not work.

    If I start with the transaction RSRT a query in the Java Web would get the following error message:
    Java Runtime Error
    But if I had started earlier browser, the portal there is no problem. Is this a SSO problem?
    The same problem I have when I would run in the Bex Query Designer the query.
    Greetings
    Kerim

    Hi,
    Do you have all the parameters correct in SPRO? Take a look at this, under the BW Customizing -> REporting relevant settings or BW Customizing -> SAP Web Application Server.
    I dont remember the right place where you have to configure this, but it should be there.
    The error is just "Java Runtime Error"? Try to talk with your Basis team, maybe there is a log to help you.
    Regards, Federico

  • Can we override the viewlink generated query?

    Hi,
    my question is :
    After creating the viewlink it generates query with bindvarible, can we override this, so that we can pass a some other value ?

    Hi,
    But right now i am using the jdev11.1.1.4?
    can we oveeride it in viewlink generated query in the wizard? is their is any issues if we ovveride in wizard itself.
    Actaully i overrided the viewlink genreated query in wizard lik :
    EmpDeptFkLink viewLink
    before:
    :Bind_DepartmentId= Employees.DEPARTMENT_ID
    After override :
    DECODE(:Bind_DepartmentId,10,Employees.DEPARTMENT_ID,:Bind_DepartmentId) = Employees.DEPARTMENT_ID
    it works. is their any performance issues related to this?

  • Generate query  at a time &  connect  two database ?

    Hi
    Could u help me? it is necessary  that  
    I have  two database ( RSHPL,RSPL)  and both data base have  same table name and same fieldname (Table Name :-OITM, Fieldname :ONHAND ,pk- ITEMcode,) 
    At first I tell u what I want?
    I want to generate query  at a time &  connect  two database and same table name(OITM)  to select the TOTAL VALUE of this  field(ONHAND) and pk-key is Itemcode.  
    Is it Possible? If  Possible  plz  write this query and send me.

    Hi,
    I don't think its possible to write a query from within SAP that allows you to get data from another SAP database. 
    I have used SQL Reporting Services to report on data from multiple databases, and this works very well for many of my clients.  It depends on what you want to do with the data, do you need to display it on the screen in SAP and it to a field or will a report suffice?
    Regards,
    Adrian

  • How to delete a system generated query

    Hi,
    I want to delete a system generated query without doing which i am not able to delete a field from field group.
    Regards,
    Sharadha

    sure.
    I have a infoset with some fields.
    I want to delete a field from a field group. When i try to delete,it displays 'Field is used in a query, so cannot delete' .When i saw the query for the field all are system generated queries..i.e usergroup is SYSTGENERATE.
    I tried to take the query id from there and tried to display the querym but it says query 'SY000000xx' not generated.
    How to delete this query?
    Any suggestions?? Is it not possible??
    Regards,
    Sharadha

  • Need help to change BO generated query at universe leavel

    Hi
    Is there any possiblity to change sql at universe leavel.Kindly help me i am new to designer.
    The below is the BO generated query.
    SELECT specObjID 
    FROM SpecObj 
    WHERE SpecClass = dbo.fSpecClass('UNKNOWN') 
    Users are not intrested to go for coustomised sql in report leavel.
    I need to change the above sql accordingly due to some performance issues.
    The feilds that specify in the where clause SpecClass = dbo.fSpecClass('UNKNOWN')  move to from clause.
    Like below
    SELECT specObjID 
    FROM SpecObj ,SpecClass = dbo.fSpecClass('UNKNOWN') 
    WHERE 
    Kindly suggest me greatly appriciated.
    Thanks.
    Raj

    HI,
    As per your expectation query like below is not possible to give condition in from clause as per my understand,
    SELECT specObjID
    FROM SpecObj ,SpecClass = dbo.fSpecClass('UNKNOWN')
    WHERE
    I think your expected result can be achieved by giving condition while creating the object SpecObj.
    Steps:
    Go to universe, then edit the object SpecObj there you can give the where clause condition
    WHERE SpecClass = dbo.fSpecClass('UNKNOWN')
    This will increase your performance.
    Regrds,
    Ragoth.C

  • Generate query from other table

    Hello,
    I have stored all the column names of table A in table B .
    Here is table A columns
    ID
    NAME
    LENGTH
    STREET
    ZIPCODE
    TALUK
    DISTRICT
    Here is columns of table B
    COLUMN_NAME
    DISPLAY
    DISPLAY_ORDER
    Here is data of table B
    COLUMN_NAME         DISPLAY        DISPLAY_ORDER
    ID 0 1
    NAME 1 2
    LENGTH 1 7
    STREET 1 3
    ZIPCODE 1 6
    TALUK 0 4
    DISTRICT 0 5
    Now I need a query to select the columns of Table A whose DISPLAY equal to 1 in table B. Something like this.
    Select (select COLUMN_NAME from B where DISPLAY=1 order by DISPLAY_ORDER) from A
    Or
    can I generate query like this from table B based on values of display and display_order?
    select name, street,zipcode,length from A
    Thanks,
    Sujnan

    From your table structure i can understand you are using TABLE_B as a user template where user tells what are all the column he wants and in which order he wants.
    We have some templates like this. What we have done is like this.
    1. A back end program will return all the columns (a static set of columns. and columns names represented individually. using * is not a good practice) to the front end application.
    2. And the front end will map those columns available in the template to the screen. And there by the user gets to see only the columns that he selected.
    If you cant use such a model then only option you will be left with is to build your query dynamically. And Dynamic SQL has its own set of issues.
    Thanks,
    Karthick.

  • Problem with OBIEE generated query

    Hi All,
    I'm working on OBIEE 10.1.3.4 version. For generating one report am using five tables , in thses five tables 2 are the fact tables and remaining all are dimensional tables.
    In these five tables am using one or more colums in each table and we joined properly for these five tables(we are not getting any error on these joins). The problem is when ever i get query from OBIEE (Administration--->Manage sessions) its not generating a single query , instead of single query its splits into more queries..
    Why its not generating the single query ,we are assuming that beacause of these reports are taking time to show the results.
    Could you pls suggest me why i'm facing these and also i have these problem for only one report for remainig reports OBIEE is generating sine query.

    Hi,
    Please refer : multiple queries for single report
    Why multiple queries ?
    when we can find the multiple queries in view logn
    Thanks,
    Saichand.v

  • Data display error in OBIEE -Generated query returns correct result on DB

    Hi experts,
    We are retrieving the data from cube based on MS SQL SERVER.
    When i generate the report in answers for the amount A(Sum in rpd) it display the amount 18 only and when i fire the generated MDX query on cube its shows amount as 144(18+126)..what could be the reason its hide the amount 126 at the time of display.
    any suggestion plz.
    Regards,
    S

    Hi,
    Can you please tell, which view you are using? Check the same report in Table view if there is any agg issue from report/RPD side.
    Regards,
    Kashi

  • In the output list Repeating one line always when generating query by sq01

    Hi,
    I have generated a query in sq01 for list material document for movment type 301 (Transfer posting) using below tables :
    MSEG          Material No. MATNR, Movt. - BWART, Qty. -MENGE
    MKPF          Material doc. field  MBLNR
    MARC          Stock in Transit UMLMC
    some times it is generating the output as i want i.e.
    Material document          material no.      qty.     movt.      stock in transit
    4001               1xx          1     301     0
    4002               2xx          2     301     0
    but some time it is repeating the same line in output ie..
    Material document          material no.      qty.     movt.      stock in transit
    4001               1xx          1     301     0
    4001               1xx          1     301     0
    4001               1xx          1     301     0
    4001               1xx          1     301     0
    Please let me know the reason. is there any control in sq01.
    Thanks

    Yeah it is clear visible that, the same combination might have available in different plants.
    So to avoid the duplicate entries, always select all the primary key fields available in all the tables in the output.
    If not atleast try restricting based on plant in the selection screen or any possible duplicate entreis.
    So add the key fields at Infoset level in SQ02

  • Frequency Generator query frequency output limitations

    Hello,
    I would like to know if there is a way to query a frequency generator for the limitations of the output frequency that can be generated, using the C API. I have found documentation which clearly outlines the limitations of frequency output (min and max) for all devices supported by my current driver, but have yet to find a way to query these values from the driver and or the device itself. Is there such a method? or must I hard code these values into my program if I want to limit user input to the range of correct values for frequency?
    Thank you for your help

    By limitations of the output frequency, do you mean specs related to jitter, phase misalignment, propagation delay, etc? That information is available on the cards spec sheet. I don't believe there are attributes in the driver that report that information. You can always write your own code that identifies a card by its model number, and looks up its specs in a file. The following attribute identifies a cards model number:
    NIFGEN_ATTR_INSTRUMENT_MODEL
    Wan L
    Applications Engineer
    National Instruments
    http://www.ni.com/support

Maybe you are looking for

  • Unable to load Applet in JSP using Tomcat 5.5.12

    Hi I am aunable to applet in jsp using Tomcat 5.5.12 and JRE 1.5. Below is the code that I am using                                    <applet                                    codebase = "."                                    archive = "WebPOSApple

  • SIT (Separated In Time) - how to accomplish ?

    Hi there,  I have a task of creating a mirror system to our production system. This is needed to rehearse deployments prior to deploying to production and also as a backup system to which we could switch in a DR situation. The SIT system should recei

  • Updation Of Opening Stock

    Hi all The Problem is I have a fresh database in that database there is no transaction but i have imported the opening stock and batches as well.But now i want to Update the Opening Stock and Batches through templates  without putting the Differences

  • Exit of VF01 for field modification

    Dear All, I need to enable field for "Billed Quantity" in line item while doing VF01 so that user can change Quantity. what exit/enhancement will be used?. please help. Radsamm

  • No puedo acceder a mis facturas

    necesito ayuda para imprimir mis facturas