Logic query

hi frnds,
sales doc no-VBAK-VBELN-parameter in selection screen
sales doc category-vbtyp for only 'c'(order) and 'g'(contract)
sales doc header-vbak
billing doc header-vbrk
how to write a query for this selection--
If the user enters the sales document number, perform the selection to see if the entered document is sales document
or contract or billing document by comparing sales document category in sales document header or biling document header.
tnx

asl

Similar Messages

  • What is the diff b/w logical query and physical query?

    Thanks In advance

    In OBIEE terms the logical query is how you query the BI Server, the Presentation services sends logical SQL to the BI Server, you can also write your own using JDBC , pull from BI Server using ODI etc.
    The BI Server engine takes this logical query and writes (a number of) phyiscal querie(s) to satisfy the logical request, depeninding on how your BMM and Physical layer is setup. There are a number of rules the BI Server evaluates before deciding the most appropriate Physical query to generate, rules include Physical Joins, Aggregate tales / Hierarchy levels and so on.
    Hope this helps,
    Good luck with interview :-)
    Alastair

  • Datatype : 25 not supported error while saving Logical Query in BIP Dataset

    Hi All,
    I have created a nested logical Query in OBIEE Publisher Datamodel using parameters.
    Here is the simple query :
    Select name, revenue, date from
    select "SubjectAreaName"."TableName"."Name" name,
    case when :Date > date '2012-01-01' then "SubjectAreaName"."TableName"."Revenue" else NULL end Revenue,
    date date
    from
    "SubjectAreaName"
    where
    date = :Date
    ) T1
    Note - :Date is the parameter. When I try saving this dataset as-is, it throws me Datatype : 25 not supported error. But, when i replace the parameter :Date with actual date, then the query works. Also, the inner query works with or without parameters. The issue arises when I use the outer query and the parameters.
    Please let me know if you have come across such a problem ?
    Any help on this regard would be highly appreciated.
    Thanks
    Swarna

    ya i can understand we wont do the sql logic at the data model part as some time performance issue may come when comparaed to sql run in package and sql running in data model . so i have mostly done using package and i will just do select * from table in the data set of data model so i didn't face any issue's like this .
    once check this tutorial may be you already
    i use to create parameters like this i didn't face any issue
    SELECT * from TEST where ID=:p_id
    http://st-curriculum.oracle.com/obe/fmw/bi/bip/bip11g/gettingstarted/gettingstarted.htm

  • OBIEE -10.1.3.4.1 - high physical and logical query response

    Hi All,
    I am facing an performance issue in OBIEE 10g .My report is taking 2 mins to come up and when i fired the physical query in the db the data is coming in 2 secs.
    Below is the details from the log file.Here I observed that response time for physical and logical query is 109 sec ~ 2 mins.Please provide me the helpful pointers.
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Execution Node: <<2650466>>, Close Row Count = 3332, Row Width = 26000 bytes
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Execution Node: <<2650466>> DbGateway Exchange, Close Row Count = 3332, Row Width = 26000 bytes
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Execution Node: <<2650466>> DbGateway Exchange, Close Row Count = 3332, Row Width = 26000 bytes
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Query Status: Successful Completion
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Rows 3332, bytes 86632000 retrieved from database query id: <<2650466>>
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Physical query response time 109 (seconds), id <<2650466>>
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 109, DB-connect time 0 (seconds)
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Rows returned to Client 3332
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Logical Query Summary Stats: Elapsed time 109, Response time 109, Compilation time 0 (seconds)

    Did you run the SQL from a client on the OBIEE server or your local machine? Does the Physical SQL on the OBIEE server against the DB run in 2 Seconds and when sent by the OBIEE server it takes 109 seconds?? Is that correct?

  • Publisher11g - no return data with a data model from logical query

    Hi, i am usign publisher11g with obiee bi server autenthication.
    On rpd i define a security model with a user variable, a initialization block and a where over one fact table.
    When i create a answer report, bi server automatically include on the wher something like this: where user = 'name'.
    Well, when i create a publisher report and try to view data from this fact table, return no data.
    If i create a data model only with a dimension table, not over automatic where from bi server, the report return data.
    View the log nqquery, i see that the generate query include where user ='', not include the value of a session variable.
    Any idea?
    Thanks.

    I do have one question, is the member Balancesheet already in the outline?
    Yes
    **Measure
    Balance Sheet
    Profit and Loss**
    Also in the load rule did you change the dimension load settings for the accounts dimension to be parent/child for the accounts dimension.
    Field Properties -> Dimension Build Properites
    Dimension=
    Field 1 Measure; Type = Parent
    Field 2 Measure; Type = Child
    Field 2 Measure; Type = Alais
    OK
    Quite often people don't realize they have to double click on the dimension name to make sure it gets put as the dimension that gets changed.
    I'm pretty sure your issue is it is trying to do the data load and not the dim build,but that could just be the first problem
    **Click on Dimension Build Field
    Click on Dimension Build setting
    Dimension = Measure; Build Method; = Parent/ Child**
    Please advise

  • Compa Ratio- Calculation logic query

    Everytime I am changing the salary of employee in PS9.2 HCM, I am getting some different Compa-Ratio. Can anyone please explain the logic behind calculation of Compa-Rati0. I have already tried to verify by formula Actual Salary/Sal Mid Point on Grade.

    Hi,
    Thank you very much for your reply.
    I have not yet configured the matrix. But I want to know the fields and tables from which the values are fetching and compa ratio is calculating.
    I believe that compa ratio formula is Compa-ratio = (100/employment level) * (Basic salary or annual salary/midpoint).
    Now what I want to know is how the values for the fields in the formula employment level, Basic salary or annual salary and midpoint will populate while calculating the compa ratio.
    Thanks in advance.
    Regards,
    Srinivas.

  • Web Logic Query

    Hi, I am Piyush, I am stuck in calling different services from my proxy service..
    I have two bussiness services and i want to call them from my Proxy Service, I have tried using Service Callout but there it is asking me some SOAP Request Body and SOAP Response Body Inputs for SAOP body if I select "Configure SOAP Body"
    and if i select "Configure Payload Parameters" then it is asking for Request and Response parameters.
    If any one has any Idea about this please put some light on it as i can't proceed further.
    If anyone has used Service Callout, then please share your knowledge with me.
    Thank in Advance... :)
    Thanks and Regards
    Piyush Kapoor
    Oracle
    Edited by: user13140590 on May 20, 2010 5:06 AM

    Hi, I am Piyush, I am stuck in calling different services from my proxy service..
    I have two bussiness services and i want to call them from my Proxy Service, I have tried using Service Callout but there it is asking me some SOAP Request Body and SOAP Response Body Inputs for SAOP body if I select "Configure SOAP Body"
    and if i select "Configure Payload Parameters" then it is asking for Request and Response parameters.
    If any one has any Idea about this please put some light on it as i can't proceed further.
    If anyone has used Service Callout, then please share your knowledge with me.
    Thank in Advance... :)
    Thanks and Regards
    Piyush Kapoor
    Oracle
    Edited by: user13140590 on May 20, 2010 5:06 AM

  • How to find database query

    Hi all,
    how to find physical query from report here m checking like Administrator->manage session--> report-->view log
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- SQL Request:
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- General Query Info:
    Repository: Star, Subject Area: AAA, Presentation: AAA
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Cache Hit on query:
    Matching Query:     Created by:     Administrator
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Query Status: Successful Completion
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 0, DB-connect time 0 (seconds)
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Rows returned to Client 6
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Logical Query Summary Stats: Elapsed time 0, Response time 0, Compilation time 0 (seconds)
    but here m not able to find database query..how to find that query plz help
    Edited by: Sonal on Jan 3, 2011 5:29 AM
    Edited by: Sonal on Jan 3, 2011 5:30 AM
    Edited by: Sonal on Jan 3, 2011 5:30 AM

    Hi,
    as Daan said, set the variable in Advanced tab but not on loglevel..
    because, our problem is to bypass the bi-server cache.
    Do this:
    1. Go to Advanced tab.
    2. In Prefix field(scroll down to see this field) , enter this:
    SET DISABLE_CACHE_HIT = 1;
    Note: Make sure that you're ended up above statement with semicolon and do not click on Set SQL option...
    3. Save report, then run it..
    4. After you see the query, i recommend you to take take out that prefix tag then save it again..

  • Date prompt not displayed in physical query

    Hi All,
      I am using obiee 11.1.1.6.8 where i am not able to view the date prompt filter which is used in dashboards in  nqs(physical query).. But the same i can able to view in Logical query..Can any one help on this issue.
    Reagrds,
    Guru

    Check cache settings.
    prefix this in prompt
    set variable disable_cache_hit=1;
    btw: Did you get a chance to look at https://forums.oracle.com/thread/2594287

  • Physical query generation: unneeded dimension tables get joined to the fact

    Hi there!
    The setup is the following:
    There is a logical fact table which is joined to 7 logical dimensions, it has 4 table sources which correspond to different time dimension levels (all other dimensions are mapped to Detail level).
    Time dimension logical table also has 4 different table sources (for days, months, quarters, and years).
    The data source is an Oracle Database 11gR2.
    The problem is:
    No matter what the logical query is, in the physical query all 7 joins are performed, even if the resulting data is then simply discarded. This results in very bad query performance.
    I feel that it is somehow related to the level-based fragmentation (since, for instance, inclusion of time dimension columns in SELECT list (not in WHERE) seems to affect physical queries), but lack sufficient knowledge to solve this problem or put up with it.
    My questions are the following:
    1) Have you ever encountered such a situation?
    2) Can unneeded joins be eliminated?
    2.1) If yes, how?
    2.2) If not, then why are they needed?
    Thanks in advance!

    Physical level:
    D01-D06 - ordinary physical tables.
    D_DATES - all time levels from dates to years, D_MONTHS - time levels from months to years, also D_QUARTERS and D_YEARS.
    F_DAILY - fact table joined to all of the D01-D06 and to D_DATES, F_MONTHLY - joined to D01-D06 and D_MONTHS, also F_QUARTERLY and F_YEARLY. All measure columns are the same.
    Logical level:
    D01-D06 correspond to ordinary logical tables with a single table source. Logical dimensions are created.
    D_TIME is a logical time dimension with four levels (dates, months, quarters, and years) and four table sources ( D_DATES, D_MONTHS, D_QUARTERS, and D_YEARS ).
    F is a fact table with four logical table sources ( F_DAILY, F_MONTHLY, F_QUARTERLY, and F_YEARLY ) with aggregation content levels set correspondingly.
    OBIEE correctly picks physical table sources for different time levels, but generates extremely inefficient SQL (joining all dimension sources in a WITH-subquery, doing ROW_NUMBER over a result set, and then discarding half the columns, which were not needed to start with).

  • Update statement query

    I have a peculiar problem related to update statement.
    In a table "table1" I have the following values for the column Name.
    John
    Doe
    Adam
    Teela
    I need to do the following updates
    John -> Adam
    Doe -> Teela
    Adam -> Doe
    Teela -> John
    One way of doing it would be to use the ROWID.
    Update table1 set value=Adam where ROWID=1
    Update table1 set value=Teela where ROWID=2
    and so on and so forth.
    But I don't want to use the ROWID.
    Therefore the logical query that one would write is
    Update table1 set value=Adam where value=John
    Update table1 set value=Teela where value=Doe
    Update table1 set value=Doe where value=Adam
    Update table1 set value=John where value=Teela
    But immediately the problem becomes apparent.
    The converted table would now look like this
    Doe
    John
    Doe
    John
    How do I make sure that the updation happens as I intend? Is there a way to work around it without ROWID?
    Message was edited by:
    user574608

    Much too late, but I don't want to have made it in vain ;) :
    michaels>  CREATE TABLE table1 (ID INTEGER,VALUE VARCHAR2(10))
    Table created.
    michaels>  INSERT INTO table1
         VALUES (1, 'John')
    1 row created.
    michaels>  INSERT INTO table1
         VALUES (2, 'Doe')
    1 row created.
    michaels>  INSERT INTO table1
         VALUES (3, 'Adam')
    1 row created.
    michaels>  INSERT INTO table1
         VALUES (4, 'Teela')
    1 row created.
    michaels>  UPDATE table1
       SET VALUE =
              CASE VALUE
                 WHEN 'John'
                    THEN 'Adam'
                 WHEN 'Doe'
                    THEN 'Teela'
                 WHEN 'Adam'
                    THEN 'Doe'
                 WHEN 'Teela'
                    THEN 'John'
              END
    4 rows updated.
    michaels>  SELECT *
      FROM table1
            ID VALUE    
             1 Adam     
             2 Teela    
             3 Doe      
             4 John     
    4 rows selected.

  • SQL Query is not found in NQQuery.log

    Hi Experts,
    I am created an request and executed. But I could not able to find the Physical SQL Query in the NQQuery.log file under OBIEE_HOME/OracleBI/server/Log directory.
    I am not running the report with Administrator privileges. Any inputs would be appreciated.
    Thanks in Advance.
    Regards
    siva

    Hi Brijesh,
    I tried to set the log level to 4, but still could not able to get the actual physical sql query from NQQuery.log file. Please see the below ( part of the log file)
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:02
    -------------------- Sending query to database named olap (id: <<16271>>):
    select distinct D1.c2 as c1,
    D1.c3 as c2,
    D1.c4 as c3,
    D1.c1 as c4,
    D1.c1 as c5
    from
    (select count(T3809.ORDER_WID) as c1,
    T15731.COUNTY as c2,
    T15731.STATE as c3,
    T15731.COUNTRY as c4
    from
    WC_ORDER_DT T3781,
    WC_ADDRESS_DT T15731,
    WC_ORDER_FT T3809
    where ( T3781.ROW_WID = T3809.ORDER_WID and T3809.SHIP_TO_ADDRESSES_WID = T15731.ROW_WID and T3781.ORDER_REQUESTED_DATE between TO_DATE('2009-08-12 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') and TO_DATE('2009-08-12 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') )
    group by T15731.COUNTY, T15731.STATE, T15731.COUNTRY
    ) D1
    order by c1, c2, c3
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:12
    -------------------- Query Result Cache: [59124] The query for user 'genericpoweruser' was inserted into the query result cache. The filename is 'C:\OBIEE\OracleBIData\cache\NQS_VREDDY_733634_59402_00000002.TBL'.
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:12
    -------------------- Query Status: Successful Completion
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:12
    -------------------- Rows 446, bytes 98120 retrieved from database query id: <<16271>>
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:12
    -------------------- Physical query response time 9 (seconds), id <<16271>>
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:12
    -------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 9, DB-connect time 0 (seconds)
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:12
    -------------------- Rows returned to Client 446
    +++genericpoweruser:2a0000:2a0003:----2009/08/13 16:30:12
    -------------------- Logical Query Summary Stats: Elapsed time 10, Response time 10, Compilation time 0 (seconds)
    Any inputs would be appreciated. Thanks in Advance.
    Siva

  • Query not returning all data

    All,
    I have 2 dimension tables and 1 logical fact table
    a01_bi_agency_interest_dim
    a01_bi_dsk_central_file_dim
    tier2_facts
    1 Complex Join in Physical Layer
    A01_BI_AGENCY_INTEREST_DIM.MASTER_AI_ID = A01_BI_DSK_CENTRAL_FILE_DIM.MASTER_AI_ID AND A01_BI_AGENCY_INTEREST_DIM.INT_DOC_ID = A01_BI_DSK_CENTRAL_FILE_DIM.INT_DOC_ID
    2 Logical Joins in BMM
    A01_BI_AGENCY_INTEREST_DIM to tier2_facts (inner, 0 or 1 to many)
    A01_BI_DSK_CENTRAL_FILE_DIM to tier2_facts (inner, 0 or 1 to many)
    Query only returns 1 row. Should return many rows, I have checked the data through sql queries in SqlPlus.
    Query from advanced tab.
    SELECT A01_BI_AGENCY_INTEREST_DIM.MASTER_AI_NAME saw_0,
    A01_BI_DSK_CENTRAL_FILE_DIM.INT_DOC_ID saw_1
    FROM TIER2 ORDER BY saw_0, saw_1
    Any help would be appreciated. I am missing something, but doesn't make sense.
    Thanks,
    Kathy

    It doesn't do the join and I get 1 record returned with zero's for both values. Why doesn't it pick up my join?
    -------------------- SQL Request:
    SET VARIABLE QUERY_SRC_CD='Report';SELECT A01_BI_AGENCY_INTEREST_DIM.MASTER_AI_ID saw_0, A01_BI_DSK_CENTRAL_FILE_DIM.INT_DOC_ID saw_1 FROM TIER2 ORDER BY saw_0, saw_1
    +++300000:300004:----2012/06/01 12:44:51
    -------------------- General Query Info:
    Repository: Star, Subject Area: TIER2, Presentation: TIER2
    +++300000:300004:----2012/06/01 12:44:51
    -------------------- Cache Hit on query:
    Matching Query:     SET VARIABLE QUERY_SRC_CD='Report';SELECT A01_BI_AGENCY_INTEREST_DIM.MASTER_AI_ID saw_0,
    A01_BI_DSK_CENTRAL_FILE_DIM.INT_DOC_ID saw_1
    FROM TIER2 ORDER BY saw_0, saw_1
    Created by:     Administrator
    +++300000:300004:----2012/06/01 12:44:51
    -------------------- Query Status: Successful Completion
    +++300000:300004:----2012/06/01 12:44:51
    -------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 0, DB-connect time 0 (seconds)
    +++300000:300004:----2012/06/01 12:44:51
    -------------------- Rows returned to Client 1
    +++300000:300004:----2012/06/01 12:44:51
    -------------------- Logical Query Summary Stats: Elapsed time 0, Response time 0, Compilation time 0 (seconds)

  • OBIEE Issue - Physical Query not picking cascaded Conditions

    In one the OBIEE Reports, I have given a set of NOT LIKE conditions as below:
    Session Name is not LIKE (pattern match) '%AUDIT%'
    AND Session Name is not LIKE (pattern match) '%audit%'
    AND Session Name is not LIKE (pattern match) '%Audit%'
    But when we refresh the report, it filters only records which uses AUDIT keyword as part of Session Names. When I checked the session log (attached for reference), I found that though logical table query takes those three conditions, while firing against database Physical Query contains condition only for AUDIT wild card as filter. Whether there is any limitation applied on using NOT LIKE conditions or is it a bug or the way the conditions are sequenced is wrong (in OBIEE sense).

    Thanks buddy. Though this workaround will solve the issue, I am curious to know why OBIEE behaves such a way. Its peculier to see OBIEE admits all 3 conditions in logical query where the Physical query skips few of the conditions in session log itself.

  • Between operator is taking as = and = in physical query

    Hi,
    i am implementing filter in obiee as follows,
    calendar date between 01/01/2010 and 01/01/2010
    or
    calendar date between 01/01/2009 and 01/01/2009
    when i executed the query it is showing the above logic in obiee logical query,where as in physical query it is taking as
    (T1233290."CALENDAR_DATE" >= DATE '2009-01-01' or T1233290."CALENDAR_DATE" >= DATE '2010-01-01') and (T1233290."CALENDAR_DATE" >= DATE '2009-01-01' or T1233290."CALENDAR_DATE" <= DATE '2010-01-01') and (T1233290."CALENDAR_DATE" >= DATE '2010-01-01' or T1233290."CALENDAR_DATE" <= DATE '2009-01-01') and (T1233290."CALENDAR_DATE" <= DATE '2009-01-01' or T1233290."CALENDAR_DATE" <= DATE '2010-01-01') )
    how to get the between operator in physical query.
    please help me out in this.

    Why are u using the same dates in between option ?

Maybe you are looking for

  • How to trigger crystal report from SAP ECC

    Hi All, I hope i m right forum to ask this question. we want to do label printing from Crystal reports. data will be present in SAP ECC . So I below issues 1 ) how to connect SAP ECC database with Crystal Reports. 2 ) how to trigger print output in C

  • Reporting Services Auto Export to PDF on a shared location with dynamic filename

    Hi Guys, I have this ERP system that is calling a url with the Document No parameter, the link automatically converts to a PDF but comes up with the OPEN/SAVE/CANCEL box however i want to automatically save to a default location...is this possible? S

  • Weblogic Session Management in a Cluster

    As per web logic documentation here http://e-docs.bea.com/wls/docs81/cluster/failover.html There is best practice to "Control Frame Access to Session Data". Control Frame Access to Session Data If you are designing a Web application that utilizes mul

  • Crashes in photoshop and nik

    I'm crashing when I try to open a NIK tool or using a brush tool in photoshop. Help?

  • Cannot find the button "Switch to configuration editor mode" in ConfigTool

    Hi All, I am trying to edit the auschemes.xml but I run the configtool.bat and i cannot find the button to switch to edit mode. I am following these steps: http://help.sap.com/saphelp_nwce10/helpdata/en/d3/1dd4516c518645a59e5cff2628a5c1/frameset.htm