Condition on query against SAP universe

Post Author: macea
CA Forum: Olap
Hi, I am trying to create a Web Intelligence XIR2 report against a universe based on a SAP BW Query. The report is very simple, Result Objects: Month Query Filters: Month BETWEEN January AND May Then the report is displaying: January, July, June, March, May when the expected result should be: January, February, March,April, May I cannot sort the list of values in the universe. So, any ideas? Thanks in advance.

Post Author: GailPray
CA Forum: Olap
It looks like your months may be stored (as strings?) in alphabetical order.  Your query is running correctly, Jan, July, June, March and May are between Jan and May in alphabetical order.  Can you create a formula that causes the field to be recognized as a month name?  Then you can use that formula in your selection criteria.  Maybe then the report would recognize that you need Jan, Feb, March, April and May?  I used 'monthname' to fix this issue in a Crystal Report accessing a SQL database.

Similar Messages

  • User unable to create 2nd query against new universe

    Hello the Community,
    We have a user who can create a single query from a choice of universes but when they try and add an additional query it doesn't allow them to a different universe - there are none appearing in the list.
    Anybody know where I can fix this ?
    Thanks
    Cedric

    It's a bit strange...
    The user can select more than one universe during the creation of document ( according matrix security ) but cannot select another one universe as the first selected...
    I ( I am Administrator ) grants the right of user on Top Security Level to fix it. View on Demand and View profile were not adequate.
    thanks for your answer
    Cedric

  • SAP BEx query's Conditions and Exceptions on BO Universe

    We are planning to create Conditions and Exception on SAP BEx Query. And provide this query to BO team for their development
    Could anyone tell me in what form will these BEx objects be visible in BO-Universe ....as detail objects...or query filters and a.s.o?
    Will they be Invisible? If invisible will they be atleast applied to BO-Universe.
    For e,g: I know that, BEx Query filter will be applied to the underlying query but are not visible in OLAP universe.
    - Anil

    Hi,
    Conditions and Excpetions are not supported by OLAP BAPI tehrefore they are not generated in universes or consumed at query level.
    You have to create conditions on measures in universes (except top end bottom exceptions that are not supported).
    Exceptions need to be done at cliient level (Webi, XCelsius, etc).
    I BOE CI 4.0 conditions will be supporte by the Semantic Layer direct acces with BICS but exceptions will continue to be created at client level.
    Didier

  • Universe creation against SAP Cubes/Queries with same connection

    Hello,
    I am creating universe against the connection for SAP BW system, once I have created a connection and selected a cube or query and built a universe on top of it....If I go back and create a new universe and this time change the connection to point towards a new cube/query the old universe stops working.
    Is it a limitation for SAP database where we need to have a new connection setup for each universe...or is there a different way to use same connection pointing towards different cubes/queries for different universes.
    Please let me know.
    Thanks
    Dharma.

    Hi
    when you build a universe based on the connection and want to use the universe with reports you can not change the underlying connection because then your universe will not work anymore.
    You can have multiple universe on a single connection.
    here some more details:
    Web Intelligence and SAP BI
    /people/ingo.hilgefort/blog/2008/03/24/businessobjects-and-sap-part-5
    Web Intelligence - Delegated Search and Delegated Measures
    /people/ingo.hilgefort/blog/2008/08/27/businessobjects-and-sap-part-6--web-intelligence-and-sap-bi
    OLAP Universe Change Management
    /people/ingo.hilgefort/blog/2008/08/29/businessobjects-and-sap-part-7--olap-universe-change-management
    Web Intelligence Best Practices with SAP NetWeaver BI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/008d15dc-f76c-2b10-968a-fafe5a121129
    ingo

  • Designer hangs during universe creation against SAP BW

    Hi,
    We are trying to create OLAP universe against SAP BW 3.5 and we are running into issue wherein the designer just hangs and is not able to create the classes and objects, in most cases we have waited for about 30-35 mins and still it doesn't come back. We tried this for both against an Infocube as well as against BW query.
    I have couple of questions regarding the process flow for universe creation against SAP BW,
    Does universe stores/extracts any data from BW, like storing LOVs for the hierarchies? I know it does reads the rows, columns, free characterstics etc. in case of BW Query.
    The time to create the universe depends on what factors, size of the cube or amount of metadata? The customer is concerned regarding what is the guideline on how much time would this process take when the universe comes back with the classes and objects. If there is any such guideline, what is it?
    Any response on this is appreciated.
    Thanks,
    Amit Banavalikar

    I had similar problems, setting the "Connection timeout" on the SAP/BW connection within Designer (default 10 minutes) from 10 min. to 60 or 120. ALSO: uncheck the universe limits on "number of rows (5000)" and "query duration (10 min)".
    This solved the problem.
    The connection timeout which is set directly on the SAP-BW connection in designer seems to be used in a wrong way. The definition of the "close connection after xx minutes" means that the connction should be closed after xx minutes of  not being used by any process.
    With SAP BW the connection seems to be closed regardless of it's use after the specified time period.
    regards,
    Walter

  • XMII query against a SAP NetWeaver database

    Hi all,
    I have set up a data server for a SAP NetWeaver MSSQL database (DX1 on SAPSRV03) for SAP Web AS 6.40. The status of this data source shows OK. I try to create a new query template. In the SQL Query details, I can see the list of the tables and the list of the columns from a selected table. However, the test result always shows an error: “A SQL Error has occurred on query, [SAPSRV03\DX1]Invalid object name 'TMP_PRD_LINES'” It does not work for any table from that database, so it seems that the error has nothing to do with the table name.
    If I change the database name of that data server to something else, like pubs or Northwind, on the same SQL server, the query works well with any table.
    I wonder whether there is any special parameters that I need to set up so that I can query against a NetWeaver database.
    I’ll appreciate any advice on this problem!
    Best regards,
    Hart

    Hart,
    We are able to query a Netweaver DB, but we needed to include a schema.
    Your query to the TMP_PRD_LINES table should look like the following:
    Select * from SAPDX1DB.TMP_PRD_LINES
    Working with you through support I know that this worked for you - I am just wanted to post the answer for everyone to see.
    Thanks,                                                                
    Joe

  • Does BOBJ support OR select statement against SAP BW

    Hello,
    We are looking at BOBJ for reporting against SAP BW, and I was wondering if BOBJ supports select OR statements and select AND statements in the same report.
    For example.
    We have three select parameters:
    Company Code
    Document Type
    Vendor
    The business would like to run the following select statements:
    Company Code = 1010 AND
    Document Type = WE OR
    Vendor = 123123
    or from the same query, run the report this way:
    Company Code = 1010 AND
    Document Type = WE AND
    Vendor = 123123
    Is this possible? If yes, what options do we have.

    Hi Bill,
    there are several options to achieve this:
    In the BI Query you have a parameter type that is called "selection option" which allows the end-user to create very complex selection.
    In Crystal Reports you can create your own filter / parameters but you would have to pay attention to make sure that the parameters are being send down to the server.
    in Web Intelligence / a Universe you could do the same like in CR.
    Ingo

  • Crystal Report Date Prompt  Query from SAP BW

    Dear Support,
    Using Crystal Report 2008 and Query is design In SAP BW
    Date Prompt is made mandatory in Query at Query Designer.
    Problem:  Requirent is that Date promt shoud take value currentdate-1
    when report is excuted first date prompt will show in that prompt value should have today date - 1 which is yesterday date.
    how to pass formula to date prompt?
    Thanks

    If the prompt value should always be CurrentDate -1, then there is no need to use a prompt at all. Just put the formula to the selection criteria.
    If you want the prompt to default to CurrentDate -1, while allowing the user to change the prompt to another date if they wish... That won't work. CR won't allow you to use a formula as the default value in a prompt.
    If there is a BO Universe between you and the tables... IE, you're building against the universe, you'll need to get with the universe designer and have them make an alternate field available that has the formula hard coded in the SQL as opposed prompting.
    HTH,
    Jason

  • Error (WIS 10901) while creating a webi report against SAP data source

    Hi,
    While creating a webi report against a universe created using Infocube/Bex query (basically SAP data source) get a error message -
    A database error occured. The database error text is: A runtime exception has occured. (License key check failed. Check that you are licensed to access SAP data sources). (WIS 10901).
    Any clues whether this is a license issue or something else?
    Thanks,
    -Purav.

    >
    George Pertea wrote:
    > Does your connection in the Universe test ok on the server if you are on Win? Did you install the Java Connector properly?
    I am having the same problem.  I checked and double checked everything, including deleting and recreating the Universe and the Connection.  No improvement.  On a whim, I deleted the hierarchy from the query on which the Universe was based, and recreated the Universe on the query without the hierarchy.  The problem went away.
    Now, the question is, why do I get the WIS 10901 error when a hierarchy is present in the query/Universe?

  • Error when running a query against Multiprovider using 0FIGL_VC1

    Hi SAP Gurus,
    I'm creating a MultiProvider for FI-GL.It has 2 Cubes.one is 0FIGL_VC1 (Virtual Cube) and other one is Customised Cube.When I run Query against this MultiProvider with  the combination of basic cubes key figures,I'm getting an error
    'Abort system error in Program SAPLRSDRC and Form RSDRC/Form DISPATCHER/RECEIV '
    then system gets disconnected from the Server .
    Please give me the solution to fix it & I'll assign the points .
    Thanks & Regards
    Raja

    Hello Suman,
    Check the table rszglobv for this variable - ZCONLEH.
    If it is available there then see which infoobject it belongs to and then look for that in the query designer. May be resaving the query solves the issue.
    If the variable is not available in the table, then it seems that the variable is lost and you might have to recreate it for keeping the semantics of the query the same as it was before the upgrade.
    Regards,
    Shweta

  • Hardcoded LOV against SAP BW

    Hello,
    When using XI 3.1 against SAP BW what is the equivalent of
    @Prompt('Rank By (Mandatory, Single)','A',{'MTD','QTD','YTD'},mono,constrained)
    That is I want the LOV to display MTD, QTD and YTD.
    The above syntax gives me the below error
    A database error occured. The database error text is: The MDX query WITH MEMBER [Measures].[3A5C8F88-5138-DF11-A2,11,14,1E,A,CD,0,0] AS ' Net Sales '   MEMBER [Measures].[CE5E8F88-5138-DF11-A2,11,14,1E,A,CD,0,0] AS ' MTD '   SELECT  { [Measures].[3A5C8F88-5138-DF11-A2,11,14,1E,A,CD,0,0], [Measures].[CE5E8F88-5138-DF11-A2,11,14,1E,A,CD,0,0] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( [0SOLD_TO].[LEVEL01].MEMBERS, [0SOLD_TO__0INDUSTRY].[LEVEL01].MEMBERS ), [0PLANT].[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION, [0PLANT].[10SALES_DIST], [0SOLD_TO].[10INDUSTRY] ON ROWS FROM [ZMCSLSAVP/ZZMCSLSAVP_Q0001]  failed to execute with the error Invalid MDX command with Sales. (WIS 10901)
    Thanks,
    Nikhil
    Edited by: Nikhil Khasnis on Mar 25, 2010 10:13 PM
    To clarify
    I am trying to use @Prompt('Rank By (Mandatory, Single)','A',{'MTD','QTD','YTD'},mono,constrained) in the select part of the MDX query.
    I have a requirement to let the user select MTD, QTD or YTD and then do ranking on a WebI report based on what is selected. This would work in legacy DBs as the SQL would be like
    Select column1, 'MTD' from table
    Any work arounds in MDX?

    AWESOME!!! You da man.
    My complete syntax is
    <EXPRESSION>
    (@Prompt('Rank By (Mandatory, Single)','A:A',{'MTD Net Sales':'[Measures].[AVYY9P5M8DTA6AESXTMP443S6]','QTD Net Sales':'[Measures].[AY3OF147LRJYBGLD5HC7YFQXY]','YTD Net Sales':'[Measures].[B08EKD2SZ5AMGMRXD51QSRE3Q]','MTD Tot Rev':'[Measures].[ACSEXPI9VY58VQRR0W8ZJ7BC6]','QTD Tot Rev':'[Measures].[AEX531GV9BVX0WYB8JYIDIYHY]','YTD Tot Rev':'[Measures].[AH1V8DFGMPML634VG7O17ULNQ]','MTD Cust Markup':'[Measures].[BYC0XOGAX95CRDOWROE49XOO6]','QTD Cust Markup':'[Measures].[C0GR30EWAMW0WJVGZC3N49BTY]','YTD Cust Markup':'[Measures].[C2LH8CDHO0MP1Q216ZT5YKYZQ]','MTD Gross Profit':'[Measures].[BW7ASCHPJVEOM7ICK0OLFM1IE]','QTD Gross Profit':'[Measures].[BPT4CCLXFQ6O6OYNX1K0WN412]','YTD Gross Profit':'[Measures].[BJEXWCQ5BKYNR6EZA2FGDO6JQ]'},mono,primary_key),@Prompt('Dimensions?','A:A',{'Buss Unit':'[0SOLD_TO].currentmember','Historical group':'[ZBUY_GPO].currentmember','Fin Resp':'[ZCFINRESP].currentmember'},mono,primary_key) )
    </EXPRESSION>
    This is crazy thought for mere mortals like me to remember. Is there a good book or course or something on MDX or how to use it with BO?
    Thanks,
    Nikhil
    Edited by: Nikhil Khasnis on Mar 29, 2010 6:08 PM
    <EXPRESSION>
    (@Prompt('Rank By (Mandatory, Single)','A:A',{'MTD Net Sales':'[Measures].[AVYY9P5M8DTA6AESXTMP443S6]','QTD Net Sales':'[Measures].[AY3OF147LRJYBGLD5HC7YFQXY]','YTD Net Sales':'[Measures].[B08EKD2SZ5AMGMRXD51QSRE3Q]','MTD Tot Rev':'[Measures].[ACSEXPI9VY58VQRR0W8ZJ7BC6]','QTD Tot Rev':'[Measures].[AEX531GV9BVX0WYB8JYIDIYHY]','YTD Tot Rev':'[Measures].[AH1V8DFGMPML634VG7O17ULNQ]','MTD Cust Markup':'[Measures].[BYC0XOGAX95CRDOWROE49XOO6]','QTD Cust Markup':'[Measures].[C0GR30EWAMW0WJVGZC3N49BTY]','YTD Cust Markup':'[Measures].[C2LH8CDHO0MP1Q216ZT5YKYZQ]','MTD Gross Profit':'[Measures].[BW7ASCHPJVEOM7ICK0OLFM1IE]','QTD Gross Profit':'[Measures].[BPT4CCLXFQ6O6OYNX1K0WN412]','YTD Gross Profit':'[Measures].[BJEXWCQ5BKYNR6EZA2FGDO6JQ]'},mono,primary_key),@Prompt('Dimensions?','A:A',{'Buss Unit':'[0SOLD_TO].currentmember','Historical group':'[ZBUY_GPO].currentmember','Fin Resp':'[ZCFINRESP].currentmember'},mono,primary_key) )
    </EXPRESSION>

  • Mapping query in SAP PI

    Hi Experts,
    I have a mapping query in SAP PI. Actually I am mapping the source and target fields, now the problem is.
    The sender filed is subnode of the main node, and I have mapped the two main nodes in the sender and receiver together.
    Now, whether the sender main node comes all the subnode values will come or do we need to do something else for it.
    Both the sender and target main nodes and subnodes can have multiple repetations.
    I think One to One mapping wont do in this case. What needs to be done please help??
    Thanks and regards,
    Aniruddha

    Hi Vijay,
    Thanks a lot.I will try this out. Can you help me in another mapping problem, the req. is that i need to map the source and the target.
    The condition basically is :
    If no value in LIFEX use VBELN to map to a single target field.
    But I wont use UDF in this case.
    Please help.
    Regards,
    Aniruddha

  • How to Use MAX condition using Query Report

    Hi SAP Abap Expert,
    Can we use the MAX condition in Query Report (SQ01/SQ02) ?
    I have created one sample query using table VBRP and VBRK then i need to use max condition to get the MAX record in VBELN.
    Please Help ???

    Hi Ashishsingh,
    According to your description, you want to know how to use MAX function in SQL Server Analysis Services MDX Query, right? In this case, please refer to the link below which describe the syntax and sample of MDX function.
    http://technet.microsoft.com/en-us/library/ms145601.aspx
    http://www.mdxpert.com/Functions/MDXFunction.aspx?f=64
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Difference between sap query and sap ad hoc query

    Hello Experts-
    Is there any difference between sap query and sap ad hoc query. If yes, I will appreciate if you can provide some input.
    Thanks,

    Hi,
    SAP Query
    Purpose
    The SAP Query application is used to create reports not already contained in the default. It has been designed for users with little or no knowledge of the SAP programming language ABAP.
    SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    Classic reporting- the creation of lists, statistics and ranked lists- are covered by the InfoSet Query and Queries components. Other components’ range of functions cover the maintenance of InfoSets, the administration of user groups and also the translation of texts created in the SAP Query.
    All data required by a user for a report can be read from various tables.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. In the WYSIWYG mode, you can edit the lists using Drag & Drop and various toolbars.
    AD Hoc Query
    Definition
    A Web item that enables you to create and change queries in a Web application on an ad-hoc basis.
    Use
    You can use the  Ad-hoc Query Designer Web item in the Web Application Designer to structure Web applications in which you create or change queries. The Web item is as a tool for designing ad-hoc queries in a Web environment.
    In particular it enables you to:
    ·        Create queries by assigning characteristics from an InfoProvider to rows, columns, filters, and free characteristics, and including key figures from the InfoProvider in the key figure structure of the query.
    ·        Restrict or filter key figures and characteristics
    ·        Use predefined key figure structures and restricted or calculated key figures in the query
    ·        Set or change query properties and key figure/characteristic properties in the query
    ·        Create or change conditions and exceptions
    When compared with the BEx Query Designer, the Ad-hoc Query Designer Web item has the following restrictions when creating or changing queries:
    ·        You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    ·        The query can contain only one structure. This structure has to be the key figure structure and be in the rows or columns of the query.
    -        You cannot use key figures or key figure structures in the filter.
    -        You cannot define exception cells, since this requires two structures.
    You cannot create the following objects using the Ad-hoc Query Designer Web item:
    -         Reusable structures
    -         Reusable restricted key figures
    -         Reusable calculated key figures
    -        Local calculated key figures
    You can create local, restricted key figures using the Ad-hoc Query Designer Web item.
    You can edit existing queries in the Ad-hoc Query Designer Web item, if the queries adhere to the restrictions laid out above The Ad-hoc Query Designer checks these requirements when loading a query. If the query is too complex, the query can be loaded into the Ad-hoc Query Designer but you cannot change it there. You then receive the appropriate message. You can still check and execute the query.
    "Ad Hoc" is a Latin phrase which means "for this purpose" and in today's parlance generally means "on the fly," or "spontaneously."
    An ad hoc query is a query that is run at the spur of the moment, and generally is never saved to run again. These queries are run using a SQL statement created by a tool or an administrator. So therefore, such a query is one that might suit a situation which is only there for the moment and later on will become irrelevant.
    As queries become more complex, it can be difficult to write them correctly ad-hoc. To help with this, one can instead write the knowledge needed for queries as business rules in English, and then use a system called "Internet Business Logic" to automatically generate and run the SQL queries. One can then get explanations of the results, in English, at the business level.
    Check these links....
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bf2f79-021d-2a10-5082-dadc79aaa92c
    http://www50.sap.com/businessmaps/27FEEF3A12444F89A8524CCACAF4F5BF.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/15/00a042b443c56ae10000000a155106/content.htm
    Reward points if useful....
    Regards
    AK

  • Resources for customizing SAP Universe objects with MDX

    Hello,
    Are there any recommended documents out there that provide a comprehensive resource regarding MDX syntax?  We are customizing objects in our SAP Universe using MDX, however the "customizing" chapter in the pdf..."Using SAP BW in Universe Designer" is not that thorough.
    Any recommendations?
    Thanks.
    Kevin

    Ingo...here is an example from one of my team members....
    We are able to create simple calculated measures such as:
    <EXPRESSION>(@SELECT(path\ObjectA)) + (@SELECT(path\ObjectB))</EXPRESSION>
    <EXPRESSION>(@SELECT(path\ObjectA)) - (@SELECT(path\ObjectB))</EXPRESSION>
    <EXPRESSION>(@SELECT(path\ObjectA)) * (@SELECT(path\ObjectB))</EXPRESSION>
    <EXPRESSION>(@SELECT(path\ObjectA)) / (@SELECT(path\ObjectB))</EXPRESSION>
    No problem.  Anything more complex than that does not work, e.g.
    <EXPRESSION>Sum(YTD(), @SELECT(path\ObjectA))</EXPRESSION>
    or even
    <EXPRESSION>Sum(@SELECT(path\ObjectA))</EXPRESSION>
    gets me an error when I try to include it in a Webi report at query execution time. It gives me an error:
    A database error occurred.  The database error text is: the MDX query ... failed to execute with error Unknown error. (WIS 10901)
    Ideally, I would like to get something like <EXPRESSION>IFF(period = this period, amount, 0)</EXPRESSION> to work.  Without this kind of control, either the number of BEx queries, BO connections and universes that will be required will grow to an unmanageable number or Webi reports will become very complex with all kinds of formulas and will not be be suitable for any end user modification.  I think that resolving this is critical to having further success with BO implementations on top of EDW.
    I am not sure if there is some patch level in EDW that is required or if I should be including some kind of specific date or time characteristic in my queries for this to work.  Any help is greatly appreciated.

Maybe you are looking for