END_SQL parameter use in OLAP Universe?

Folks,
We normally use END_SQL in our Universe parameters /Document Name :@variable('DOCNAME'),User ID :@variable('BOUSER'),UNIVERSE :@variable('UNVNAME')/ for all our relational universes to track - which users are running long queries.
We are currently using BO Universes built on top of Microsoft Analysis Services 2008 cubes. I am wondering if there is a similar way to track which user id's have fired the most resource intensive queries?
I tried using the same parameter in END_SQL for cube Universes, but i could see no impact on the generated MDX
Regards

Hi,
There is no equivalent to END_SQL for OLAP sources.
By the way, your suggestion is very good for a future enhancement.
MDX supports comments like SQL so we could imagine adding user, universe and other information at the beginning oif the generated query.
For instance here is a sample on what we could achieve when generating MDX queries:
-- User = MyUser, Universe = MyUniverse
SELECT
NON EMPTY  HIERARCHIZE ( DISTINCT( { HIERARCHIZE ( DESCENDANTS ([Product].[Product Categories].[All Products], [Product].[Product Categories].[Product], SELF_AND_BEFORE )) } )  ) ON ROWS,
NON EMPTY  HIERARCHIZE ( DISTINCT( { [Measures].[Internet Sales Amount] } )  ) ON COLUMNS
FROM [Adventure Works]
Regards
Didier

Similar Messages

  • How to fetch Y-1 correctly using BO OLAP Universe?

    Hi,
    We are currently on a SAP BO Webi XIR3.1 SP3 on top of SAP 7 to do financial reports.
    I have turned off database delegated measures , because they are not practical : too many issues with #TOREFRESH that does not go away and issues with deriving against complex dimensions that go #UNAVAILABLE.
    Currently I have defined in the universe a measure amount which maps on the amount in the underlying bex query.
    To be able to fetch the previous year data in the BO report I have created a measure as below :
    <EXPRESSION>(@Select(Amount\Amount),[0FISCYEAR].PrevMember)</EXPRESSION>
    In certain reports that has been giving worng results.
    Imagine I have a company with eg 3 Business units
    COMPANY                   Year                          Year -1
       BU1                            10 Euro                 Did not exist
       BU2                            10 Euro                    10 Euro
       BU3           Does not exist anymore            15 euro
    when in a report I use the amount and the amount previous year by Business unit ,
    it gives correct result of 20 Euro for Current Year , but only 10 Euro for Previous year .
    Are there alternative ways to filter on previous year , that don't have issues?
    Greetings,
    Gaetan
    Edited by: Gaetan@MGData on Oct 20, 2010 12:01 PM

    Hi BOCP-BOE,
    When in complex reports, the #TOREFRESH does not go away when you click on refresh.
    and it keeps on giving you the same frustrating #TOREFRESH again and again.
    I do think it might either be a bug or something I don't understand in how the integration kit transfers the analysis dimensions to mini queries, and might be a feature then.
    The database delegation is sometimes more a nuisance than a blessing, It limits you in functionality in the Reporting.
    Especially when users wan't to introduce complex groupings based upon more than one dimension. and for instance if you have used filters on eg. a hierarchy it reprompts the user over and over again for the same information , while he is already in his correct scope of analysis.
    In this case here it is indeed about an issue about how the company dimensions are handled when I compare this year and previous year using the time hierarchy. It seems only to use the company dimensions values for this year and add the previous year information to this years' company structure , which is not correct since your company structure can change and have different BU or divisions or departments.
    thanks for the quick reminder of the basic functionality though,
    Greets from Belgium,
    Gaetan

  • How to use string functions (substr or ltrim or replace)  in OLAP universe.

    cost element (0COSTELMNT) - 10 CHAR
    Controlling area (0CO_AREA) - 4 CHAR
    [0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value]
    cOST ELEMENT is compounded/prefixed with Controlling Area. I just want to see cost element without conrolling area in the BO report.
    Currenlty BO unierse is build based on bex query. I am able to suppress the compounding object in bex query by chaning controlling area to 'No display'. But still BO Webi report displaying compounded values in the report. (Bex report works as expected)
    eg: Current display in reort.
    controlling area/cost element.
    AB00/2222
    AB00/2223
    AB00/2224
    Wanted like  below:
    2222
    2223
    2224
    I think by using string fucntions (substring, ltrim or  replace etc.), I can get the required result. But I am having issues with syntax. I have used like below.
    substr(0COSTELMNT ; 5 ; 10)
    substr(0COSTELMNT; 5 ; Length(0COSTELMNT)-5)
    substr(0COSTELMNT; Pos(0COSTELMNT;"/")+1;10)
    ltrim(0COSTELMNT,'AB00/')
    What is the syntax for substring/replace functions in OLAP universe. Technical name of cost element in OLAP  universe is [0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value].
    I want to fix this at universe level not at report level as  i am using cost element in filter/variable section of the report. Please provide me syntax for above example.

    Hi,
    In fact SAP BW MDX supports limited string manipulation and only with NAME and UNIQUENAME attributes.
    Here are some samples that you can use in universes:
    MID([0COSTELMNT].currentmember.NAME,1,4)
    LEFT([0COSTELMNT].currentmember.NAME,2)
    RIGHT([0COSTELMNT].currentmember.NAME,3)
    MID([0COSTELMNT].currentmember.UNIQUENAME ,1,4)
    LEFT([0COSTELMNT].currentmember.UNIQUENAME ,2)
    RIGHT([0COSTELMNT].currentmember.UNIQUENAME ,3)
    Didier

  • Can we Implement YTD using MDX syntax in olap universe.

    Hi,
    I am trying to implement YTD prompt from universe level. Can any one suggest how can i implement it using MDX syntax in olap universe.
    Regards,
    Anil Kumar.

    Hi,
    In MDX, you need to generate the technical name to have you expression valid.
    Moreover the correct syntax is: SUM(MTD(member),measure)
    So in your case the prompt must be constrained on the technical name and cannot be free, the correct syntax is:
    <EXPRESSION> SUM(MTD(@Prompt('YYYYMM','A','Cal. year / month\L01 Cal. year / month',mono,primary_key)),
    @(Select(Key Figures\Total Variance)) </EXPRESSION>
    Last, the result will be not really significant because you are asking for a MTD with a Year-Month as time member: the result will be the measure value for the selected month.
    In your case you need to have a time series function for an upper level like YTD or QTD. If you want to use MTD, the the time member selected would be at a lowest level, such as week or day.
    Regards
    Didier

  • OLAP universe cannot use SSO after Fix Pack 2.3

    hi
    our dev box can use OLAP universe with SSO authenticantion, after I apply FP2.3 this does not work any more
    and I get the following error: DBD UNABLE TO CONNECT SAP BW SERVER INCOMPLETE LOGON DATA,
    anyone encounter same issue
    thanks

    Hi Andreas Madsen
    I log a case with SAP, and they point me to the same SAP note.
    Basically what they trying to say is, once you install Xcelisius on the server, and applied SP2 and FP2.X you are stuffed.
    Since your error is only on your client, then you should consider removing all the BO software on your client and reinstall it agian from scratch.
    For me, I need to rebuild the whole server from ground up.
    I asked for a special fix, but was rejected
    I was advised to install Xcelsius and CR on server for troubleshooting purposes, but seem like this is really a bad idea now.

  • Diff Ways to Create OLAP Universe using BI/BW DataSource?

    Hi Experts,
    I konw there are two diff ways to create olap universe using BI/BW datasource.
    1. Uisng InfoCube
    2. Using BEx Query..
    so.. I need you help to know when we use InfoCube and When We use BEx Query.
    Can you please explain me  in details and give me some pros and cons using each connection ..if there is any documentations please provide me ...
    Thanks

    Hi sap mdm1980,
    The characteristic InfoProvider (0TCTIFPROV) refers to the technical name
    of an InfoProvider. In BI, queries can be created on an InfoProvider or an
    InfoProvider can be used for reporting.
    An InfoProvider is generic term for all the DataTargets and Virtual Providers
    (VirtualProvider or MultiProvider). An InfoProvider may or may not contain data.
    Infocube is type of an infoprovider
    An InfoCube describes (from an analysis point of view) a self-contained dataset,
    for example, for a business-orientated area. You analyze this dataset in a BEx query.
    An InfoCube is a set of relational tables arranged according to the star schema:
    A large fact table in the middle surrounded by several dimension tables.
    InfoCubes are filled with data from one or more InfoSources or other InfoProviders.
    They are available as InfoProviders for analysis and reporting purposes.
    The data is stored physically in an InfoCube
    Regards
    Praveen

  • How to use parallel period function in olap universe?

    Hi all
    I want to create a ratio with the measure of the last year with the function parallel period in a universe olap. What is the syntaxis for do this ? Thanks

    Hi Didier.
    Thanks for reply
    I have a olap universe and i create a new object with this sentence:
    <EXPRESSION>ParallelPeriod([0CALMONTH].[LEVEL01],1,[0CALMONTH].CurrentMember,(@Select(Ratios\Salidas stk tot caj)))</EXPRESSION>
    When run a query with Rich Client this error appears: (spanish)
    Se produjo un error en la base de datos. El texto de error de la base de datos es: La consulta MDX WITH MEMBER [Measures].[D29E6BC1-5AC0-4245-86,DA,DB,41,D6,CF,B3,52] AS ' ParallelPeriod([0CALMONTH].[LEVEL01],1,[0CALMONTH].CurrentMember,([Measures].[4GPT8D1S01T3MR5EZ57C98LJC])) '  SELECT  { [Measures].[D29E6BC1-5AC0-4245-86,DA,DB,41,D6,CF,B3,52] }  ON COLUMNS , NON EMPTY CROSSJOIN(  { [0PLANT].[0021] } ,  { [0CALMONTH].[201002] }  ) ON ROWS FROM [ZIC_MP01/ZIC_Q01]  no pudo ejecutarse con el error Error desconocido. (WIS 10901)
    What is wrong ??
    Thanks

  • Setting a Prompt value for KeyDate in WebI on SAP OLAP universe

    I have a webi report which has as its dataprovider a query against an SAP olap universe against a BEx query which has the KeyDate parameter exposed.
    Iu2019d like to get at this prompt from the SDK.
    In infoview if I run the report it pulls up the keydate prompt (a special dialogue which seems to be implemented as part of the connection definition) - this prior to pulling up the full prompts dialogue and showing all universe based @prompt filters.  In WebI I can see the prompt value entered using =UserResponse("dp.kd.value") .   So it does seem to see the keydate as a prompt of some sorts.
    I've got a little jsp that allows me to set prompts very nicely (and packeaged as a jar in the CMC that schedules ok as well) but when I put it against a report with a key date u201Cpromptu201D it just wonu2019t see it.  When I call a getCount() as below it returns 0.
    oDocumentInstance.getDataProviders().generateQueries();     
    Prompts oPrompts = oDocumentInstance.getPrompts();
    out.print(oPrompts.getCount());
    This is all in an attempt to get around the scheduler limitations of key date which would give me two queries, two universes and two reportsu2026 one report for scheduling (using a customer exit to set key date) and a second for user refresh  (with a prompted key date)  which would all be rather messey to say the least!
    So any cunning ideas on how I can get hold of this key date thingymebob in the SDK?
    (ps. "Fixed in V4" would be nice to hear as an aside to thisu2026 In playing with the ramp up Iu2019ve got the same issues however so Iu2019m not to hopefull )
    Thanks!
    Jeremy.

    Hi,
    First I think you have to create a support ticket because normally the object in the universe must be generated with data data type nad it is not the case.
    We are awere of some limitations with data types.
    Secondly, if you want to have users entering date you have to specify date in the prompt data type like this:
    <OPTIONAL><FILTER KEY="[PERIOD SD].[DB Full Date].[DB Full Date]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="@Prompt('Enter Date ','D',,mono,free)"></CONSTANT></CONDITION></FILTER></OPTIONAL>
    Regards
    Didier

  • SAP BW OLAP Universe performance issue

    Hi,
    Based on BO recommendation, I created a universe on top of a big BEX query which included all characteristics and key figures from a cube. I then created a webi report with 5 characteristics and 1 key figure from this universe. I also create the same report in BEX query designer(same number of objects). I ran both. The Bex query completed under a minute and the webi report took more than 12 minutes to run. I did a bunch of other test with different number of objects combination and saw similar differential in query performance.
    I did a trace using 'sm50' and saw the open SQL submitted to BW from BEx was very different from what got submitted from the webi report. Here is what I saw in pseudo code.
    Bex:
    select dimension1.blah, dimension2.blah, dimension3.blah, dimension..... sum(measure)
    from dimension1, dimension2, dimension3, dimension..... factTable
    where dimension1.SID = factTable.d1SID
    and dimension2.SID = factTable.d2SID
    and ......
    and (query filters)
    OLAP Universe
    select dimension1,blah, dimension1.SID
    from dimension1, factTable
    where dimension1.SID = factTable.d1SID
    select dimension2,blah, dimension2.SID
    from dimension2, factTable
    where dimension2.SID = factTable.d2SID
    select dimension3,blah, dimension3.SID
    from dimension3, factTable
    where dimension3.SID = factTable.d3SID
    It seems the OLAP universe was querying the BW cube one dimension at a time and then somehow piece the result sets together to form the final result set. Dimension tables join to the fact table without any filter definitely causes performance issue. Beside, I have no idea why the query requests are submitted to the BW system like that.
    I looked in varies forums and found no similar issues posted by others. Has anyone had any performance problem with there OLAP universe? Is this a matter of configurations?
    My envrionment:
    SAP BW 3.5
    BOXI 3.0
    ORACLE DB (version ??)

    Hi,
    You cannot compare a BEx query and a universe query by just comparing the trace.
    BEx query makes ABAP calls and universe query makes MDX calls;
    Moreover there is only one MDX call sent to SAP, what you have noticed is that there is one MDX call to retrieve member for a given characteristic whereas a prompt has been set on.
    Last, Web Intelligence consume only flattened data (row sets) wheras BEx consume data sets.
    That means that there is a flattening operation between SAP OLAP engine and the data sent to the Web Intelligence document.
    A fix have been developed for a customer to improve performance on Web Intelligence queries, this fix will be available for all customers in SP2 planned in June 09.
    Here is a a brief summary of what the fix provide:
      -  Provide data directly from SAP server to Web Intelligence document. Avoid unnecessary conversion steps: row set --> data set --> row set
      -  Eliminate redundant sort operations
      -  Other optimization operations
    Didier
    Edited by: Didier Mazoue on Nov 20, 2008 8:38 AM

  • Webi Reports Hyperlinks on top of OLAP Universe

    Hi Webi Gurus,
    my BoBJ version 3.1 sp3
    BW-OLAP universe.
    I checked below Link for the solution, but couldn't
    get answer, as these are based on relational universes.
    /people/erika.atencio2/blog/2011/04/14/creating-hyperlinks-between-webi-reports-in-infoview
    I have a OLAP universe. On top of it, there are two reports
    One parent report and one child report.
    Question: I have a column called Auction Id on parent report.
    Now, when I click on any of the Auction Id values, child report
    should only bring data for that Auction Id alone and not other Auction Ids.
    In the child report, I have Auction Id as query filter.
    Now while in Webi's Interactive Mode, I chose the option
    Select Column--> Create Hyperlink --> Link to a document -->
    Document prompts: Prompt User in runtime.
    This option works fine.
    However, when I change the Document Prompt to:
             Select Object (or) Build Formula
    report throws MDX error, during run-time,
    Please suggest.
    MDX error:
    ========================================================================
    The query failed to execute with the error Value for the Characteristic.....WIS 10901
    ==================================================================================
    Regards,
    AK

    Still getting error...I tried this
    >> 1. In the detail webi report, create a query filter for AuctionID and use Equal operator. Give the prompt text as ActionID.
    AK: Done
    >> 3. In the column properties, in the display section select display cell content as HTML.
    AK: Done
    When I provide the URL and Parse it throws following error.
    "Invalid identifier a at position 15. (WIS 10022) "
    I gave following URL and parsed it.
    ="<a href="http://sapbojdev:8080/OpenDocument/opendoc/openDocument.jsp?
    iDocID=18774&lsSAuction ID="URLEncode([Auction ID])"&sRefresh=Y
    Q: Is there any problem with syntax?
    Q: Secondly, for OLAP universe based webi report , can't we use the hyperlink option:
    Link to  Document
    Thanks,
    AK

  • Calendar Prompt in OLAP Universe does on resolved.

    Hi,
    I am using BO XI 3.1 with latest fix pack.
    I have created a OLAP universe based on SSAS 2005 Multicube  for reporting using WebI.
    I have a date field in my database but when i but when i created a Universe based on that cube the date field became of type STRING. One of my requirement is that i want a calendar popup in my WebI report when i create a filter on top of that date field.
    So i manually changed the type to Date format in Universe Designer in order to see the calendar popup in webi report.
    My concern is when i select a date value from the calendar it does not work and i cannot see the data for that date if though the data exist for that. But when i manually enter the date value for that filter changing back the data type as CHaracter in the Universe it works and i can the see the data . The date format i am using is M/D/YYYY which is the same as calendar prompt.
    Why we notice this such behavior for the date field  in the WebI and every time i want a  calendar prompt i have to change the date type to Date and if i have to manually enter i have to change to Character.
    Kindly suggest .
    Regards,
    Vibhav.

    Hi,
    this forum is about the Integration Kit for SAP and you are referring to a MSAS OLAP Universe. Would suggest you enter this in the Universe forum.
    regards
    INgo Hilgefort

  • OLAP Universes - Based on BEx Query - Month and Previous Month Functions

    Hi,
      I created a Universe based on SAP BEx queries and I like to create a filter so that I use in Web Intelligence report to run for "Previous Month" data always. There are "Date" filelds in BEx Query(No Month info only date data). I have no knowledge of SAP BEx Queries and new to OLAP universes. Could you help.
    How to create filter that show Previous Month.
    Nanda Kishore
    Edited by: Nanda Kishore B on Dec 26, 2010 6:15 AM

    The easiest way  (but NOT the most efficient one) is to create a local variable (Dimension) in your report with the following code:
    =if (Month(CurrentDate())=1 AND Month([[MyDate]])=12 AND Year([[MyDate]])=(Year(CurrentDate())-1)) OR (Month(CurrentDate())>1 AND   Month([[MyDate]])=(Month(CurrentDate())-1)) then 1 else 0
    where MyDate is the field from your query containing the data information
    Activate the report filter area in your report design panel by pressing the Report filter icon and drag and drop your variable there and apply it to the entire report. Filter value 1 and you will get the data for the previous month.
    Keep in mind that this approach is not optimal especially if you do have many rows of data delivered to your WebI report because filtering takes place only AFTER the data is retrieved. The Best practice here is to work with BEx variables.
    How many rows of data does your WebI report normally fetches?
    Regards,
    Stratos

  • Edit an object's select statement of OLAP universe SAP BW

    Hi everybody
    I am new at working with Olap Universes BW, and I have to edit one universe SAP BW, I don't know if I can to use substring function on a select statement, for example  substring([0D_DIV].[LEVEL01],5,5), I try to use this function but I have a error,
    Could you help me? I need to returns part of a string, is correct to do it on a universe or is better to do at BW.

    Hi,
    First of all I recommend you read the documentation that gives you information about OLAP universes and especially SAP BW universes.
    I also recommend to download documents related to SAP universes deployment, administration and customization:
    [OLAP Universes - how to samples and recommendations |https://wiki.wdf.sap.corp/wiki/display/globalregions/OLAPUniverses-howtosamplesand+recommendations]
    [SAP Integration |https://wiki.wdf.sap.corp/wiki/display/globalregions/SAP+Integration]
    Now you can customize expression using MDX in OLAP universes. MDX expressions must be enclosed with <EXPRESSION></EXPRESSION> XML tags.
    Unfortunately SAP BW MDX does not support calculations that return string or date values.
    The onlyway to return string is to use NAME or UNOIQUENAME attribute.
    See answers I already in the forum: [Forum answer |Re: Create new dimension on top of SAP BW data]
    Regards
    Didier

  • Using Stored Procedure Universe in Reports

    Hi Friends,
    I got some issues using SP's in Universe and WebI Report.
    Case #1:
    Can we execute dynamic SQL using stored procedure universe..?
    I use SQL server as the DB for my reports.I created a SP which will execute on getting a input value from the user.This input value will frame the SQL dynamically in the SP.for executing the dynamic SQL i use sp_executesql inside the SP.The SP wexecutes successfuly in the DB but when i try executing it in the Universe i get a error message as follows: "Exception : DBD,[Microsoft][SQL SErver Native Client 10.0][SQL Server]Incorrect syntax  nesr 'FROM'.State:42000"
    The script i used for creating SP for your reference:
    CREATE PROCEDURE P_S_GetCodeValueList
              @s_table nvarchar(75)
    as
    begin
              declare @s_sqlCommand nvarchar(1000)
              declare @s_tablename nvarchar(75)
              declare @s_code nvarchar(75)
              set @s_tablename=@s_table
              set @s_code = '*'
              set @s_sqlCommand= 'SELECT ' + @s_code + ' FROM ' + @s_tablename
              exec sp_executesql @s_sqlCommand
    end
    Case #2:
    AIl also tried creating reports using the SP Universe which needs to get the parameter when the user refesh the report.
    But every time the report is refreshed the report fetches the data which was produced when the SP is executed in the Universe for the first time.
    I need to get the prompt in the report , to which the user could give a value and the SP gets executed for that value.
    Is there any option in BO to do this?
    It will be very helpful if you could give me some work arounds on this.
    Regards,
    Sugumar

    Hi Sugumar,
    I can answer you for your 2nd question:
    When you create the Stored procedure in the Universe and test it on retreiving data by inserting variable input you can check if the user could insert new value for the SP parameters.
    Hope this helps!
    Regards
    Giuseppe

  • BO performance issues on OLAP Universes

    Hi All
    I am working on BO XI 3.0 and installed the SAP Integration Kit for Windows 3.0 version.
    I have built OLAP Universe based on BW cubes and reporting on the Universes using Web Intelligence.
    I am facing performance issue when trying to query on OLAP Unvierses and the query is taking ~10 mins to fetch the data. I have installed the FP3 for BO XI 3.0 and there is no improvement as such. Could anyone help me on this issue.
    This has been a long standing issue and is causing a hindrance to our deliverables.
    Regards
    Chetan

    Hi Ingo,
    We are also currently facing similar kind of performance issues.
    We have sap bw Infocube and bw query on top this we have BO Universe.
    As per best practices document "the WebI query panel definition is what defines the "MicroCube" and thus the MDX query which is executed on SAP BW".
    It means that the actual query performance / query execution time / memory consumption is directly related to number of objects dragged into WebI query panel not in SAP BW query.
    if this is true then what is the reason not to have all infoObjects / keyfigures of InfoCube in a single sap bw query?
    I found another Best practices document which says that "DO NOT build one query per infoProvider because elements can add processing time even though you are not using them into the Web Intelligence Report
    In one statement it says that the WebI Query panel definition is what MDX query going to execut on SAP BW and in other statement it says that the elements in SAP BW query can add processing time even though we are not using them in Web Intelligence Report*.
    Appreciate if you can clear these contradicatory statements.
    Regards,
    Ravi Kumar Garre
    Edited by: Ravi Kumar Garre on Oct 26, 2009 4:00 AM
    Edited by: Ravi Kumar Garre on Oct 26, 2009 4:06 AM

Maybe you are looking for

  • Clear Vendor Down Payment F-54, Number range

    Hi Experts                 I tried to clear the vendor down payment using the T-Code; F-54, It is displaying a error message as "Number Range 17 is Missing for the year 2010" Message no. F5150 Diagnosis The document type you specified has been alloca

  • Unable to update firmware in my Acrobat X standard

    I've purchase my Acrobat X standard from your web site and downloaded it onto my computer. After installing the software, it requested that i update my software. i tried downloading the software but everytime after downloading, a error message came u

  • Need new bios for r9 270x

    Hi, I would like to request a new bios for my 270x S/N 602-V303-070B1404003989

  • How to locate the error of SQL-02110 in proc

    A proc code gave error: SQL-02110 Inconsistent host cache. Invalid host cache entry type Cause:     This internal error typically indicates a memory-related error. Action:     Check the program for memory-related errors, such as invalid pointers or a

  • H:selectOneMenu value binding to managed bean property

    Please help. Cannot figure out why selectOneMenu value binding is not working... The main contents of my jsp:      <h:form id="form1" rendered="true">           <P>                <h:selectOneMenu value="#{MBListBoxExample.selectedProject}" rendered=