OLAP Query (urgent)

Hi
Can we use query with Joins on Multiple cubes using OLAP API?
Thanks

Can we use query with Joins on Multiple cubes using OLAP API?
The OLAP API doesn't differentiate the measures that are of interest to u on the basis of the cubes that they are associated with, as long as the join match the dimensions that the measures are dependent on. if measure mA of cube cA depends on dimensions w,x and if measure mB of cube cB depends on dimensions y,z, you can generate source for the measures and join then with w,x,y,z to get the results from multiple cubes. If you miss the dimensions, however, you will get the UnmatchedInputException.

Similar Messages

  • Comments in OLAP Query

    I have tried unsuccessfully to use the traditional comment indicators (--, // or /../) in the MII OLAP Query Template.  Can any one offer any insight ?  We are running xMII 11.5 Thanks
    Edited by: Gary Wilson on Mar 18, 2010 4:17 PM

    The error returned is:
    com.lighthammer.webservice.SoapException: The XML for Analysis provider encountered an error
    The query below runs successfully without the comment.  I have tried using all 3 comments types, all yielded the error.  I also tried using them different places in the query and all yield the error above.
    SELECT
         [Measures].[4H6FMCTGVWP1OONPFSU60LPHL],
         [Measures].[4H6FMD15EVAR7B75LMWIANO7D],
         [Measures].[4H6FMD8TXTWGPXQLRGYUKPMX5],
         [Measures].[4H6FMDGIGSI68KA1XB16URLMX],
         [Measures].[4H6FMDO6ZR3VR6TI353J4TKCP],
         [Measures].[4H6FMDVVIPPL9TCY8Z5VEVJ2H],
    --      [Measures].[4H6FME3K1OBASFWEET87OXHS9],
         [Measures].[4H6FMEB8KMX0B2FUKNAJYZGI1],
         [Measures].[4H6T8MSDUVPDDCUKTO2LASITL],
         [Measures].[4H6T8N02DUB2VZE0ZI4XKUHJD]
    ON COLUMNS,
    NON EMPTY
         [ZBRSPPLNT].MEMBERS
    ON ROWS
    FROM
         [Z_SD_C33/Z_Z_SD_C33_Q0127A]
    SAP VARIABLES
         [Param.1]
         [ZCYTCMC] INCLUDING "[Param.2]":"[Param.3]"
         [Param.4]
         [Param.5]
    ~~~~~~~ End of query ~~~~~~~
    Param.1 = [ZS_RPLTC] INCLUDING "[P145]" [ZS_RPLTC] INCLUDING "[P146]"  [ZS_RPLTC] INCLUDING "[P151]"
    Param.2 = 05/2009
    Param.3 = 05/2009
    Param.4 = [ZS_CATGY] INCLUDING "[C]"  [ZS_CATGY] INCLUDING "[G]"  [ZS_CATGY] INCLUDING "[W]"
    Param.5 = [0SALEORG] INCLUDING "[BP01]" [0SALEORG] INCLUDING "[CR01]"
    ~~~~~~~~ End Params ~~~~~~~
    Notes:
    We are using SAP BI  7.0
    While the above query is only using the "---" the same error is returned if either of the comments indicators are included.
    I'm sorry the test editor doesn't seem to like the code.... especially the strike through.  That and the liks are unintended.
    Thanks for taking the time to review our issue and offer suggestions
    Edited by: Gary Wilson on Mar 19, 2010 12:31 PM
    Edited by: Gary Wilson on Mar 19, 2010 12:34 PM

  • OLAP Query. More than one Column/Row.

    Hi all experts.
    I am developing an OLAP query and need to create it in this way:
    Material: As BI Characteristic.
    Unit: As BI Characteristic.
    Value: As BI Ratio.
    Returned structure in MII should be like this:
    Material    Unit      Value
    Mat1          M3        250
    Mat2          KG       140
    Mat3          M3        200
    The BI query I am using is showing data in that way using BEx Analyzer.
    However, I am not able to create it using MII's MDX syntax coded like this:
    SELECT
              [Measures].[xxxxxxxxxxxxxxxxxxxxxxxxxxx]      ---> This is my BI Ratio "Value"
    ON COLUMNS,
    NON EMPTY
              [SM_MATERI].MEMBERS, [1CUDIM].MEMBERS         ---> These are Materials and Units
    ON ROWS
    FROM MYCUBE/MYQUERY
    Which will return data in this way, whithout crossing Materials & Units:
    Material   Unit  Value
    Mat1        -
          250
    Mat2        -
          140
    Mat3        -
          200
               M3      450
               KG      140
    Any idea about how should I code my query?
    I have checked both SAP's Help website and SDN Posts but without success.
    Many thanks and kind regards.
    Albert.
    Edited by: a.pozos.basterrica on Apr 27, 2011 9:19 AM

    Albert,
    It's tough to follow what you're after without knowing the definition of your cube but here's a document that will help you:
    [http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/458ba574-0a01-0010-2aab-d1ee76ee9820|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/458ba574-0a01-0010-2aab-d1ee76ee9820]
    It's also available under the Connectivity section of the MII Wiki, in case this link doesn't work for some reason.  Also, the best way to write your OLAP Queries is not from within the MII OLAP Query template but rather via the SAP GUI interface of the BW system in transaction code MDXTest.  This is a bit more comprehensive and gives you better error messages.
    Hope this helps,
    Sam

  • OLAP Query not running

    Hi Gurus
    I am getting and exception while executing a MDX Query through OLAP Query .
    All my queries were running properly until yesterday from OLAP query as well as through MDXTest TCode .
    But today it gives me an excetion
    com.sap.lhcommon.webservice.SoapException: The XML for Analysis provider encountered an error
    I know it is generic error description for any kind of error back from BW but here situation is
    My query is running from MDXTest with out any problem .
    Any ideas on this like where to see the logs..etc?
    Thanks in advance.
    -Hari

    It is solved.
    It was because User which we used for configuring data server doesn't have enough roles.
    I have created a new connection with my user name and it works .
    But interesting thing here is, it was working with the system user i was using with old roles and security team claims that they haven't changed any role for that user . But last day that user locked because of pswd expriration and it was unlocked .After wards my OLAP Queries are stopped working .
    And its really pain with out getting proper error message from OLAP Query.
    From my experience to debug these kind of errors:
    Make sure your MDX query runs from MDX Test .
    If it runs successfully, then we can narrow down to the connection setting in MII .
    Thanks
    Hari

  • OLAP Query ouput's Dateformat

    Hi  Folks
    I have a OLAP query which returns two columns of type date. When i run MDX query through mdxtest transaction in sap,
    I get the ouptput of date format MM/DD/YYYY
    And when i run same query  through OLAP Query of MII , i get the output with DD.MM.YYYY format
    Any idea why date format is changing from SAP( MDXTEST) TO MII ( OLAP Query ) ? Is it picking date format from MII user profile ?
    Thanks
    Hari

    Test your OLAP query and select text/xml output.  Then in your column that shows the DD.MM.YYYY string observe the associated SQLDataType attribute.  91, 92, 93 will be recognized as date type fields and the QueryTemplate's DateFormat parameter will be used in the html output (the xml will be in the yyyy-MM-ddTHH:mm:ss format).
    If the SQLDataType is a string then the formatting is being done entirely on the OLAP server side and MII is only getting a string and would therefore not be doing any manipulation.
    Since the DD.MM.YYYY format is not a prototypical format you'll see inside MII, and looks more like a SAP GUI type setting, I am speculating that MII is just showing what comes back from the OLAP request, and perhaps it is a user setting from the associated data server connection that is dictating the date format.

  • XMII OLAP Query Template SAP Variables Count Limit

    While working with the MII OLAP Query template and connecting to a a BW Adhoc query with many input variables.  I have noticed the SAP Variables list available in the MII OLAP Query template seems to be limited.  Is this really true, can it be configured to display more variables, is there something else that would cause variales not to be displayed in the query template list? 
    I have tried to type in SAP variables not displayed in the list but actually in the BW Query but this just resulted in an error.
    Any insight would be really helpful.  Thanks

    Gary,
    One again drawing some analogies here , this time with the JCO. Suppose you are interfacing to a ZBAPI and at some point you make some changes to the Z function in R/3. These changes are not automatically reflected in MII unless you refresh/clear the JCO Proxy. Could a similar scenario be attributing to your issue?
    What I would suggest is to disable / save / enable / save your OLAP data server and see if that makes any differnce.
    I may be totally off track here but just a thought.
    Goodluck
    Regards
    Udayan

  • Report in Answers using a SQL Query(Sub Query) URGENT

    HI
    Can anyone help me in creating a report in answers using this below query please. Its little Urgent. I have no idea how to implement this, please suggest.
    Select
    a.account_external_id, a.edc_external_id, c.ann_usg, indclassificationcode, g.usage_cv, trunc(g.bill_month, 'mm') bill_month
    from
    crm2ro.cdi_customer_gas_all a, pwrline.account@lodestar_source b, crm2ro.cdi_ann_usg c,
    select * FROM
    select * from
    select distinct d.account_external_id, d.end_date, d.bill_month, USAGE_CV, dense_rank () over (partition by d.account_external_id order by d.end_Date desc) dr
    from
    crm2ro.cdi_usage_gas_all d, crm2ro.cdi_customer_gas_all e
    where
    d.account_external_id = e.account_external_id and upper(e.plan_id) like '%CPS%' and e.product_external_id = 'V' and e.crm_product = 'MV'
    and (e.plan_id like '%VAR_CPS_MX_G%' or e.plan_id like '%VAR_CPS_IT_G%') and e.account_status = 'ACTIVE'
    )where dr<=12
    ) h
    ) g
    where
    a.account_external_id = g.account_external_id and
    a.account_external_id = c.account_external_id and
    a.account_external_id = b.accountid
    thanks
    van

    Yes Jai,
    I want to do it from rpd or from the advance tab as 974053 said. But I am not aware of doing through advance tab and if I want to do through rpd then how can I do it. Please help me how to build this query through rpd or any other solution.

  • OLAP query returning "name" rather than "key" attribute for a dimension

    Hello,
    I am busy with a project that involves drawing data from an OLAP cube (in SAP BW), then transforming and contextualising for use in an EMI environment. The project runs on MII 12.1.
    The standard OLAP connector and OLAP queries have been used (would prefer not to go the route of creating a call to the OLAP XMLA web service directly). One of the important dimensions is returned as a name (descriptive text) rather than a key (the cost element code itself), preventing us from reliably applying business rules to classify cost elements. Categorising cost elements based on their text descriptions is not a sustainable solution.
    The output needs to allow for two dimensions (cost element and an equipment identifier) against which individual cost values will be listed. It appears that the two dimensions must both be on the "x-axis", as result columns are automatically renamed, e.g. C000001, C000002, etc. If anyone knows of a way to suppress this renaming behaviour, please let me know.
    Is it possible to force the "key" attribute to be returned instead of the "name" attribute? I have identified two preferred options:
    1. MDX syntax of the query itself
    2. configuration of the OLAP connector
    I have not found a way to do this through MDX syntax, but would welcome any suggestions.
    Alternatively, perhaps there is a non-standard way of configuring the OLAP connector so that the key rather than the name attribute is returned for all dimensions. Has anyone anything, e.g. chosen a non-standard ColumnNameAttribute or DataTypeAttribute, in this regard?
    Thanks,
    Marc Chaplin

    <b>Apologies for the formatting above</b>
    Part 1:
    Hello,
    I am busy with a project that involves drawing data from an OLAP cube (in SAP BW), then transforming and contextualising for use in an EMI environment. The project runs on MII 12.1.
    The standard OLAP connector and OLAP queries have been used (would prefer not to go the route of creating a call to the OLAP XMLA web service directly). One of the important dimensions is returned as a name (descriptive text) rather than a key (the cost element code itself), preventing us from reliably applying business rules to classify cost elements. Categorising cost elements based on their text descriptions is not a sustainable solution.
    The output needs to allow for two dimensions (cost element and an equipment identifier) against which individual cost values will be listed. It appears that the two dimensions must both be on the <i>x-axis</i>, as result columns are automatically renamed, e.g. C000001, C000002, etc. If anyone knows of a way to suppress this renaming behaviour, please let me know.

  • Enterprise bpm cluster query urgent please

    Hello
    I have 3 machines one 1st machine it is admin server and other 2 are managed servers
    I will install weblogic on all 3 machines and then create a domain but my query is to do with BPM enterprise.Should I install bpm enterprise on all 3 machines as well or just on 1 machine(admin machine/1st machine) ? this is my doubt can you please clarify..
    it is pretty urgent
    thanks

    With one machine is enough, then you will deploy to the WLS cluster at the end of the day you do not need to have BPM installed except for the Process Administrator.
    HTH

  • In line SQL Query - Urgent

    In the problem iam calculating a Stock report.In the SQL suppose the relation F does not return any rows , then (D.ACC_QTY + F.RET_QTY) gives null. How to avoid this problem..
    SELECT A.CLASSIFICATION_CODE, A.ITEM_ABBR, A.ITEM_DESC,
    A.ALT_ITEM_CODE, A.UOM_DESC, A.BASIC_PRICE,
    (A.OPENING_QTY + B.ACC_QTY - C.ISS_QTY)
    OPENING_STOCK, (D.ACC_QTY + F.RET_QTY) ACCEPT_QTY, E.ISS_QTY,
    ((A.OPENING_QTY + B.ACC_QTY - C.ISS_QTY)
    + (D.ACC_QTY + F.RET_QTY) - E.ISS_QTY)
    QTY_IN_HAND
    FROM (SELECT CLASSIFICATION_CODE, ITEM_ABBR, ITEM_DESC,
    ALT_ITEM_CODE, NVL(OPENING_QTY, 0)
    OPENING_QTY, UOM_MASTER.UOM_DESC,
    BASIC_PRICE
    FROM ITEM_MASTER, UOM_MASTER
    WHERE ITEM_MASTER.UOM_CODE = UOM_MASTER.UOM_CODE)
    A,
    (SELECT GRN_DETAIL.ITEM_CODE,
    SUM(NVL(GRN_DETAIL.ACCEPT_QTY, 0))
    ACC_QTY
    FROM GRN_HEADER, GRN_DETAIL
    WHERE GRN_HEADER.GRN_NO = GRN_DETAIL.GRN_NO AND
    GRN_HEADER.GRN_DATE < '01-JAN-2006'
    GROUP BY GRN_DETAIL.ITEM_CODE) B,
    (SELECT MRN_DETAIL.ITEM_CODE,
    SUM(NVL(MRN_DETAIL.ISSUED_QTY, 0))
    ISS_QTY
    FROM MRN_HEADER, MRN_DETAIL
    WHERE MRN_HEADER.MRN_NO = MRN_DETAIL.MRN_NO AND
    MRN_HEADER.MRN_DATE < '01-JAN-2006'
    GROUP BY MRN_DETAIL.ITEM_CODE) C,
    (SELECT GRN_DETAIL.ITEM_CODE,
    SUM(NVL(GRN_DETAIL.ACCEPT_QTY, 0))
    ACC_QTY
    FROM GRN_HEADER, GRN_DETAIL
    WHERE GRN_HEADER.GRN_NO = GRN_DETAIL.GRN_NO AND
    GRN_HEADER.GRN_DATE BETWEEN
    '01-JAN-2006' AND '31-DEC-2006'
    GROUP BY GRN_DETAIL.ITEM_CODE) D,
    (SELECT MRN_DETAIL.ITEM_CODE,
    SUM(NVL(MRN_DETAIL.ISSUED_QTY, 0))
    ISS_QTY
    FROM MRN_HEADER, MRN_DETAIL
    WHERE MRN_HEADER.MRN_NO = MRN_DETAIL.MRN_NO AND
    MRN_HEADER.MRN_DATE BETWEEN
    '01-JAN-2006' AND '31-DEC-2006'
    GROUP BY MRN_DETAIL.ITEM_CODE) E,
         (SELECT B.ITEM_CODE,
    SUM(NVL(B.QUANTITY_ISSUE,0))
    RET_QTY
    FROM MATERIAL_MOVEMENT_HEADER A,MATERIAL_MOVEMENT_DETAIL B
    WHERE A.SLIP_NO = B.SLIP_NO AND
    A.SLIP_DATE BETWEEN
    '01-JAN-2006' AND '31-DEC-2006' AND
              B.TO_JOB_CODE IS NULL
    GROUP BY B.ITEM_CODE) F
    WHERE A.ALT_ITEM_CODE = B.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = C.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = D.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = E.ITEM_CODE (+) AND
         A.ALT_ITEM_CODE = F.ITEM_CODE (+) AND
         A.ALT_ITEM_CODE LIKE 'BOBRNG%017' AND
    A.CLASSIFICATION_CODE = 'BO';

    Sorry members for writing the word 'Urgent'..and really cutting down on your work.
    I am thankful to the person who pointed out my error in the query..it was really simple..should hv solved myself, but even after changing the query with Nvl and changing the business logic to some extent it again fetches no rows..
    The sql given underneath is basically a job-wise stock allocation report..
    SELECT B.JOB_CODE, A.CLASSIFICATION_CODE, A.ITEM_ABBR,
    A.ITEM_DESC, A.ALT_ITEM_CODE, A.UOM_DESC,
    A.BASIC_PRICE, (A.OPENING_QTY + (NVL(B.ACC_QTY, 0)
    + NVL(F.RET_IN, 0)) - (NVL(C.ISS_QTY, 0) + NVL(G.RET_OUT,
    0))) AS OPENING_STOCK, (NVL(D.ACC_QTY, 0)
    + NVL(H.RET_IN, 0)) RECEIVED, (NVL(E.ISS_QTY, 0)
    + NVL(I.RET_OUT, 0)) ISSUED,
    ((A.OPENING_QTY + (NVL(B.ACC_QTY, 0) + NVL(F.RET_IN, 0))
    - (NVL(C.ISS_QTY, 0) + NVL(G.RET_OUT, 0)))
    + (NVL(D.ACC_QTY, 0) + NVL(H.RET_IN, 0)) - (NVL(E.ISS_QTY,
    0) + NVL(I.RET_OUT, 0))) QTY_IN_HAND
    FROM (SELECT CLASSIFICATION_CODE, ITEM_ABBR, ITEM_DESC,
    ALT_ITEM_CODE, UOM_MASTER.UOM_DESC,
    BASIC_PRICE, 0 OPENING_QTY
    FROM ITEM_MASTER, UOM_MASTER
    WHERE ITEM_MASTER.UOM_CODE = UOM_MASTER.UOM_CODE)
    A,
    (SELECT GRN_HEADER.JOB_CODE,
    GRN_DETAIL.ITEM_CODE,
    SUM(NVL(GRN_DETAIL.ACCEPT_QTY, 0))
    ACC_QTY
    FROM GRN_HEADER, GRN_DETAIL
    WHERE GRN_HEADER.GRN_NO = GRN_DETAIL.GRN_NO AND
    GRN_HEADER.GRN_DATE < '01-JAN-2006'
    GROUP BY GRN_HEADER.JOB_CODE,
    GRN_DETAIL.ITEM_CODE) B,
    (SELECT B.TO_JOB_CODE, B.ITEM_CODE,
    SUM(NVL(B.QUANTITY_ISSUE, 0)) RET_IN
    FROM MATERIAL_MOVEMENT_HEADER A,
    MATERIAL_MOVEMENT_DETAIL B
    WHERE A.SLIP_NO = B.SLIP_NO AND
    A.SLIP_DATE < '01-JAN-2006'
    GROUP BY B.TO_JOB_CODE, B.ITEM_CODE) F,
    (SELECT MRN_HEADER.JOB_CODE,
    MRN_DETAIL.ITEM_CODE,
    SUM(NVL(MRN_DETAIL.ISSUED_QTY, 0))
    ISS_QTY
    FROM MRN_HEADER, MRN_DETAIL
    WHERE MRN_HEADER.MRN_NO = MRN_DETAIL.MRN_NO AND
    MRN_HEADER.MRN_DATE < '01-JAN-2006'
    GROUP BY MRN_HEADER.JOB_CODE,
    MRN_DETAIL.ITEM_CODE) C,
    (SELECT B.JOB_CODE, B.ITEM_CODE,
    SUM(NVL(B.QUANTITY_ISSUE, 0)) RET_OUT
    FROM MATERIAL_MOVEMENT_HEADER A,
    MATERIAL_MOVEMENT_DETAIL B
    WHERE A.SLIP_NO = B.SLIP_NO AND
    A.SLIP_DATE < '01-JAN-2006'
    GROUP BY B.JOB_CODE, B.ITEM_CODE) G,
    (SELECT GRN_HEADER.JOB_CODE,
    GRN_DETAIL.ITEM_CODE,
    SUM(NVL(GRN_DETAIL.ACCEPT_QTY, 0))
    ACC_QTY
    FROM GRN_HEADER, GRN_DETAIL
    WHERE GRN_HEADER.GRN_NO = GRN_DETAIL.GRN_NO AND
    GRN_HEADER.GRN_DATE BETWEEN
    '01-JAN-2006' AND '31-DEC-2006'
    GROUP BY GRN_HEADER.JOB_CODE,
    GRN_DETAIL.ITEM_CODE) D,
    (SELECT B.TO_JOB_CODE, B.ITEM_CODE,
    SUM(NVL(B.QUANTITY_ISSUE, 0)) RET_IN
    FROM MATERIAL_MOVEMENT_HEADER A,
    MATERIAL_MOVEMENT_DETAIL B
    WHERE A.SLIP_NO = B.SLIP_NO AND
    A.SLIP_DATE BETWEEN '01-JAN-2006' AND
    '31-DEC-2006'
    GROUP BY B.TO_JOB_CODE, B.ITEM_CODE) H,
    (SELECT MRN_HEADER.JOB_CODE,
    MRN_DETAIL.ITEM_CODE,
    SUM(NVL(MRN_DETAIL.ISSUED_QTY, 0))
    ISS_QTY
    FROM MRN_HEADER, MRN_DETAIL
    WHERE MRN_HEADER.MRN_NO = MRN_DETAIL.MRN_NO AND
    MRN_HEADER.MRN_DATE BETWEEN
    '01-JAN-2006' AND '31-DEC-2006'
    GROUP BY MRN_HEADER.JOB_CODE,
    MRN_DETAIL.ITEM_CODE) E,
    (SELECT B.JOB_CODE, B.ITEM_CODE,
    SUM(NVL(B.QUANTITY_ISSUE, 0)) RET_OUT
    FROM MATERIAL_MOVEMENT_HEADER A,
    MATERIAL_MOVEMENT_DETAIL B
    WHERE A.SLIP_NO = B.SLIP_NO AND
    A.SLIP_DATE BETWEEN '01-JAN-2006' AND
    '31-DEC-2006'
    GROUP BY B.JOB_CODE, B.ITEM_CODE) I
    WHERE A.ALT_ITEM_CODE = B.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = C.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = D.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = E.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = F.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = G.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = H.ITEM_CODE (+) AND
    A.ALT_ITEM_CODE = I.ITEM_CODE (+) AND
    B.JOB_CODE = C.JOB_CODE AND
    B.JOB_CODE = D.JOB_CODE AND
    B.JOB_CODE = E.JOB_CODE AND
    B.JOB_CODE = F.TO_JOB_CODE AND
    B.JOB_CODE = G.JOB_CODE AND
    B.JOB_CODE = H.TO_JOB_CODE AND
    B.JOB_CODE = I.JOB_CODE AND
    A.ALT_ITEM_CODE = 'BOSNVL0004-006-002';
    regards,

  • Newbie question: Binding very large strings ( 4k) to OLAP query

    Hi there guys
    I am using Oracle 10.2 and I am trying to bind string variables to olap literals in my query string:
    SELECT TRUNC(IND-TO_DATE('01011900','ddmmyyyy')+2),VAL1
                   FROM (
                        SELECT *
                        FROM TABLE(
                             OLAP_TABLE(
                                  'OLAPFAME.MAG_CRD DURATION SESSION',
                                  :1 ))
                             MODEL
                                  DIMENSION BY(IND)
                                  MEASURES(VAL1,R2C1)
                                  RULES UPDATE SEQUENTIAL ORDER())
                   WHERE OLAP_CONDITION( R2C1, :2, 1 )=1
    I try and setString() to params 1 and 2, but it doesnt seem to work. The reason I am trying this is because when I pass large (>4K) DML string literals inline, I get ORA-01704. Hence me trying to bind to the variables via prepared statements (not even sure if this will get me past this 4k problem)!
    I have also read that I can store these large strings in variables and use those as a OLAP DML string via the ampersand syntax (not sure how to do this, ensuring that they would just have statement scope).
    Sorry if this is obtuse, but I'm at my wits end after a long days "trying stuff" :(
    Thanks in advance
    Adam

    Once again, I answer my own question. -_-;;
    The second process (fetch_comments) seems to be unnecessary. The Automated Row Fetch seems to be able to handle the 32K by itself. I'm still curious why the second process didn't work though....

  • Need help wrt query urgently

    Hi ,
    I have two tables "table1" and "table2".Structure of the both tables are below:
    Table1:
    CustomerId
    CustFname
    CustLname
    Convertion_Date
    Table2:
    CustomerId
    DFname
    DLname
    CustomerId is used for joins .
    Now i need a query based on conversion_date.
    If conversion_date <sysdate
    then
    select CustomerId ,CustFname,CustLname,Convertion_Date from Table1
    else
    select CustomerId,DFname,DLname from Table2
    End .
    I need this functionality in a single query using case statement.
    Please help ..
    Thanks,
    Preethi MR

    Preethi MR wrote:
    Hi ,
    I have two tables "table1" and "table2".Structure of the both tables are below:
    Table1:
    CustomerId
    CustFname
    CustLname
    Convertion_Date
    Table2:
    CustomerId
    DFname
    DLname
    CustomerId is used for joins .
    Now i need a query based on conversion_date.
    If conversion_date <sysdate
    then
    select CustomerId ,CustFname,CustLname,Convertion_Date from Table1
    else
    select CustomerId,DFname,DLname from Table2
    End .
    I need this functionality in a single query using case statement.
    Please help ..
    Thanks,
    Preethi MRIs this urgent homework? Or urgent something else work?
    What exactly makes it urgent?

  • Change Source of query - Urgent

    hello everyone,
    I have an urgent requirement to change the source of the query, till now our query is based on Info cube but now we want it to come from the Multiprovider, so please give me some suggestions what to do. Should i copy this query, if yes, how should i go about it.
    i shall assign points for all helpful answers.
    Thanks
    Laura.

    Thanks for your quick reply guys,
    But the thing is that the source cube is already a part of the multiprovider, but the multiprovider is not fetching data from the source cube. But when i try using RSZC, it gives me error list of info objects that are nt present in Multiprovider. Why is this error, because the info cube is already part of the multiprovider. Does the field of info cube also need to be part of multiprovider? If i dont have them, then doest that mean that i have to re-design the whole query again?
    I have assigned points.
    thanks
    Laura

  • Olap Query Results Pattern

    Hi
    I have a cube with measure Sales and one of the dimensions is product which has got a hierarchy
    So when I query the cube like
    select sales, dim_product
    from sales_cube
    where dim_time= '2008'When I get the results it looks like
    product1_parent 10000
    product1_child1    2500
    product1_child2    7500
    product2_child1    4500
    product2_child1    4500
    product2_child2    2500
    product2_parent    2500so my question here is is there any pattern in which the olap returns this query. does the result depend on the hierarchy order in the dimension table ?
    How can I ask the cube to return the results like
    product1_parent
    product1_child1 
    product1_child2  
    product2_parent
    product2_child1 
    product2_child2

    The 'hierarchy view' contains a HIER_ORDER column, so you can join this to the fact and order accordingly. For example
    select sales, dim_product
    from sales_cube s, product_hier_view p
    where p.dim_key = s.dim_product
    and dim_time= '2008'
    order by p.hier_orderObviously you will need to replace 'product_hier_view' with the appropriate view in your schema.

  • Plant Maintenance - AUFK table - LTEXT attribute - long text query - URGENT

    Hi,
    I have a query regarding AUFK table which has the LTEXT attribute in it.
    I want to know how this field gets set ?
    Does sap automatically sets the field, is it a standard functionality ? and also what difference does it bring when it gets set and when it is blank ?
    Please educate me on this, its very urgent.
    Many Thanks,
    Madan

    Hi,
    Thanks for your response.
    But I need detail explanation about the AUFK-LTEXT field.
    1. How does it get set ?
    2. Do we have to set it manually or sap does that ?
    Awaiting your response,
    Madan
    Edited by: Madan N on Jun 11, 2008 2:15 PM

Maybe you are looking for