Substring @ SAP BO XI3.1 Sp2 OLAP Universe

Hi any body address solution for below problem
[GCOSTCTR].[LEVEL01].[[4GCOSTCTR]].[Value] is the object select class and the out put is:0100/10101223 but I need 10101223 while selecting as a promt @ report level.
Provide me the Mxd statement for this using substr or is there any alternate solution.

Hi,
Unfortunately this is not possible with SAP.
You hit one of the major limitation: calculated expression MUST return NUMERIC values.
In your case although the result seems to be numeric, SAP interprets it as a string and returns an error.
According to my knowledge only SAP Exit are valid to achieve such requirements.
Regards
Didier

Similar Messages

  • 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

  • BO XI 3.1 Sp2 OLAP Universe - MDX Function

    Hi all,
    How i tuse MDX Functions in OLAP Universe ?
    Iam getting parse ok in Universe . getting error in while creating webi report

    Hi... i´ve seen that this is a typical question but i think it´s still not solved... I need to use the sentence showed but despite using measures using another dimension. I mean i want to create a new dimension which tell me if it has values or not so i want to create another one and use the function IIF and the sentence more or less like that:
    IIF(ISEMPTY(.[D7LE0EX5IUP5U83WHERK13M48]), 1, 0)</EXPRESSION> - it works
    May i use this sentence with dimension/characteristic values or it only works for measures ? Some idea of how to achieve what i´m looking for ?
    Thanks in advance.
    SAP BW 7.02 SP06
    BO XI 3.1 FP 3.5
    J.Casas

  • BW OLAP Universe connection error after applying BOE XI3.1 SP2

    Hi,
    We installed BOE XI 3.1 SP2 today on the server, and since then we are not able to execute the WebI reports built on top of BW OLAP universe. The error message is - An error occurred while trying to load the provider for transport sap. Failed to load library mda_sap. System error message.
      The same error message appears when I test the universe connection.
    Has anyone come across this issue? Your help is really apprecaited.
    Our system config is Windows 2003 server, 64 bit, SP2.
    Thanks,
    Ritesh

    Hi Ingo,
      Yes, applying SP2 solved the problem. We reaslized that SAP GUI 710 is prerequiste to run the SP2 setup file.
    Thanks for your help!
    Ritesh

  • 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

  • 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

  • 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

  • What has changed for OLAP Universe in BOXI3.1 SP2

    All,
    I would like to understand what has changed in BOXI3.1 SP2 in comparison with BOXI3.1 base version for OLAP universes.
    We design Universe on top of MSAS 2005 cubes and create webi reports.
    Based on BOXI3.1 SP2 what's new document- the enhancements seem to affect the Universe Designer- providing a developer with more control and options.
    I am interested in learning if the release has any features that improves performance of BO against MSAS cubes.
    Any feedback would be much appreciated.
    Edited by: ramaks on Dec 11, 2009 11:02 PM

    Hi,
    Here is the list of feature we have added in SP2 for OLAP universes:
    <li>Definition and Where editors enabled
    <li>Prompt editor
    <li>MDX dictionary
    <li>New parameters and controls at universe generation time
    <li>Refresh Structure (aka Universe Update or Universe Life Cycle Management)
    <li>Universe SDK enhancements.
    You will find in attachment a PDF that describes the enhancements.
    Regards
    Didier

  • OLAP Universe on the top of SAP BW infocubes - integration kit

    Hi
    objective : to create OLAP universe based on SAP BW infocubes
    I am trying to create olap universe connection.
    detail spec of BOE setup is :-
    1. I have access to SAP GUI through citrix.
    2. Business objects xi 3.1 is installed on single server.
    3. I am using full client.
    4. Universe designer is on client machine.
    when I tried to create new connection for SAP BW . I am getting following error : -
    "DBD: An error occurred while trying to load the provider for transport sap. Failed to load library mda_sap. System error message: The specified module could not be found."
    by serching forum I got an idea that I need to install sap business objects integration kit.
    question 1. : do I need to Install SAP business objects integration kit on client or server.
    question 2. : which component I need to down load from SAP website
    regards

    Hey as u told that you will access the sap system through Ctirix. it means you have such a set up .
    1. you are a client and you have a connectivity through BO server directly.
    2. and as a client only you have access to sap bi system through citrix.
    If yes then try it , i have doubt if you able to connect it .
    b coz you need to have direct connectivity to sap bi system also.

  • SAP BW Time characteristics data type issue in BO OLAP Universe

    Hi Ingo,
    We have time characteristics in our SAP BW Queries, for example OCALMONTH with data type NUMC.
    When we create OLAP Universe these objects are having Character as data type and not working properly when we use these objects as filters. The filter working on string instead of calender month.
    If i try to change the data type in Universe we are not able to execute Web Intelligence queries due to Driver Not Capable error.
    Appreciate you help.
    Regards,
    Ravi Kumar Garre

    Hi,
    Please find my linline answers:
    - are you entering the value manually or did you select the value from a list of values ?
    I am selecting the values from list.
    - based on which item is the list of values ?
    List of valules are coming from BI infoObject 0CALMONTH
    - what about creating a variable for this in the underlying BW query ?
    We have created a BI Variable, found that the Condition operator is Between and hence when execute the WebI query for this object there are two prompts one is for FROM value another is for TO value. If i give a value Dec, 2007 for FROM and leave TO as blank then i am getting data for all months instead of DEC 2007 onwards.
    - did you trace the Web Intleligence part to see the details ?
    I do not have authorization to login on server and find the trace. I will ask our BO Administrator for MDX log file.
    Thanks & Regards,
    Ravi Kumar Garre

  • Getting Custom LOV in SAP BW OLAP Universe

    Hi,
    My Requirement is to create a prompt where the end user is prompted to select a Custom group(which we have to manually put in prompt and is not available in SAP BW table) and the data should be filtered by the billing document type for that group which again we have to specify in the prompt.
    This is what I have created but it's not working -
    <OPTIONAL><FILTER KEY="@Select(Billing Document Typ\Billing Document Typ)">
    <CONDITION OPERATORCONDITION="InList">
    <CONSTANT TECH_NAME="@Prompt('Enter\Select Sales Data Type: ','A',{'Merchandise Invoice Sales':'YFX':'YLXP':'ZFX':'ZLXP','Dropship Invoice':'YFXD':'ZFXD'},multi,free,Not_Persistent)"/>
    </CONDITION></FILTER></OPTIONAL>
    I have seen this thing working in BO with oracle as backend but it's not working here in OLAP Universe.
    Please let me know if anyone has ever faced this issue.
    Thanks,
    Pankaj Goswami

    Hi Marvin,
    When you define a filter only the Where clause is available.
    When you define an object both Select and Where clause are available.
    For an object the Select clause is mandatory, the Where clause is optional.
    So for instance if you want to define a new calculated measure, use the Select clause if you want to filter with this new object you can set the Where clause but that means that this object will be always filtered by the Where clause definition.
    The other way is to create a new filter that use the object definition to filter on what you want: in that case you can use the object for any scenario and use filter only when you need it.
    Last the syntax you wrote is invalid:
    <EXPRESSION>(@Select (Class\Measure),filter)</EXPRESSION>
    What do you want to define? What is the purpose of this new object?
    Please provide all the information you can and I will try to provide you a correct definition.
    Didier

  • Error querying OLAP universe based on BEx query

    Hi all,
    I have a problem extracting larger (more than 80 000 rows) amounts of data through querying an OLAP universe with WebI.
    The error is:
    Query 1 - NAME_OF_THE_QUERY
    A database error occurred. The database error text is: Error in MDDataSetBW.GetCellData. &INCLUDE INCL_INSTALLATION_ERROR. (WIS 10901)
    The error occurs when I define larger scope of analysis in the query (four levels). With more modest scope (three levels or less) it's working OK. I need larger data set (more than 200 000 rows) to be populated at night through scheduling the report. We can't afford shrink the scope of analysis because it will hit the BW server during the day when it's needed by other users.
    Besides this the speed of the report refresh is very slow - more than 3 minutes per just 400 rows of data. I'm still unable to identify the source of the problem with this slowdown. Executing the same query over the web through the SAP BW BEx Viewer is much much faster - just 3 seconds. Maybe the reason for this is that the BEx viewer aggregates data on the higher level of the hierarchy rather than down to transaction level (like we do by expanding the scope of analysis).
    Anyway, if anyone have ideas about the error above I'll be very grateful if you share your thoughts. Thanks!
    Our environment:
    BO EDGE BI 3.1, standard
    SAP BW 3.0
    SAP Integration Kit (all transports installed)
    BW user with full access

    Ingo,
    Could you point me to an official SAP document regarding the 1 million cells limitation, which describes the exact version and patch level for SAP BW which removes this limitation? It will be very helpful for me because I have to convince the client to migrate BW from 3.0 to 7.01 if it will solve this limitation.
    Thank you in advance!
    Ivan
    BTW I have installed SP2 + FP2.1 and now the SAP integration is not functional, but I have opened another thread for this problem.

  • OLAP Universe creation process questions and proposals

    We have created an OLAP universe based on a BW-Query. The automatical creation of the OLAP universe does not produce a satisfying result.
    We are working with the latest available releases (BOE XI 3.1 SP2 and SAP Integration KIT SP2, SAP BI 7 EHP1).
    We have detected that all dimension objects store the name instead of the key field.
    Example:
    Customer Dimension Object (L01 Customer) = Customer Name
    Customer Key Detail Object (L01 Customer Key) = Customer Number
    Customer Name Detail Object (L01 Customer Name) = Customer Name
    This is not usable for end user because of the following reasons:
    1. The detail objects can not be used for merge dimensions, so it is not possible to merge on the supplier number.
    2. If you filter on the dimension object you will only see the text in the list of values (LOV) and it is not possible to edit the list of values in the universe to add the supplier number to the LOV as it is possible in relational universes
    3. If the user select the detail object always the dimension object in inserted into the report query
    4. The "Business Explorer" general setting "Display" of an InfoObject has no effect on the OLAP universe dimension object. If you change it to key always the text is shown. Even if you change the "ValueDisplay as" in the underlying BW Query to "key" is has no effect.
    5. The renaming of the L01 object to blank is not possible. You need to rename to " " and then remove on each object the blank.
    So we need to modify manually every universe to change the "detail key object" to a "dimension object" and the "detail name object" to reference the new "dimension object" with the key. This manual process has a huge work effort in time. Is there a better solution or enhancements planned in the next releases?
    Additionally there should be an option to disable the automatic creation of each characteristic as a subclass in the universe. A wizard should ask if a subclass should be created or not for each characteristic. Currently there are to many subclasses generated which were mostly not needed.

    Hi,
    First of all I would say u are lucky to start with SP2. Because whatever modifications you do in Universe those are retained.
    We had a big trouble in using BOXIR3.1 FP1.7.
    Anyways.. Back to your Questions and My asnwers for those:
    1. The detail objects can not be used for merge dimensions, so it is not possible to merge on the supplier number.
    Ans: True, Dimension object always shows Short text values by default. but if you can create the logic at SAP BI query level to map short text with keys then your problem will be solved.
    2. If you filter on the dimension object you will only see the text in the list of values (LOV) and it is not possible to edit the list of values in the universe to add the supplier number to the LOV as it is possible in relational universes.
    Ans: True u cannt edit LOV, but alternate solution to it is create the variable in SAP BI Query, that will appear as prompt in universe which will display the List of values with Key as well as Description.
    3. If the user select the detail object always the dimension object in inserted into the report query.
    Ans: Logically its correct, because Detail object is always associated with Dimension. Buit if you dont want that dimension in query you can remove that dimension by dragging back.
    4. The "Business Explorer" general setting "Display" of an InfoObject has no effect on the OLAP universe dimension object. If you change it to key always the text is shown. Even if you change the "ValueDisplay as" in the underlying BW Query to "key" is has no effect.
    Ans: In Query designer even if you ValueDisplay as "Key", but at Object level  if there is Text and Key associated for perticulat Infoobject, then so by default the dimension will show the Text and there will be seperate Detail object in universe for Key.
    5. The renaming of the L01 object to blank is not possible. You need to rename to " " and then remove on each object the blank.
    Ans: Yes this is a big trouble.
    Regards,
    Nisha

  • OLAP universe - dimension always contain a value

    HI
    Dimension must contain a constant value instance. If I have one dimension, so it must always contain "ZTEST_RGB_23810". The value is not on the data, so I can't use af filter. Can it be done? We have a OLAP universe.
    Regards,
    Rikke

    Hi,
    If you have BO XI3.1 SP2, then you can try the following steps:
    1. create one dimension object in the universe
    2. In the select clause mention: <EXPRESSION>"ZTEST_RGB_23810"</EXPRESSION>
    Regards

  • OLAP Universe Refresh creates error

    Hi,
    we built an OLAP universe based on BEx Query. SAP Netweaver 7.0 EHP1, BO XI3.1 SP3 FP2, BW Integration Kit XI3.1 SP3 FP2.
    BEx query contains 4 Filters that need user input.
    When we create the universe for the first time, everything works fine and the Filters with variables are created as Universe Filters with prompts and LoVs.
    Everytime when we refresh the universe structure, the MDX syntax of 2 of the Filters in the universe is added again which is causing an error at runtime. So when refreshing the universe 2 times, we see the MDX filter syntax 3 x in the condition field.
    The filters have not been changed or moved, so we do not see why 2 filters are refreshed and 2 get addtional code. It also happens with other BEx Queries/Universes.
    Thx for ideas

    Hi Ingo,
    we did not remove the filters from the universe.
    "Added again" means, that when I refresh the universe structure, the pane with "added Elements" shows 2 filters that existed already in the universe. Universe designer adds them again.
    These are the filters that create the problem.
    When I open the filter syntax in the universe, the refresh added the MDX code again, so that it contains the MDX twice.
    With every refresh the filter-MDX-code is added again. But only at 2 of 4 filters.
    Rgds,
    LK

Maybe you are looking for

  • Moving database to different directory structure

    HI folks, I have a production DB on a production server and a copy of that as test DB on test server. In both DB all data files are in the same directory. It was asked me to make a copy of production DB into test DB. Both DBs are already created, but

  • I had download an app by mistake. What should I do to get back my money¿¿

    I had download an app by mistake. What should I do to get back my money¿¿

  • Automatic refresh of web page

    I would like to know about refreshing a page automatically without the user interaction, (ie not to use refersh button)

  • Trace column for ORA-01438 Error

    Hi I encountered the following error while trying to insert into a table using bind variables in a program: ORA-01438: value larger than specified precision allows for this column I enabled trace for 1438 with errorstack level 4 in order to capture t

  • Audio and video are losing quality on DVD

    I am filming with a canon hf10 and importing the video to imovie hd and then editing using final cut express. Everything seems to work just fine until I try to export the video to a DVD and then it all goes bad. The video quality is lowered quite a b