Query with Collapsing Result

Dear Experts,
I hope I am now on the right place upon my problem.
I am generating a query in which I wanted to have a collapsing/expanding result based on the group by from the Document number of Journal entry. But the result I got is on the screenshot below.
I boxed the doc num of JE = 100646, this is the sample doc that I wanted to have the group by function.
here is my query:
SELECT
    T4.Code,
    T0.DocDate as 'Date',
    T0.DocNum,
    T2.DocNum as 'AR Doc.#',
    T0.CardCode as BPCode,
    T3.CardName as BPName,
    T3.Address,
    T0.CounterRef as 'Ref',
    T0.TransId As 'Transaction No.',
    T3.LicTradNum as TIN,
    T1.Debit
FROM dbo.ORCT AS T0
    LEFT join JDT1 T1 ON T0.DocNum = T1.BaseRef
    LEFT JOIN OINV t2 ON t0.DocNum = t2.ReceiptNum
       LEFT JOIN OCRD T3 ON T0.CardCode = T3.CardCode
       LEFT JOIN OFPR T4 ON T0.FinncPriod = T4.AbsEntry
       Inner JOIN OACT T5 on T1.Account = T5.AcctCode
       where T1.Account='_SYS00000000301' and t4.Code=[%]
The result that I wanted to have is just like from the incoming payments form where it has that collapsing/expanding result for the purpose of Excel transfer and to return one value for the debit only as per one Journal entry.

Hi Ramoncito,
You can group easily in Crystal Report.
Please try to Create this Report in Crystal.
Thanks'
Regards::::
Atul Chakraborty

Similar Messages

  • SQL Query with wrong result

    Hello.
    I have a query with LEFT OUTER JOIN that I think returns invalid results. Here are the problem details:
    CREATE TABLE DOGERR(
    IdDog INTEGER,
    SfPdg CHAR(1),
    IdVpl INTEGER,
    SfVpGot INTEGER,
    SfZrr CHAR(1)
    INSERT INTO DOGERR(IdDog, SfPdg, IdVpl, SfVpGot, SfZrr) VALUES (1, 'S', 1, 1, '7');
    INSERT INTO DOGERR(IdDog, SfPdg, IdVpl, SfVpGot, SfZrr) VALUES (2, 'S', 1, 1, '7');
    INSERT INTO DOGERR(IdDog, SfPdg, IdVpl, SfVpGot, SfZrr) VALUES (3, '$', 1, 2, 'C');
    COMMIT;
    CREATE UNIQUE INDEX DOGERR_PK ON DOGERR(IdDog);
    And now the query:
    SELECT D.IdDog, D.SfPdg, D.IdVpl, D.SfVpGot, D.SfZrr, T.IdVpl AS IdVplJoin, T.SfVpGot AS SfVpGotJoin, T.SfZrr AS SfZrrJoin
    FROM DOGERR D
    LEFT OUTER JOIN (SELECT * FROM DOGERR WHERE SfPdg = 'S' OR SfPdg = 'S') T ON
    T.IdVpl = D.IdVpl AND T.SfVpGot = D.SfVpGot AND T.SfZrr = D.SfZrr
    WHERE
    D.IdDog = 3
    AND D.SfVpGot = 2
    AND D.SfZrr = 'C';
    This query should (by my understanding) return only one row in wich the joined subquery columns should be NULL. And indeed query returns only one row on Oracle Database 10g Release 10.2.0.1.0 - Production and on Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production:
    IDDOG = 3, SFPDG = "$", IDVPL = 1, SFVPGOT = 2, SFZRR = "C", IDVPLJOIN = NULL, SFVPGOTJOIN = NULL, SFZRRJOIN = NULL
    But on Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production it returns TWO rows:
    IDDOG = 3, SFPDG = "$", IDVPL = 1, SFVPGOT = 2, SFZRR = "C", IDVPLJOIN = 1, SFVPGOTJOIN = 1, SFZRRJOIN = "7"
    IDDOG = 3, SFPDG = "$", IDVPL = 1, SFVPGOT = 2, SFZRR = "C", IDVPLJOIN = 1, SFVPGOTJOIN = 1, SFZRRJOIN = "7"
    And now the interesting part: any of the following modified versions of query works even on Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production, although modifications should not modify the result set:
    -- Removed unnecessary WHERE conditions
    SELECT D.IdDog, D.SfPdg, D.IdVpl, D.SfVpGot, D.SfZrr, T.IdVpl AS IdVplJoin, T.SfVpGot AS SfVpGotJoin, T.SfZrr AS SfZrrJoin
    FROM DOGERR D
    LEFT OUTER JOIN (SELECT * FROM DOGERR WHERE SfPdg = 'S' OR SfPdg = 'S') T ON
    T.IdVpl = D.IdVpl AND T.SfVpGot = D.SfVpGot AND T.SfZrr = D.SfZrr
    WHERE
    D.IdDog = 3;
    -- Removed unnecessary OR condition in subquery
    SELECT D.IdDog, D.SfPdg, D.IdVpl, D.SfVpGot, D.SfZrr, T.IdVpl AS IdVplJoin, T.SfVpGot AS SfVpGotJoin, T.SfZrr AS SfZrrJoin
    FROM DOGERR D
    LEFT OUTER JOIN (SELECT * FROM DOGERR WHERE SfPdg = 'S') T ON
    T.IdVpl = D.IdVpl AND T.SfVpGot = D.SfVpGot AND T.SfZrr = D.SfZrr
    WHERE
    D.IdDog = 3
    AND D.SfVpGot = 2
    AND D.SfZrr = 'C';
    -- Removed columns from joined subquery from SELECT part
    SELECT D.IdDog, D.SfPdg, D.IdVpl, D.SfVpGot, D.SfZrr, T.IdVpl AS IdVplJoin, T.SfVpGot AS SfVpGotJoin
    FROM DOGERR D
    LEFT OUTER JOIN (SELECT * FROM DOGERR WHERE SfPdg = 'S' OR SfPdg = 'S') T ON
    T.IdVpl = D.IdVpl AND T.SfVpGot = D.SfVpGot AND T.SfZrr = D.SfZrr
    WHERE
    D.IdDog = 3
    AND D.SfVpGot = 2
    AND D.SfZrr = 'C';
    NOTE: the query itself is a little stupid but this is just to demonstrate the problem. We have faced this problem at a customer with our real-world query.
    So, my question is: why different results ?
    Thanks.
    David

    hi,
    welcome to the forum,
    don't have a solution, but I thought I'd let you know that the first SQL statement only returns 1 row on 10gR2
    SQL> SELECT D.IdDog, D.SfPdg, D.IdVpl, D.SfVpGot, D.SfZrr, T.IdVpl AS IdVplJoin, T.SfVpGot AS SfVpGo
    tJoin, T.SfZrr AS SfZrrJoin
      2  FROM DOGERR D
      3  LEFT OUTER JOIN (SELECT * FROM DOGERR WHERE SfPdg = 'S' OR SfPdg = 'S') T ON
      4  T.IdVpl = D.IdVpl AND T.SfVpGot = D.SfVpGot AND T.SfZrr = D.SfZrr
      5  WHERE
      6  D.IdDog = 3
      7  AND D.SfVpGot = 2
      8  AND D.SfZrr = 'C';
         IDDOG S      IDVPL    SFVPGOT S  IDVPLJOIN SFVPGOTJOIN S
             3 $          1          2 C
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production

  • How to Transpose the Query with following result

    Dear All,
    Can anyone tell me a method of transposing my result of the following query
    Details can be found at
    http://obiee11ge.blogspot.com/2010/07/how-to-transpose-query-with-following.html
    Regards
    Mustafa

    Hi,
    Try this
    Create a combined request with,
    criteria 1 : Dummy, Revenue (Actual),Cogs(Actual), Opex(Actual), PL(Actual)
    in the dummy column fx enter the value as 'Actual'
    criteria 2 : Dummy, Revenue (Yago),Cogs(YAgo), Opex(Yago), PL(Yago)
    in the dummy column fx enter the value as 'Yago'
    criteria 3 : Dummy,Revenue (Budget),Cogs(Budget), Opex(Budget), PL(Budget)
    in the dummy column fx enter the value as 'Budget'
    Now go to the result columns and set the coumn names (Revenue, Cogs, Opex, PL) for the result set.
    For the Dumny remove the column heading.
    In table view you will get the result.
    Thanks,
    Vino

  • Error executing a query with large result set

    Dear all,
    after executing a query which uses key figures with exception aggregation the BIA-server log (TrexIndexServerAlert_....trc) displays the following messages:
    2009-09-29 10:59:00.433 e QMediator    QueryMediator.cpp(00324) : 6952; Error executing physical plan: AttributeEngine: not enough memory.;in executor::Executor in cube: bwp_v_tl_c02
    2009-09-29 10:59:00.434 e SERVER_TRACE TRexApiSearch.cpp(05162) : IndexID: bwp_v_tl_c02, QueryMediator failed executing query, reason: Error executing physical plan: AttributeEngine: not enough memory.;in executor::Executor in cube: bwp_v_tl_c02
    --> Does anyone know what this message exactly means? - I fear that the BIA-Installation is running out of physical memory, but I appreciate any other opinion.
    - Package Wise Read (SAP Note 1157582) does not solve the problem as the error message is not: "AggregateCalculator returning out of memory with hash table size..."
    - To get an impression of the data amount I had a look at table RSDDSTAT_OLAP of a query with less amount of data:
       Selected rows      : 50.000.000 (Event 9011)
       Transferred rows :   4.800.000 (Event 9010)
    It is possible to calculate the number of cells retreived from one index by multiplying the number of records from table RSDDSTAT_OLAP by the number of key figures from the query. In my example it is only one key figure so 4.800.000 are passed to the analytical engine.
    --> Is there a possibility to find this figure in some kind of statistic table? This would be helpful for complex queries.
    I am looking forward to your replies,
    Best regards
    Bjoern

    Hi Björn,
    I recommend you to upgrade to rev 52 or 53. Rev. 49 is really stable but there are some bugs in it and if you use BW SP >= 17 you can use some features.
    Please refer to this thread , you shouldn't´t use more than 50% (the other 50% are for reporting) of your memory, therefor I have stolen this quote from Vitaliy:
    The idea is that data all together for all of your BIA Indexes does not consume more then 50% of total RAM of active blades (page memory cannot be counted!).
    The simpliest test is during a period when no one is using the accelerator, remove all indexes (including temporary) from main memory of the BWA, and then load all indexes for all InfoCubes into ain memory. Then check your RAM utilization.
    Regards,
    -Vitaliy
    Regards,
    Jens

  • Display a query with multiple results and a little addon :D

    Hello everybody,
    I wanna make a JSP page that displays multiple results from a query.
    I wanna those results to appair in a table, a row each one, and also a little "square radio form buttton" that makes me select rows I wanna delete (with another button at the end)
    any idea?
    Better if you post the code, I'm not a good JSP writer
    thanks everybody for your attention and your time
    Kind regards

    You're right.. I'd post nothing..
    But it's all still in progress and I don't know what to post..
    I understand is really difficult to invent some code without an origin (variables, functions, the bean), but also some general info would be really appreciated,also making a streched example if you can..
    REQUESTS:
    1) I need make a new JSP page, where will be visualize rows returned from a precise query selection
    2)I use Beans, and my idea was to create Bean in JSP, open connection, make the query and create "some kind of FOR cycle" that fills a table, row by row
    3)Every row must got a little "radio button" for a delete selection; the delete function will start when I press a specific button in this page(i'll use a servlet for this function)
    4)The biggest and important trouble is HOW to display multiple rows in the Table

  • Simple XMLTABLE query with unexpected results

    I have the following (simplified) query. I have formatted the XML for easy reading in this message but there is no whitespace in the actual query.
    Can anyone tell me why I am receiving no records returned. Expecting one record with the value of 'REJECT'
    Thanks in advance.
    select a.decision
        from XMLTABLE(xmlnamespaces('http://schemas.xmlsoap.org/soap/envelope/' as "soap"
                                  , 'urn:schemas-cybersource-com:transaction-data-1.28' as "c")
                   , '/soap:Envelope/soap:Body/c:ReplyMessage'
          PASSING xmltype.createxml('
    <?xml version="1.0" encoding="utf-8" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
       <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-27593971">
         <wsu:Created>2009-06-15T17:49:02.870Z</wsu:Created>
        </wsu:Timestamp>
       </wsse:Security>
      </soap:Header>
      <soap:Body>
       <c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.28">
        <c:merchantReferenceCode>27-0</c:merchantReferenceCode>
        <c:requestID>2450881422960008402433</c:requestID>
        <c:decision>REJECT</c:decision>
        <c:reasonCode>520</c:reasonCode>
        <c:requestToken>Ahj77wSRCbmf6bYuaSwCIJsfFx1osBTY+LjrRekDpt6POYI0kyro9JLBWBORCbmf6bYuaSwCAAAALQX8</c:requestToken>
        <c:purchaseTotals>
         <c:currency>USD</c:currency>
        </c:purchaseTotals>
        <c:ccAuthReply>
         <c:reasonCode>520</c:reasonCode>
         <c:amount>99.50</c:amount>
         <c:authorizationCode>123456</c:authorizationCode>
         <c:avsCode>Y</c:avsCode>
         <c:avsCodeRaw>YYY</c:avsCodeRaw>
         <c:cvCode/>
         <c:cvCodeRaw/>
         <c:authorizedDateTime>2009-06-15T17:49:02Z</c:authorizedDateTime>
         <c:processorResponse>A</c:processorResponse>
        </c:ccAuthReply>
       </c:replyMessage>
      </soap:Body>
    </soap:Envelope>')
          COLUMNS
            decision varchar2(30) PATH '/c:ReplyMessage/c:decision') aScott

    i think that the problem was in
    '/c:replyMessage/c:decision' and not '/c:ReplyMessage/c:decision'
    and
    '/soap:Envelope/soap:Body/c:replyMessage' not '/soap:Envelope/soap:Body/c:ReplyMessage'
    try
    Bye
    Maurizio

  • Mysql query with duplicate results

    I have a db that someone else set up that I am querying. It
    should have been set up to use a couple of different tables... one
    for clients and one for subclients with foreign keys to identify.
    However, each row has both the client and subclient which means
    there are duplicate clients since a single client may have several
    subclients.
    So...
    My query returns multiple clients where I need only one. I am
    guessing I can handle this in a loop with AS2.0 but I can't figure
    out how to tell when a unique client is detected. Does this make
    sense? Do I need to set my query up differently?

    try {
    ResultSet rs = DB.exQuery("SELECT max(transaction_date) as lastest_date, transaction_value,transaction_type"
                                  + "FROM transaction_log WHERE user_id =" + user.getId() + " AND is_credit = '1'");
    if ( rs.next () ) {can you explain
    *     trans_date = rs.getString("lastest_date");* // trans_date is a string type or date type... and max(transaction_date) as lastest_date returns which type...
         credit = rs.getString("transaction_value");
         trans_method = rs.getString("transaction_type");
    } catch(SQLException ex) {}

  • Query with wrong result

    Hei
    I have created a query, but when I made extraction, the invoice number occur many times, but it should only occur 1 time. The summation of the value it is also many times.
    How do I get the Query made ​​so that the invoice  and amount only appears 1 time, if there is only one piece.
    I assume that it is some markings, I have not been properly plugged.
    BillT   Billing Type    Bill.Doc.     Rj     reason for rej.  Net Value   Curr.  BICat    Billing category  Doc. Date           Profit Ctr
    S1      Cancel Inv     94902955                                     3480,00    DKK   L         Del.related bil       10.06.2009        1832
    S1      Cancel Inv     94902955                                     3480,00    DKK   L         Del.related bil       10.06.2009        1832
    S1      Cancel Inv     94902955                                     3480,00    DKK   L         Del.related bil       10.06.2009        1832
    S1      Cancel Inv     94902955                                     3480,00    DKK   L         Del.related bil       10.06.2009        1832
                                                                                    13920,00   DKK
    I only need Bill.Doc and Net Value once.
    Regards Lone
    Edited by: Lone Holst on Aug 2, 2011 10:50 AM

    Hi,
    After you got the records/data in to the ITAB1.
    assign ITAB1 to ITAB2.
    sort: ITAB1, ITAB2 BY bill_doc.
    delete adjaucent duplicates from ITAB2 comparing bill_doc.
    loop at ITAB2.
    loop at ITAB1 where bill_doc = ITAB2-BILL_DOC.
    ITAB3-NET_VALUE = ITAB3-NET_VALUE + ITAB1-NETVALUE.
    clear ITAB1.
    endloop.
    MOVE-CORRESPONDING ITAB1 to ITAB3.
    append ITAB3.
    clear: ITAB2, ITAB3.
    ENDLOOP.
    Ram.

  • Splitting a query with modulo

    Hello
    I'm stuck in a problem which I started in an other post.
    Unfortunately I didn't really get the answers which satisfy me.
    Even though there were good inputs.
    Assume we have a query with 9 results and I would like to
    build DIVs containing 2 results each. Every DIV is set to 'display:
    none;', so nothing is displayed on a page for the moment!
    Somewhere below these DIVs I place back and forward arrows in
    DIVs to navigate through the DIVs above without reloading the page
    (!). I managed to build the sets of DIVs an giving them an ID (see
    code). Every ID appears twice, once in the DIV containg the 2
    results and once in the DIV containing the navigation arrows. This
    because I want to display the arrows (always a set of 2) depending
    on where I am staying in navigation. Means, when I display the
    first DIV there is no option to go backwards, so the back arrow is
    inactive. If you go one step forward you can navigate backwards and
    forwards so both arrows have to be active. At the very end you
    cannot navigate forward any longer so I would like to display a
    forward button which I inactive (and a backwards button which is
    active).
    The whole displaying should be controled by JavaScript.
    It seems that I have several problems. First the Javascript
    isn't working properly - I couldn't figure out why? And the Mozilla
    shows all DIVs. And then the whole navigation through the sets
    doesn't work the way it should. I prepared the entire code (see
    below). You can add it to an empty cfm file and it should work - at
    least whats working for the moment ;-)
    I'm really thankful for a solution.

    Hi,
    You should have a look at the the attributes startrow="" and
    maxrows="" of the output tag.
    Based on the Rowcount attribute of the query you can output
    the first half or the second half of the query result with it (or
    divide it into more areas if necessary).
    From a design perspective is your goal not ideal for most
    applications.
    The reason why people usually implement a 1ToN interface like
    you are planning is because you have a huge result set (as example
    1000s of users). In this case you would with your approach always
    render the HTML for 1000 altough the webuser would only look at a
    small portion of it. In this case it would be far better to only
    render the HTML for the accounts the user wants to see right now
    (again using startrow / maxrows), and really create a new page for
    the next / previous set of accounts. This way you only have to
    render a small HTML page, that gets returned to the user faster,
    and makes him happier.
    (If you really only have a small number of records your
    approach would work though, but since you are still learning I
    though to mention it ;-)
    Cheers,
    fober

  • Query with some rows I need in 1 row

    I have this:
    FK_Field1, Description
    1..................A
    1…………..B
    2…………..A
    1…………..C
    3…………..E
    3…………..G
    And I need to do a query with this result:
    FK_Field1, Description
    1…………..A, B, C
    2…………..A
    3…………..E, G
    How can I do it?????

    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • App-V PowerShell: Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results

    Please Vote if you find this to be helpful!
    App-V PowerShell:  Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results
    Just posted this to the wiki:
    http://social.technet.microsoft.com/wiki/contents/articles/25323.app-v-powershell-script-to-query-xenapp-servers-for-app-v-publishing-errors-and-output-an-excel-document-with-the-results.aspx

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • Creating Query with dynamic columns to show results

    Hi experts,
    I need to know how to create a query with dynamic columns. Meaning, I don't want to create a query with fixed columns representing the 12 periods of the fiscal year to show me actuals as the fiscal year proceeds.
    For example, if I am currently in the middle of period 3 (March) of a fiscal year, when I execute the query, I need it to automatically only show me the 'Actuals' for periods 1 and 2, without seeing the columns from periods 3 to 12 showing blank.
    Then when I am in the middle period 5 (May) the query should ONLY show me the columns for periods 1 to 4 'Actuals', no results should be shown for periods 5 to 12 yet, and I don't want to even see blank columns for period 6 to 12.
    How do I define my columns, to achieve this.
    Maximum points will be awarded.
    Thanks Everyone.

    Hi Josh,
    I'm having a little difficuluty understanding what should be included in my restricted key figures.
    The time characteristics that I have available to use are:
    0FISCPER3 (posting period)
    0FISCYEAR (fiscal year), currently using SAP EXIT to default current fiscal year.
    0FISCVARNT (fiscal year variant).
    In addition, I have the following characteristics available to be used in the columns:
    Value type (10)
    version (currently I'm using variable for it)
    Currency type (020)
    Currency (USD).
    Can you explain what my restricted key figure should be based on and how it should look.
    I tried to create a restircted key figure using 0AMOUNT, and 0FISCPER3. For 0FISCPER3  I created a range from 1 to previous period (using SAP EXIT that supplied previous period).I also had value type, version, currency type, and currency included in that restricted key figure.Then when I tried to drag 0FISCPER3 under the restricted key figure once again, it wouldn't let me, probably because I've already used 0FISCPER3 in the restricted key figure.
    Please let me know if my explanation is not clear.
    Your step by step help would be great.
    Thanks
    Edited by: Ehab Mansour on Sep 23, 2008 2:40 PM

  • Query with a condition - Overall results row displays incorrect value

    Hi All,
    I have a bw query with top 40 conditions. However, The Overall Result Row Figures Do Not Equal The Sum of the Column Rows.
    Although the top condition is activated, the overall result still displays the overall result of the whole report.
    I have 3 columns in the report
    Selected Period
    Prior Period and
    Variance
    The formula for variance is (Selected Period/Prior Period)-1.
    Does anyone have an idea to fix this?
    Thank you so much in advance.
    Have a great day!

    Hi Gaurav,
    Thank you so much for your reply, however this does not solve fully the issue.
    Changing the properties to "Summation" will indeed provide me with the correct sum for the "selected period" and "Prior Period." However what I need in the Overall Result Row for the "Variance" column is not the total but instead the value when the total of Selected Period is divided by Prior Period then minus 1.
    Overall Variance = (Overall Selected Period/Overall Prior Period)-1
    Do you know a way to make this possible.
    Thank you so much.

  • Query with Cost Center Hierarchy giving incorrect results

    Hi All,
    I have a universe built based on BEx query on Cost Center cubes. When enabling hierarchy in BEx Query and building Web intelligence Report based on the universe, I get incorrect results.  The levels of the hierarchy is incorrect, many of the cost centers are missing etc. I checked the universe and confirmed that all levels of hierarchy are generated correctly. The Lov generated for these levels are correct and I see the complete hierarchy when using the BEx Variable in Universe for filtering.
    I tried the same query with Hierarchy disabled with a different universe and it is providing correct results. Not sure what I'm missing here. Any inputs regarding this is appreciated.
    Thanks & Regards,
    Sree

    Ingo, Thanks for your suggestion. Of course, I did update the Universe after any changes in the query. Tried different query setting related to hierarchy  to make it work, but didn't many any difference and I get consistently incorrect results.
    One thing what I wanted to confirm is, if there is any known bug in SP 2 Fix Pack 2.7 related to hierarchies. If not, it might be me doing some thing wrong  and I will look into in more detail.
    Thanks & Regards,
    Sree

Maybe you are looking for