API to access query structure / bad performance Bex query processor

Hi, we are using a big P&L query structure. Each query structure node selects a hierarchy node of the account.
This setup makes the performance incredible bad. The Bex query processor caches and selects per structure node - which creates an awful mass of unnecessary SQL statements. (It would be more useful to try to merge the SQL statements as far as possible with an group by account to generate bigger SQL statements.)
The structure is necessary to cover percentage calculations in the query, the hierarchy is used to “calculate” subtotals by selecting different nodes on different levels.
I am searching now for a different approach to cover the reporting requirement - or - for a API to generate out of the master structure smaller query structures per area of the P&L. It there any class to access the query structure?
We tried already to generate data entries per node level (duplicating one data record per node where it appears with an characteristic for the node name). But this approach generates too many data records.
Not using hierarchy nodes would make the maintenance terrible. To generate "hard" selections in the structure out of the hierarchy an API to change the structure be also useful.

The problem came from a wrong development of exit varibale used in Analysis Authorization
Edited by: SSE-BW-Team SSE-BW-Team on Feb 28, 2011 1:46 PM

Similar Messages

  • Structure copy in BEx query Designer?

    I created structure in BEx Query Designer in BI PRD which is our BI production system.
    I'd like to copy structure to BI DEV which is our BI development system.
    Is is possible?
    If you have any solution, tell me about that.
    Thanks.

    Hi
    If you want the object which is there in PRD to DEV system means, the only way is to do transportation. but to do reverse transportation, you should have STMS connection from your PRD to DEV system.
    The better way is to create the structure again in DEV system.
    If you want to go with reverse transportation, consult your basis person.
    Regards,
    Venkatesh

  • Access/display BW Document in BEx Query

    Hello,
    I have a request to create a BEx query to access BW documents.  These BW documents are created in documents manager via WEB planning screens.  I can see in Analyzer where we have queries created to do this but I am unable to get any of these to work.   I have tried searching SAP Help and SCN and see no direction on how to do this.  I am not sure if I am stating this request correctly.   We are on BW/Analyzer 7.3.
    Any help would be greatly appreciated.
    Thanks,
    Roseanne

    Hi Roseanne,
    well, if the document was created in BPS, I doubt that it can be shown in a query. I think the kind of document and the data it is connected to is different, but I am not sure about this.
    This might be mor a question for portal or knowledge management, so maybe it´s better to find a forum for these topics here in SCN.
    also have a look here
    http://scn.sap.com/community/data-warehousing/business-planning
    that´s where questions for BPS are asked. maybe you can find something about BPS-Dosuments.
    Sorry, but it´s not my favourite topic ;-)
    regards
    Cornelia

  • More than 2 structures in a BEx query

    Hi guys,
      Is it possible to define more than 2 local/global STRUCTURE for a particular query ?

    Eugene mate,
       Okay, so now I understood that I need one Structure just for Key Figure
       Now, my precise question is this !
       I need Profit Centre to be on my Row.
       Here, I need to make 'Selections' where I make restrictions based on my Hierarchy such as Business Units, Function Units, Subsidiaries.
       I also need Cost Elements to be on my Column.
       Here, I need to make 'Selections' where I make restrictions based on my Hierarchy such as Taxation, Depreciation and so on.
      Hence, how can contain this selections when I am left with only 1 Structure ?
      Kindly advice what would your goodself suggest ?

  • Order query by empty position - BEX query

    Hi,
    We need to order a BEX query by Invoice and Ascending Position (we need to see first the empty position #).
    The type of the infoObject "Position" is NUMC (6).
    We tried to convert it to char, but it didn't work.
    We also ordered the query by position ascending, but the result we obtained is:
    Invoice
    Position
    Material
    Quantity
    1
    1
    930100
    20
    1
    2
    930200
    30
    1
    50
    2
    1
    930200
    70
    2
    70
    3
    1
    930200
    35
    3
    2
    930100
    25
    3
    60
    We need to obtain this result:
    Invoice
    Position
    Material
    Quantity
    1
    50
    1
    1
    930100
    20
    1
    2
    930200
    30
    2
    70
    2
    1
    930200
    70
    3
    60
    3
    1
    930200
    35
    3
    2
    930100
    25
    Any ideas?
    Thanks in advance,
    Florencia

    Hi Kodanda, we've already tried the ascending order, but we're gettting this order:
    nvoice
    Position
    Material
    Quantity
    1
    1
    930100
    20
    1
    2
    930200
    30
    1
    50
    2
    1
    930200
    70
    2
    70
    3
    1
    930200
    35
    3
    2
    930100
    25
    3
    60
    We need to obtain this result:
    Invoice
    Position
    Material
    Quantity
    1
    50
    1
    1
    930100
    20
    1
    2
    930200
    30
    2
    70
    2
    1
    930200
    70
    3
    60
    3
    1
    930200
    35
    3
    2
    930100
    25

  • Mantaining closed the query structure when launching a query from "query mg

    Hi,
    Is it possible to maintain closed the query structure window when launching a query from the "Query manager" menu?
    As say, if I want to see the query syntax, I must click on the "Display query structure" symbol.
    Now the query results windows, always starts with the "query structure" opened. 
    Thanks
    Antonio

    Hi Antoni,
    Only system built-in queries allow that.  We could not control this button to hide query by default.  You may post it as a DRQ on this forum:
    /community [original link is broken]
    Thanks,
    Gordon

  • Does Coloring Of Rows and Column in Query effect the Performance of Query

    Hi to all,
    Does Coloring of Rows and Column in Query via WAD or Report designer , will effect the performance of query.
    If yes, then how.
    What are the key factor should we consider while design of query in regards of Query performance.
    I shall ne thankful to you for this.
    Regards
    Pavneet Rana

    There will not be any significance perofrmance issue for Colouring the rows or columns...
    But there are various performance parameters which should be looked into while designing a query...
    Hope this PPT helps you.
    http://www.comeritinc.com/UserFiles/file/tips%20tricks%20to%20speed%20%20NW%20BI%20%202009.ppt
    rgds, Ghuru

  • Bad performing update query - converting from sqlserver to oracle

    SQLSERVER UPDATE
    =================
    UPDATE
    netVIEWplus.dbo.DIM_OUC_Latest
    SET
    OUC = LatestDIM.OUC,
    OUC_Desc = LatestDIM.OUC_Desc,
    OUC_Level = LatestDIM.OUC_Level,
    Parent_OUC = LatestDIM.Parent_OUC,
    CC_Type = LatestDIM.CC_Type,
    GFR = LatestDIM.GFR,
    CORP = LatestDIM.CORP,
    SOB = LatestDIM.SOB,
    Div_Unit = LatestDIM.Div_Unit,
    Div_Desc = LatestDIM.Div_Desc,
    L1_OUC = LatestDIM.L1_OUC, L1_DEPT_DESC = LatestDIM.L1_DEPT_DESC,
    L2_OUC = LatestDIM.L2_OUC, L2_DEPT_DESC = LatestDIM.L2_DEPT_DESC,
    L3_OUC = LatestDIM.L3_OUC, L3_DEPT_DESC = LatestDIM.L3_DEPT_DESC,
    L4_OUC = LatestDIM.L4_OUC, L4_DEPT_DESC = LatestDIM.L4_DEPT_DESC,
    L5_OUC = LatestDIM.L5_OUC, L5_DEPT_DESC = LatestDIM.L5_DEPT_DESC,
    L6_OUC = LatestDIM.L6_OUC, L6_DEPT_DESC = LatestDIM.L6_DEPT_DESC,
    L7_OUC = LatestDIM.L7_OUC, L7_DEPT_DESC = LatestDIM.L7_DEPT_DESC,
    L8_OUC = LatestDIM.L8_OUC, L8_DEPT_DESC = LatestDIM.L8_DEPT_DESC,
    Current_Flag = LatestDIM.Current_Flag,
    INF_Div_Unit_Only = LatestDIM.INF_Div_Unit_Only,
    INF_DIM_OUC_Id_Used = LatestDIM.DIM_OUC_Id
    FROM
    netVIEWplus.dbo.DIM_OUC_Latest
    INNER JOIN
    netVIEWplus.dbo.DIM_OUC HistoryDIM
    ON
    HistoryDIM.DIM_OUC_Id = netVIEWplus.dbo.DIM_OUC_Latest.DIM_OUC_Id
    INNER JOIN
    netVIEWplus.dbo.DIM_OUC LatestDIM
    ON
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id
    Oracle Version
    ===========
    UPDATE
    netVIEWplus.DIM_OUC_Latest T1
    SET (OUC,OUC_Desc,OUC_Level,Parent_OUC,CC_Type,GFR,CORP,SOB,Div_Unit,Div_Desc,L1_OUC,L1_DEPT_DESC,L2_OUC,
    L2_DEPT_DESC,L3_OUC,L3_DEPT_DESC,L4_OUC,L4_DEPT_DESC,L5_OUC,L5_DEPT_DESC,L6_OUC,L6_DEPT_DESC,L7_OUC,L7_DEPT_DESC,
    L8_OUC,L8_DEPT_DESC,Current_Flag,INF_Div_Unit_Only,INF_DIM_OUC_Id_Used) =
    ( SELECT LatestDIM.OUC OUC,LatestDIM.OUC_Desc OUC_Desc,
    LatestDIM.OUC_Level OUC_Level,LatestDIM.Parent_OUC Parent_OUC,LatestDIM.CC_Type CC_Type,LatestDIM.GFR GFR,
    LatestDIM.CORP CORP,LatestDIM.SOB SOB,LatestDIM.Div_Unit Div_Unit,LatestDIM.Div_Desc Div_Desc,
    LatestDIM.L1_OUC L1_OUC,LatestDIM.L1_DEPT_DESC L1_DEPT_DESC,LatestDIM.L2_OUC L2_OUC,
    LatestDIM.L2_DEPT_DESC L2_DEPT_DESC,LatestDIM.L3_OUC L3_OUC,LatestDIM.L3_DEPT_DESC L3_DEPT_DESC,
    LatestDIM.L4_OUC L4_OUC,LatestDIM.L4_DEPT_DESC L4_DEPT_DESC,LatestDIM.L5_OUC L5_OUC,
    LatestDIM.L5_DEPT_DESC L5_DEPT_DESC,LatestDIM.L6_OUC L6_OUC,LatestDIM.L6_DEPT_DESC L6_DEPT_DESC,
    LatestDIM.L7_OUC L7_OUC,LatestDIM.L7_DEPT_DESC L7_DEPT_DESC,LatestDIM.L8_OUC L8_OUC,
    LatestDIM.L8_DEPT_DESC L8_DEPT_DESC,LatestDIM.Current_Flag Current_Flag,
    LatestDIM.INF_Div_Unit_Only INF_Div_Unit_Only,LatestDIM.DIM_OUC_Id INF_DIM_OUC_Id_Used
    FROM
    netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
    where
    HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
    and
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id and rownum=1)
    where exists ( SELECT 1
    FROM
    netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
    where
    HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
    and
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id )
    Problem is oracle update is taking long time than sqlserver update. Can it be written in some orhet way.
    Regards,
    Koushik

    Hi,
    Have you gathered stats as well ? Did the query use index(es) as well ?
    Without any more info like explain plan, indexes, etc., further help will be unable.
    Nicolas.

  • Remote cube: bad performance of query in source system

    I have created a remote cube that looks to a simple R/3 view VBAK/VBAP.
    In a query on this cube I select document date. on the VBAK there is a special index on document date.
    It appears that my date variable is not included in the SQL statement that is executed on the sourcesystem. This means that on VBAK/VBAP always a full table scan occurs.
    The query on the source system (as generated by executing my BW query) looks like this. (the document-date = AUDAT):
    SELECT
      "MANDT" , "VBELN" , "POSNR" , "VBTYP" ,
      "AUART" , "AUDAT" , "VKORG" , "VTWEG" ,
      "SPART" , "VKGRP" , "VKBUR" , "NETWR" ,
      "WAERK" , "NTGEW" , "GEWEI" , "KWMENG" ,
      "VRKME" , "SHKZG"
    FROM
      "ZBW_2LIS11ITM"
    WHERE
      "MANDT" = :A0#
    My question is: Is it normal that for a remote cube always full table scans are executed. This appears to me a waste of system resources. Or is it a bug?

    Hi,
    if you are using ABAP routines for populating fields of your RemoteCube, you should provide 'inverse routines' as well. According to SAP documentation, this allows for applying filters in the source system rather than doing full table scans.
    An example can be found here: [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/f5af4a4db53482e10000000a1553f6/content.htm]
    Best regards
    Christian

  • How can I access the Edit preferences performance use Graphics Processor option through the jsx scri

    I want to runa a script with and without GPU options. I made an actionto click on the Edit>Preferences>Performace>use graphics processor checkbox. But now I want to check wether the checkbox is ticked or not to determine i should use it for a with GPU run or without GPU run. I cant seem to find the prefernce/property/object name to access this selection in the photoshop scripting library. Can someone help me here?

    I did not see anything in the Object Viewer for preference open GL, performance or GPU  so I do not think there is a DOM method available to retrieve or set it.  You can set it using the action manager using scriptlistener code.
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc29 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref19 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idCchP = charIDToTypeID( "CchP" );
            ref19.putProperty( idPrpr, idCchP );
            var idcapp = charIDToTypeID( "capp" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref19.putEnumerated( idcapp, idOrdn, idTrgt );
        desc29.putReference( idnull, ref19 );
        var idT = charIDToTypeID( "T   " );
            var desc30 = new ActionDescriptor();
            var idMmrU = charIDToTypeID( "MmrU" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc30.putUnitDouble( idMmrU, idPrc, 90.000000 );
            var idopenglEnabled = stringIDToTypeID( "openglEnabled" );
            desc30.putBoolean( idopenglEnabled, true );
        var idCchP = charIDToTypeID( "CchP" );
        desc29.putObject( idT, idCchP, desc30 );
    executeAction( idsetd, desc29, DialogModes.NO );

  • Query disable status in bex query designer

    hi all,
    when i opened query in query designer for PA_PA cube it is in disabled mode.iam unabled to restrict or do any changes.and giving error like "the dependent objects are in different transport orders."i installed this particular queries in BI content also.please help me in this issue.
    Regards
    Vamshi D Krishna

    Hi Vamshi,
    go to rsa1 - transport connection and select  ur query and drag & drop into third screen
    u can see the locked request no. of ur query ..
    u can take that no. and go to se03 -- give that request no. & execute unlock..
    now, again come back to ur transport connection, now u can see under ur query no transport request has been assigned.. select the truck symbol..
    It will ask u for the new request no. assign a new request no. of urs and check the query at the designer level. u can able to change the query ..
    Hope it helps.
    If u have any doubt reply to this message.
    Thanks & Regards,
    V. Vijay Kumar.

  • Issues with Bex query structures and Crystal Reports/Webi

    Hi experts,
    I'm having an issue with Bex Query structures and nulls. I've built a Crystal Report against a Bex query that uses a Bex Query structure. The structure looks like the following
    Budget $
    Budget %
    Actual $
    Actual %
    Budget YTD
    etc
    if I drag the structure into the Crystal Report detail section with a key figure it displays like this
    Budget $     <null>
    Budget %     <null>
    Actual $     300
    Actual %     85
    Budget YTD     250
    the null values are displayed (and this is what is required). However if I filter using a Record selection or group on a profit centre then the nulls along with the associated structure component are not displayed.
    Actual $     300
    Actual %     85
    Budget YTD     250
    Webi is also behaving similarly. Can anyone explain why the above is happening and suggest a solution either on the Bex side of things or on the Crystal Reports side of things? I'm confused as to why nulls are displayed in the first example and not the second.
    Business Objects Edge 3.1 SP2
    SAP Int Kit SP2
    OS: Linux
    BW 701 Level 6
    Crystal Reports 2008 V1
    Thanks
    Keith

    Hi,
    Crystal Reports and Web Intelligence will only show data which is in the cube. You could have an actual 0 or Null entry whithout grouping but by changing the selection / grouping in the report the data does not include such entry anymore.
    ingo

  • Using 2 BEx query structures - Not displaying as a hierarchy

    Gurus,
    I have CR2008, and I am using a BEx 7.0 query that has 2 structures.  One structure is key figures, the other is a layout that I turn on and display as a hierarchy.  There is cell definition behind the query.
    How can I get this second structure to view as a hierarchy in Crystal?  The cell definition is calculating correctly in Crystal, however all of the Profit Centers show on the same line, without indentation.
    If I create a Profit Center hierarchy in BW and bring it into Crystal, then I cannot use the cell definition, which is needed to calculate the correct results.
    Thanks in advance for responses.
    Scott Friery

    Help please!!  I really need some guidance for this problem?  Can I manually modify how the structure looks once I bring it into Crystal and drop into the "Details" section of the designer?
    The structure from the BEx query looks like this in Crystal:
    Global Sales
    Western Region Sales
    Location 1
    Location 2
    Location 3
    Eastern Region Sales
    Location 4
    Location 5
    Location 6
    I want the structure to look like this (and it does in the BEx 7.0 query designer)
    (No Indent) Global Sales
           (Indent 1 Space )Western Region Sales
              (Indent 2 spaces)  Location 1
              (Indent 2 Spaces) Location 2
              (Indent 2 Spaces) Location 3
           (Indent 1 Space) Eastern Region Sales
                (Indent 2 spaces) Location 4
                (Indent 2 spaces) Location 5
                (Indent 2 spaces) Location 6
    Any help is appreciated.
    Scott
    Edited by: Scott Friery on Feb 24, 2011 8:07 PM

  • 4.x: Document Link passing range parameter to a WebI rpt using BEx query

    I'm new to working with BEx queries, so I may use the wrong terminology.  I'm trying to create a document hyperlink from one WebI report to another.  Both are based on BEx queries, which I didn't create, nor do I have access to modify.  The BEx query for the target report has a parameter, Fiscal year/period, which is a range parameter.  The displayed value in a report or in pick lists is in the format "JUL 2010".  The key is in the format "K4/007/2010". 
    I have tried using the Document Link expert to configure passing the range parameter, but have been unsuccessful.  The typical result is an error message, ERR_WIS_30270, which is most likely the result of an incorrect format for passing the range.  I've not been able to locate adequate documentation that describes the syntax for passing a range value to a BEx parameter.  I've successfully created Document Links to reports using BEx queries that have a parameter that requires a single value, and I've done Document links in non-Bex reports in 3.1 without issues.
    Has anyone successfully passed a range value to a BEx paramter?   If so, what syntax did you use?
    The environment is BI 4.0, sp 2 (14.0.2.439)
    Edited by: Steve Green on Oct 7, 2011 8:04 PM

    Marianne,
    Thanks for the heads up on the fixpack.  I tried looking at the note # you sent, but a search of SAP Notes says that the note has not been released.  However, reviewing the Fixed Issues in fixpack 6 shows the following item:
    ADAPT01580012
    Link to a WebIntelligence report using syntax OpenDocument fails when target document contains a prompt
    based on a BEx variable of type Interval. Error message is "An internal error occurred while calling
    'answerPromptEx' API. (Error: ERR_WIS_30270)".
    Behavior is now correct and refresh operation takes into account interval answer passed in OpenDocument URL.
    Now we just need to upgrade to fp 2.6 to see if it resolves this issue.  I've also opened a ticket with support, so I'll see what they say.
    Edited by: Steve Green on Oct 12, 2011 7:27 PM

  • Two problmes between  Crystal Reports 2008 and Bex Query

    Hi Gurus.
    I have two problems with Crystal Reports 2008 when It obtains data from a Bex Query (SAP MDX query connection).
    1)     I have defined some Parameters Fields using the follow options:
    Type: String
    List of Values: Dynamic
    Value Options Level1:
                         Show on (Viewer) Panel :Editable
                          Prompt text: <text>
                          Sort Order: Ascending by value
                          Prompt With description Only : False
                          Optional Prompt: True
                          Allow multiple values: True
                          Allow discrete values: True
                          Allow range values: False
    When I execute the report with the client of Crystal Reports 2008 (the developer tool), in the initial screen shows a list box where I can select the values from the left box and add it to the left box (as a usually filter). When the number of options (LOV) is more than  the maximum of the system, I have a input box bellow the list box, where I can insert any value (manually) and a button to insert it into the left box. When I publish the Report in the infoview, this filter is modified and the input box where I can introduce manually values is not showed and I can insert only the values showed in the list box, it causes that I can`t select a lot of values that is in the master data of SAP BW, because they arenu2019t listed in the list box.
    There is any option to ability this option in the infoview.
    2)     My Bex query, have a date filter with variable in the restricted key figures, when I execute a Crystal Reports, the infoview (and the Crystal Reports 2008 designer) ask me 2 times the same date, first only the date and second the date and the rest of parameters (introduced in the report of Crystal Reports).
    Why I need insert the date 2 times? How can I modify the Crystal Report for ask me only one time all the parameters?.
    Thanks.

    Hi Abhilash.
    Thank you for your information.
    1) Yes, the parameters are created in the Crystal Reports designer. I have created the parameters in the Crystal Report because I use the same Bex Query to create some Crystal Report, in other case, I will need create some Bex Query.
    2)The Bex query has the date filters and I have created some filters in Crystal Reports designer, the date filter from the Bex query is created automatically in the Crystal Report Designer but I don't use it, I haven't created it anytime. I use my filters only in the record selection. The date filters from the Bex query is showed as Static, and I can`t delete it, if I modify the parameter to dynamic or static with values, at first step ask me again static without values and the second step of the report execution ask me the parameter as I have defined in Crystal Reports Designer, my parameters fields are dynamic. A lot of reports have subreport, but I have created one of them without subreport (to trial) and the Crystal Reports ask me the date filters at first execution, and when I insert the date filters, in the second step, ask me the date filters again and my parameters fields again.
    Thank you again.

Maybe you are looking for

  • Connection Timeout error in AS2 communication

    Hi Gurus I am sending an order file to our vendors via Seeburger AS2 adaptor but I am getting the following error: Unable to forward message to JCA adapter. Reason: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: SEEBURGER AS2: java.ne

  • Finder not working on restart

    When re-start my computer, the finder won't work. I need to re-launch the finder by opt-apple-esc. How can I fix this?

  • Direct delivery and GR

    Hello everybody I need your help. Our business process is the following one : - a central purchasing that is responsible of ordering POs to external suppliers - many plants, belonging to company codes different from the central purchasing's one The p

  • Problem in function module 'CSAP_MAT_BOM_CREATE'

    Hi I am using CSAP_MAT_BOM_CREATE to create BOM i passing the following values CALL FUNCTION 'CSAP_MAT_BOM_CREATE' EXPORTING material = lv_matnr plant = lv_werks bom_usage = lv_stlan i_stko = wa_stko TABLES t_stpo = it_stpo EXCEPTIONS error = 1 OTHER

  • Can't include netscape.javascript.*

    where can i find the package "netscape.javascript" ?