Date different at query level ?

Hi guys,
Do you know if it possible to make the difference between 2 date in the query ?
Example: production date - current date to determine age of the stock.
With user exit virtual keys figures it's feasible.
During infoprovider upload it's feasible.
But is it possible in the query to do it ? and how ?
Thanks,
Greg

Hi Yasemin,
COuld you give me detail on how to select a characteristic as a variable.
I try to create a formula variable processing by replacement path.
my date is a master data attribute.
I don't know how what should be the setting of the replacement path part.^
I suppose that I should display result as number on the dimension indicator part.
Thanks for your answer.
Greg

Similar Messages

  • How to find the date difference in query level?

    Hi All,
      I have to find the difference between Delivery Date and Posting Date in the query level. Canyou please let me know whether it is possible or not?
    Thanks in advance!!
    Regards,
    Ramanathan.R

    Hello,
    If both infoobjects are key figures , then you can do the calculations. Create new formula and do the calculations.
    If infoobjects are characteristics, then also you can perform the calculations but you can do this by creating a formula variable using replacement path.
    Thanks,
    Praveen Tati

  • Data at Query level

    Good Afternoon everyone,
    data is loaded correctly in my infocube thru flat file.but wen i create query on this provider n drill down on one of the object i see different data then cube(field is 'assigned to' which actually store the person's name who the ticket is assigned to but in query it is showing some data which look as some date in single quotes.ex- '20080101').wat can be possible reson for this?
    Regards,
    Deepika

    Hi,
    You are trying to see a assignne name but u are getting a date.
    Thats only possible if the mappings are wrong(identifications) in multicube or u are giving different restrictions at the cube level and at the query level.
    The cube is defenately going to contain the values shown in the report for that infoobject.
    Again go through the restrictions and filters in the query.
    Query will show whatever is in the cube based on the restrictions.
    It will not do the conversions as u have said in your case.
    If it is a multicube check for the identifications again in the multicube for this charactritics.
    It is possible that update rules are correct but the identification in the multicube is incorrect and assignne is mapped to some date.
    Thanks
    Ajeet

  • Conflict between Date values at Infocube & Query Level

    Hi Folks,
    I am stuckup with a strange situation and it is:
    The value of date fields are coming correctly at infoprovider level and when i call the same infoprovider at query level the values are totally different.
    Any suggestions in this regard.
    Thanks

    Hi,
    Are you using the same user for running the query and for checking data in InfoProvider, otherwise there might be personal settings difference.
    Execute your query in RSRT and check the output.
    Regards,
    Durgesh.

  • Date to Month Conversion at Query Level.

    Hi,
    I have Net due date in the Info provider.
    At query level i have to create a restricted keyfigure based on Net Due Month.
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    Thanks and Regards,
    MuraliManohar.

    Hi,
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    you can calculate , but as he said you can add in cube ,  may be for cal month you are taking som eother date field.
    in this case write one customer exist code .
    create one varaibel on netdue date with customer not ready input (if user wants to enter input then ct=reate user entry varaible with reday input by using customer exit).
    in routine wriet the code as when that varaible .
    l_s_range - high , low and give then take the month form that date
    like netdue date +0(6)-- gives month and year
          netdue date +0(2)-- gives month
    then rtestrict that variable with your keyfigure.
    Thanks & Regards,
    sathish

  • Problem with different resultset with same data and same query in Oracle 8.1.7 and 9i

    Hello,
    I have been using this query in oracle 8.1.7
    SELECT
    ID,
    AREA_NO
    FROM MANAGER_AREA MGR
    WHERE COMPANY_ID = :id AND
    (:value < (SELECT COUNT(ROWID)
    FROM MANAGER_WORK MW
    WHERE MW.AREA_ID = MGR.ID AND
    (MW.END_WORK IS NULL OR MW.END_WORK >= SYSDATE)))
    order by AREA_NO;
    In the above query I want to see rows from MANAGER_AREA table depending upon date criteria in the table MANAGER_WORK and also upon the parameter :value i.e if I pass a value as 0 I get to see records for which their is atleast 1 record in MANAGER_WORK with the date criteria and if I pass -1 then I get all the records because minimum value that count(*) would give is 0. The resultset was as expected in 8.1.7.
    A couple of days back I installed PERSONAL 9i to test for testing the basic functionality of our program with the same data. This query fails and irrespective whether I pass -1 or 0 it returns me same dataset which I would have got in case if I pass 0.
    I do not know whether this is a bug that has got introduced in 9i. Can anybody help me with this problem. It would be difficult for me to change the parameter send to this query as the Query is called from many different places.
    Thanks in advance
    Amol.

    I cannot use a Group by and a having statement over here. The problem with 'Group by' and 'having' clause is If I have to make a join between the two tables. When I use join then I get only rows that are linked to each other in the table.
    If I use outer join to solve that problem then I have to take in consideration the other date condition. My previous query use to virtually discard the corelated query result by using -1 as the value. This will not happen in the join query.
    Amol.

  • The SharePoint list query is not valid: Data at the root level is invalid. Line 1, position 1. (rsSPDataProviderError)

    Hi there,
    All my reports are throwing below error in a sharepoint site configured with Access services. Does anyone have a clue what's causing it?
    An error has occurred during report processing. (rsProcessingAborted)
     Query execution failed for dataset 'Default'. (rsErrorExecutingCommand)
     The SharePoint list query is not valid: Data at the root level is invalid. Line 1, position 1. (rsSPDataProviderError)
    Thanks
    Manvir

    Hi Manvir,
    For troubleshooting your issue, please go to C:\Inetpub\wwwroot\wss\VirtualDirectories\ find your Web Application (represented by a port number), then delete an unknown folder created by sharepoint, namely vti_cnf from all the folders and sub-folders in
    your web application.
    Reference:
    http://forums.asp.net/t/985790.aspx?Data+at+the+root+level+is+invalid+Line+1+position+1
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Data doesnt Display at Query level

    Hi All
    i hv executed a query which hs costlement,costcenter,profitcenter as master data, these master data’s show complete data when I c their contents individually thru maintain Master data,, but in query the data is shown only for a few records, i.e ex I hv 1000 costelements in Master,,but in query I just c around 700 and their corresponding Transaction data. Is it something like Only Records which hv Transaction data are shown up,, and other s not displayed,??,,Pleas advice
    Thanks

    Hello,
    If you load master data, then SIDs are generated for the same. Now when you laod transaction data and ur DTP has setting load data even if no master data exists, then even if there is no master data it will update the master data and correspondig SIDs will be generated.
    So generally, SIDs are generated for all the active master data but only the data that is present in the cube or DSO is displayed.
    Regds,
    Shashank

  • How to suppress a row based on current date -  at query level?

    In an Bex query report i have suppress rows based on current date.
    There is no current date available in query.
    there is a date field in the query.
    If by chance the date in that field is lesser than current date, I have to suppress that row.
    How can this be achieved?

    What is the code ofr creating a variable to get values >= to current date?
    I have implemented the following code which is not working.
    data L_S_range like line of E_T_range[].
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    L_S_RANGE-LOW = SY-DATUM.
    APPEND L_S_RANGE TO E_T_RANGE[].
    Actually i have written in class, which will be inherited in superclass.
    Edited by: akshara20 on Feb 2, 2011 1:21 PM

  • Query Level Analysis Authorization

    Experts,
    I have a requirement to provide Analysis Authorizations at a QUERY level.  For example, I have two analysis authorizations: (1) Org Unit and (2) Material Number.  I populate each of these Analysis Authorizations using a BEx Variable (through RSECAUTH) and customer exit "EXIT_SAPLRRS0_001".  In the user exit I look up what authorizations the user has for each field in a custom table.  For example, User A has access to Org Unit ORG1 and Materials M1, M2, M3.  User B has access to Org Unit ORG2 and Materials M4, M6, M8.  The Analysis Authorizations are assigned to the users via S_RS_AUTH object and it works perfectly.
    However,  we now have a new report, where we would like continue restricting the user to ORG1 but allow them to see ALL Materials.  But this requirement is only for a couple of reports. All other reports should continue to enforce BOTH restrictions.
    I don't see a way to determine which query the user is running.  In the user exit for normal variable exits, I can reference the field i_s_rkb1d-compid which has the query technical name.  But when filling the authorization variable in I_STEP = 0, that field is not populated.
    Has anyone experienced a way to create authorizations at a query level?  Is there an SAP InfoObject like 0TCAACTVT where I can specify a query name?  Your help is greatly appreciated.  Thanks!
    J

    Hi,
    SAP BW Authorization is definitely different from R/3 authorization. Why? Well, first, R/3 authorization usually involves up to the transaction code level. But for SAP BW, the mostly used transaction is "RSA1" and "RRMX". Therefore, authorization based on transaction code alone, is definitely not sufficient.
    So how do we design authorization in SAP BW? There's a few authorization objects that relates to SAP BW.
    For reporting, you will most probably use the following SAP BW authorization object:
    S_RS_COMP - Reporting Component, here is where you control the query authorization blah blah.
    S_RS_COMP1 - Reporting Component Owner, you can control users to only be able to access report created by Power Users, here.
    S_RS_FOLD - Disable/Enable the 'InfoAreas' button.
    Besides that, you will also need to configure the following authorizations:
    S_RS_ICUBE - Infocube authorization
    S_RS_ODSO - ODS Objects
    S_RS_HIER - Hierarchy Authorization
    For SAP BW administration purposes, aside from the above, you also need to configure the following authorization objects:
    S_RS_ADMWB - Administrator Workbench
    S_RS_IOBJ - Info Objects authorization
    S_RS_ISOURCE - Transaction Infosource
    S_RS_ISRCM - Master Data Infosource
    There that's what you need for authorization. Anyway, to achieve "field level" authorization like those in R/3, you can create a customize object, select the infoobject that has been set "authorization relevant", and add it in the authorization matrix, and walla, you got "field level" authorization.
    and refer the below link,
    Re: BI 7.0 Analysis authorization- How to control
    Hope it helps you,
    Regards,
    Ravindra.

  • HOw to achieve this at report/query level

    Hi Experts
    Please update me how can i achieve this at query level
    Lets Consider Data in my Cube
    Dept_id--Date--
    Qty
    -101.01.20093-----
    -101.01.20095-----
    -101.01.20098-----
    -101.01.20091-----
    -101.01.20099-----
    That is how data is avaliable in my cube
    When i run the report the output is displayed as
    Dept_id--Date--
    Qty
    -101.01.200926-----
    That is what it actually do...it will sumirises into one record.....
    BUT
    My requirment is the query result should be ....with out summarisation
    Dept_id--Date--
    Qty
    -101.01.20093-----
    -101.01.20095-----
    -101.01.20098-----
    -101.01.20091-----
    -101.01.20099-----
    Please update me is there any setting i can make at query level

    Hi,
    By default data will be aggregated in Query.
    How come data available in Cube at different aggregation level...? due to request no or some other characteristic which is unique for each record...??
    If some other characteristic available, make it available that characteristic in rows to get desired result.
    Srini

  • Information Broadcasting Authorization at Query Level

    Hi,
    I would like to know, is there any way to authorized a user at query level in information broadcasting?
    For example, there are three plant P1,P2 and P3 showing in Query, now i want to broadcast this query to E-mail to two user U1 and U2 in following manner.
    1.) User U1 get only Plant P1 Data.
    2.) User U2 get only Plant P2 Data.

    Yes, you can do that. For that;
    Plant should be authorization relevant info object
    (ii) you must have roles to give access to users at Plant level
    (iii) Users U1 and U2 must be SAP user IDs and should have required role for Plant access
    (iv) Query to be broadcasted must have auhtorization variable for Plant
    Once the basic setup is ready, you can test it by executing the report for individual users U1 and U2 and they should see data only for respective Plants.
    Now in the broadcasting setting, specify the users U1 and U2 in User box seperated by semi-colon and tick the checkbox "User Specific" - this will make sure that data is executed as per the data aurthoziation and also format will be selected as per the user profile (date format etc).
    If U1 and U2 are not the SAP users, you will have give their email addresses and will have to create two different broadcast settings to send data for selection plants.
    I hope it helps.
    Regards,
    Gaurav

  • Data view in Query

    Hi,
    My Data flow has 4 dso's and 1 cube. There are some common fields in 4 dso's. It was a 3.5 flow and I have migrated to BI7.0. SOme of the mapping were proposed by itself but some are not.
    Now my question is How the data would be viewed at query level.
    Would appreciate if anybody can make me understand.
    Thanks

    On the cube.
    I am not able to understand how it will fetch the records. Let us assume Sales Documnet no. is in all four tables and our requirement is that we have to pick delivery information from one table and sales document no. from another table. How the system will link the record.
    Thanks

  • Unable to access the data from Data Management Gateway: Query timeout expired

    Hi,
    Since 2-3 days the data refresh is failing on our PowerBI site. I checked below:
    1. The gateway is in running status.
    2. Data source is also in ready status and test connection worked fine too.
    3. Below is the error in System Health -
    Failed to refresh the data source. An internal service error has occurred. Retry the operation at a later time. If the problem persists, contact Microsoft support for further assistance.        
    Error code: 4025
    4. Below is the error in Event Viewer.
    Unable to access the data from Data Management Gateway: Query timeout expired. Please check 1) whether the data source is available 2) whether the gateway on-premises service is running using Windows Event Logs.
    5. This is the correlational id for latest refresh failure
    is
    f9030dd8-af4c-4225-8674-50ce85a770d0
    6.
    Refresh History error is –
    Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: The operation has timed out. Errors in the high-level relational engine. The following exception occurred while the
    managed IDataReader interface was being used: Query timeout expired. 
    Any idea what could have went wrong suddenly, everything was working fine from last 1 month.
    Thanks,
    Richa

    Never mind, figured out there was a lock on SQL table which caused all the problems. Once I released the lock it PowerPivot refresh started working fine.
    Thanks.

  • Can we use session variables in BI publisher's Data Model SQL Query?

    Hi Experts,
    We need to implement Data level security in BI Publisher 11g.
    In OBIEE we do so by using session variables, so just wanted to ask if we can use the same session variables in BI Publisher as well
    ie can we include the where clause in the Data Models SQL Query like
    Where ORG_ID = @{biServer.variables['NQ_SESSION.INV_ORG']}
    Let me know your views on this.
    PS: We are implementing EBS r12 security in BI Publisher.
    Thanks

    Read this -> OBIEE 11g: Error: "[nQSError: 23006] The session variable, NQ_SESSION.LAN_INT, has no value definition." when Creating a SQL Query using the session variable NQ_SESSION.LAN_INT in BI Publisher [ID 1511676.1]
    Follow the ER - BUG:13607750 - NEED TO BE ABLE TO SET A SESSION VARIABLE IN OBIEE AND USE IT IN BI PUBLISHER
    HTH,
    SVS

Maybe you are looking for