Query Designer Master data Time Dependent

Hello
im with this problem
i have master data:
material/till/since/price/description
1/14.01.2010/01.01.1000/20/Material1-old
1/31.12.2010/13.01.2010/15/Material-new
cube:
material/date/quantity
1/01.01.2010/5
1/15.01.2010/20
in my querty designer, i put the 0calday with selection options
when i insert for example 01.01.2010
its couting the "material-new" ( 15*5) it shoudlnt
it should calculate the old one. (20*5)
how can i fix it?
regards,

Hi Amit,
At "Query properties" screen, you can define a "Key date".  It can be fixed or it can be calculated from a user-input variable.  If you do not specify one, the default key date value is the date on which the query is executed (today).
For time-dependent data, the key date determines the time for which the data is selected (material price, in your case).  However, there is only one key date per query.  You can't make it dynamic depending on the value of 0CALDAY in every transactional data record.
Perhaps you might consider the option of adding 0AMOUNT to your InfoCube, and precalculate the formula quantity*price using an ABAP routine which reads price from InfoObject Q table, filtering by OBJVERS='A' and DATETO/DATEFROM=0CALDAY.
I hope this helps you.
Regards,
Maximiliano

Similar Messages

  • Master data time dependency

    Hi if i put the manager as employee in cube then we are loading the data from flat file full load then it will overwrite the manager name in cube for last month
    say i have manager name john for month 08
    i load the trans data from flat file it will take it
    now next manager name john now if i load the data it will overwrite, user want to maintain the history so that if i run the query for month 08 it should show me manager name john and if i run the query for month 09 it should show me manager name john. please help how to resolve this
    since making too many time dependent master data will over load the system so user do not want that. also is there any way to load delta from flat file in bw version 3.0
    i will reward 100% point if anybody can clarify the approach to make this happen
    soniya

    Hi,
    If you set the master data attribute as "time dependent" it will track such changes as well as validity dates.
    Of course, you would not make even the majority of master data time-dependent, but in cases where modeling calls for it (such as this), it probably should be utilized.  It will not "overload the system".
    Please be clear - while master data InfoObjects contain over-write functionality, an InfoCube does not.  Data loaded into a cube simply is an "insert".
    For your generation of delta, note that the ODS object contains a change log mechanism.  This change log can generate a "delta" from a flat file load or any kind of load.  This delta can then be used in other data loads sourced from the change log.
    Also, you might consider a technique to load a complete history of master data into an ODS object.  You can model an ODS without any key figures, but be aware the defauly will be "update", where the only complete history is in the change log.  You could implement a "technical key" in update rules, so that each record gets a unique identifier, preventing over-write.  Alternatively, if you are on BI in SAP NetWeaver 2004s, you can use a write-optimized DataStore object, which automatically assigns a unique technical key to each record (so that you have complete history), but has no change log.
    Thanks for any points you choose to assign -
    Ron Silberstein
    SAP

  • Master data time dependent

    hi bwers,
    Can any expert tell me, Under what reporting senarios do we need to matintain master data time-dependent

    Hi,
    You do this when you want to maintain the history. Like for 0COSTCENTER master data, most of it is time dependant. As an example, the person responsible for a costcenter...you want to know who it is and also who it was earlier. This can only be done with time dependant master data as it adds the from and to fields to the data.
    Hope this helps...

  • Master data - time dependent - reduce volume..

    Hello,
    I have following BW 3.5 scenario: InfoObject which is marked as data target. In the object definition I have different attributes. One of this attribute is indicated as time dependent.
    The InfoObject is filled via two update rules. In this two update rules the valid "from date" is filled with each load (monthly) from system date. The "to date" is fix value.
    I have following example:
    Date to              Date from           Used (U) / New (N)
    25.05.2008     01.01.1000          
    10.06.2008     26.05.2008          N
    15.07.2008     11.06.2008                  N
    07.04.2009     16.07.2008          N
    15.04.2009     08.04.2009          N
    31.12.9999     16.04.2009          N
    So with each full load I have an additional record.
    Is there a standard function / module that loops over my time dependent table (q-table) and only if there is a change (e.g. from N to U) an additional record is created.
    Any idea how to create a routine. How should coding look like?
    Any input is welcome.
    Thanks in advance.
    Edited by: starwars2010 on Apr 6, 2011 3:11 PM

    Hi,
    You do this when you want to maintain the history. Like for 0COSTCENTER master data, most of it is time dependant. As an example, the person responsible for a costcenter...you want to know who it is and also who it was earlier. This can only be done with time dependant master data as it adds the from and to fields to the data.
    Hope this helps...

  • Master data time dependant attribute in query for several dates

    Hello all,
    I need to create a query to display prices for a material in different periods. 
    The user will enter a period interval.  For each period, they want to know the material price the last day of that period.
    Material price is a time-dependat attribute of material, and I created one formula variable to display it. The problem is the using the key-date of the query only works for a date, but not for severals.
    Is there any other way to do it?
    If not, the only solution I find is to have in the infoprovider the prices that I need, but I don't think this is a good practice.
    Any suggestions?
    Thanks!

    I have just seen something: in fact the created lines are:
    Key1   Compound1   fromdate    todate    attr1      attr2
    0001      L      01.01.1000      01.01.2006          <empty
    so as you can see, the right interval is created but the attributes are not up to date.
    Cheers.
    Cyril.

  • How to design Master datas?? Whats is Time Scenarios???Explain..

    How to design Master datas?? Whats is Time Scenarios???
    Can anybody explain about Time Scenarios???

    Hi..
    to tell it is huge ..
    but a slice of it 
    Design          – Create design documents
    Prod.          – Make the product
    Quality          – Confirm quality of product
    Sales          - Market the product
    Purchase                    – Procure the items
    Accounts                       To control the cost of Mfg
    These steps should be understood as a general approach. To what extent they must be carried out depends
    on the actual situation and the experience of the project members involved.
    After deciding on the business process being dealt with, the basic steps to implementing a BI based solution
    are:
    1. Focus on the structure of information
    Develop a complete understanding of the underlying business processes. Create an Entity Relationship
    Model (ERM) of the business process
    The ERM as a function of the information
    2. Focus on analytical needs - Overcome model complexity
    Create a valid data model. Translate the ERM to the Multi-Dimensional Model (MDM) / Star schema
    The MDM as a function of the analytical processing
    3. Build the solution as a part of an integrated data warehouse
    The Star schema on the BI stage are the InfoCubes. Translate the MDM / Star schema to one or more
    InfoCube.
    coming to time ..
    How real-world changes are dealt with, i.e. how the different time aspects are handled is the most
    important topic with data warehouses.
    The attributes of a characteristic that will reside in its master data table are determined in the modeling
    phase. Each attribute can be defined individually as being time dependent:
    There is one ‘time dependent’ check box for each attribute in the ‘attribute’ tab page section.
    Time dependency of an attribute allows you to keep track on the changes over time of the relation of the
    characteristic and the time dependent attribute values.
    In terms of technical implementation, two master data tables exist if we have both non-time dependent
    and time dependent attributes.
    One master data table stores all relations to non-time dependent attributes (name of the table:
    /BIC/P<InfoObject name>) and
    One table stores relations to time dependent attributes (name of the table: /BIC/Q<InfoObject
    name>).
    The time dependent attributes master data table has additional DATETO and DATEFROM system
    attributes. In queries the different constellations are addressed using the key date ( Query properties).
    The validity attributes are not available for navigation.
    The text table, or better the description attributes, may be defined as time dependent.
    SID tables with respect to master data:
    The SID table is always generated if an InfoObject is not defined as ‘attribute only’ (tab page general).
    This table is used if the access to an Infocube or DataStore Object uses a navigational attribute or if the
    access is via a characteristic without attributes. Name of the table: /BIC/S<InfoObject name>
    The non-time dependent attribute SID table of a characteristic for access via non-time dependent
    attributes. Name of the table: /BIC/X<InfoObject name>
    The time dependent attribute SID table of a characteristic for access via time dependent attributes.
    Name of the table: /BIC/Y<InfoObject name>
    with regards,
    hari kv

  • Error when executing a query on master data

    Hi Friends,
    When I execute a query fon Master Data Characteristic infoObject ( 0BPARTNER ) from BEx Analyzer I got the below error. 0BPARTNER contains 15 attributes. I am getting the below error only for this query. Rest all other queries are working good with the same BEx Analyzer.
    <b>An error occured in the communication with the BW Server.
    Due to this connection has to be closed.</b>
    <b>Detailed Description:
    The system is configured incorrectly.</b>
    Please tell me what could be the problem? How to overcome this?
    Thanks,
    Sasi

    Hi Arun,
    Before the execution of query I did that. And it was ' Query is Correct'.
    Any more ideas?
    Thanks,
    Sasi.

  • Asset Master Record - Time Dependent tab - locations to be created

    Hi Guru's
    Hot to create the new locations in the Asset Master Record - time dependent tab.
    Some locations descriptions I need to change.
    Please help me.
    Regards
    Jenny Connes

    Hi,
    change your location description at following SPRO location:
    SPRO->Enterprise Structure -> Definition->Logistic - General ->Define Location
    Thanks,
    Dharmesh

  • How to start Designing Master Data and transactional Data

    Can anyone tell me how to really start to design Master Data and transactional Data in Sales? What are the steps if is it possible to share? Thanks!

    Hi Lei,
    first step is to read all necessary document on help.sap.com about Business Content for SD. Here you can see all the parts covered directly by SAP with the Business Content.
    Then you can start the GAP analysis: you check if all your requirements are fully covered by BC or not, in this second case you can start developing your own InfoObjects.
    Start always by Business Content.
    Take a look also at this doc:
    <a href="https://websmp110.sap-ag.de/form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002719062002E">https://websmp110.sap-ag.de/form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002719062002E</a>
    Ciao.
    Riccardo.

  • Query from master data

    I am trying to create a structure to create a query as follows from 0EMPLOYEE master data. I have ceated a BI infoset with 0EMPLOYEE and using that to create this query. This query is intened to be used as the receiver query in RRI.
    Sender Query (query1):
                                  Employee Distribution by perfromace rating
    Performance Rating  Before_Min Below Above Total
    Receiver Query (query2) : this should feed the employees used in query1 and get their attributes in a query
    Employee       Last_Name First_Name, Annual_Salary
        A
        B
    Qns:
    1, What is the best approach to get this?
    2. How do I create a characteristic query for Employee (without key figures) as in qurey-2
    Amy help is apprecaiated.
    Thanks in advance

    Hi Bob,
    Thanks for your message. I got the receiver query working by configuring the infoobject as a infoprovider and getting "# of records" as the dummy KF into the query and hide it. I need to clean up to supress results reow.
    For connectign to this query as RRI, in the assignment details, do I use it as an Infoobject - parameter for 0EMPLOYEE or any other setting. I used the above settings and see more employees in the list than I had expected. i don't see the employee ids being passed on from Q1 to Q2 to provide a reduced result set when I limit the scope in q1 (eg: by filtering using the org unit or personnel area).
    Any clues?
    Thanks
    Raj

  • Query says master data value is invalid in selection screen.

    Hi,
    I am experiencing an issue that is occurring across many reports in our BW QA system, not just one. My InfoProvider clearly contains data with plant = US33. However, when I run the report and in the selection screen I enter US33 I get the error message saying that the value US33 is invalid.
    If I open the selection box, it even shows US33 as an available option (selections are restricted to values in the infoprovider), but again if I select US33 and click ok I get the same error message saying that the value US33 is invalid.
    If I run the report open the report returns records with plant = US33. However, if I try to filter on plant US33 in the report it returns no data.
    US33 is available in the 0PLANT master data and yes the data is active. I even tried modifying this record and saving it and that didn't work. I also tried reloading the data and still nothing.
    I also tried running tests in RSRT on the 0PLANT master data but there are no errors.
    I can query data in the infoprovider successfully when I select plant = US33 in the BW.
    I suspect that since this is occurring across multiple reports that report off of different infoproviders, that this is a master data or system issue but I can't solve it.
    Please advise.
    Thanks,
    Anthony

    what is the length of 0plant .
    it should be 4 characters with lower case on.
    ensure cases are same in 0plant and report selection screen if lowercase is allowed in plant data.
    if it still gives your problem try to create a new variable on 0plant and use it.
    revert back nothing works..

  • Display Title in BEX query for Master Data Field

    Hi All,
    Appreciate if someone can assist me in this.
    When we display query result, we will have results of master data field for as master data and Text, e.g Customer and customer text.
    BEX display:
    Header Line : Customer
    Display Line : 90002011   Mary Kay
                          90002023   John Smith
    For the header Line, we have title 'customer', can we have the title for 'Customer Description' instead of having it as a blank field.
    Appreciate if someone can assist me in this, I cant find this issue posted by anyone.
    Thank you.

    Hi,
    For one object you can not have seperate description for key and text.
    Either you need to have seperate object. Check if your Customer object is having some name attribute then display cutomer key with name attribute so that there will be two object and you may change the description in report display.
    If this is not possible then you may not have dirctly in reporting. You need to stage one more object in staging area with same cutomer field then one you may use as text the other one as key.
    I hope it will help.
    Thanks,
    S

  • BW query: appended master data information not displayed

    1-30-07
    I had existing info-object for sales orders with some master data. I
    appended the master data with additional sales order numbers. I then loaded
    transaction data ( which included additional sales order numbers ) into new
    infocube.
    However when I run the query, I do not see appended sales order numbers. I
    checked data in infocube for  SID numbers for sales orders. Then I matched
    SID table for sales order infoobject to make  sure  that new SID numbers are
    added for the appended sales orders. Master data is also activated.
    Everything matches. But I don't see the appended sales order numbers in
    query.
    How to correct this problem ?
    Thanks for your help.
    manohar

    Sudheer
    ACR window shows several hierarchies  which are not applicable to sales orders.
    I tried to collect the infoobject which is modified. However, I am unable to select
    ANY infoobject. ( Infoboject list button --> new window opens --> search icon --> when I try to search for the infoobject, I get no hits. Even when I enter the exact name, it does not  pop up )
    So I am lost here.
    Can you help ?
    Thanks
    manohar

  • Activating Master data time out problem

    Dear all,
    when i try to activate master data, it gives error message "time out" . in which tcode i can increase tha time out duration?
    Thanks

    Hi John,
    Please check the thread below:
    Activate time-dep. master data (0EMPLOYEE)
    This also  suggests to run the master data activation program in background, This will solve your issue,
    -Vikram

  • Query Based on Date & Time Range

    Hello Users,
    There is a requirement to display weekly report from saturday 8:00 AM to previous saturday 08:00 AM.
    I have a table "Downtime"
    IPADDRESS       First Occurrence                   Last Occurrence           Downtime
    172.29.10.12    31-JUL-10 08:12:50             01-AUG-10 09:00:00      1
    172.29.11.54    01-AUG-10 11:12:00            01-AUG-10 01:10:00      3
    172.29.58.7      07-AUG-10 04:10:00            07-AUG-10 05:00:00      2I will not have problem when I run the report on saturday as I can give condition as sysdate - 7.
    First problem is how will I default to 8 AM.
    Second if the report is run on sunday or in between before next saturdya I have to query the records only from satuday 8 AM to previous saturday 8 AM.
    Can anyone please help me on this?
    Thanks.
    Ravi.

    Hi,
    hoek wrote:
    That's a great hint, Solomon, thanks.
    I always end up getting frustrated because trunc on a date returns a NULL for 'midnight'....and the ability to perform date arithmetic is gone all of a sudden. Why isn't Oracle just resetting to '00:00:00' when truncating a date, I wonder?I must not understand what you're asking.
    It sounds as if you're saying that TRUNC (dt) sometimes returns something that is NULL (or somehow partially NULL), but I'm sure you don't really think that.
    For other readers who may be wondering:
    TRUNC (dt), where dt is a DATE (and not NULL) , always returns a DATE, and DATEs always have a time. Either the whole DATE is NULL or none of it is; you can't have a year-month-day in a DATE column and not have a time, or have a NULL time.
    TRUNC(dt, x) may return a DATE where the time is not midnight, but only if x is a format string like 'MI' that specifies an interval less than a day. When x indicates a longer interval (e,g, 'IW'), or when x is omitted, the time is always midnight. In any event, you can do date arithmetic on the results.
    I'm sure you understand this, but your question makes it sound like you don't.
    This should illustrate my point:
    -- generating hours, starting 14 days ago:
    with t as (
    select trunc(sysdate-14)+ level/24-1 dt
    from   dual
    connect by level <= 24*14
    -- querying generated data:
    select dt
    --,      trunc(dt,'iw') - 5/3  -- great workaround, but why can't we just work with 00:00:00 for the time component?
    from   t;
    -- generating hours, starting 14 days ago:
    with t as (
    select trunc(sysdate-14)+ level/24-1 dt
    from   dual
    connect by level <= 24*14
    -- querying data between saturday and previous saturday
    -- from the same resultset and 'it doesn't work'
    select dt
    from   t
    where  dt between trunc(dt-7)+8/24 and trunc(sysdate)+8/24;
    Is this a parody of a poorly written question?
    Are you trying to make the point that no one should ever say "it doesn't work" without explaining exactly what doesn't work, and what the expected output is?
    I get the same 336 rows when I run either of the queries above.
    As you've often said, posters should always show exactly what results they want.

Maybe you are looking for

  • BAPI for Open production orders

    Hi All, Any BAPI for open production orders?.... Using BAPI i want to upload open production orders informatiomations.... Please help Thanks & Regards Santhosh

  • How to remove payment metho for iPhone ios 7, How to remove payment metho for iPhone ios 7

    Hai

  • Dynamic Tabs Layout

    Hello, I'm using the latest version of JHeadstart (11.1.1.3.35). I have selected Dynamic Tabs layout and everything works fine except that the home page still shows all the groups as a tab in home page. If I click on any of them it will go to the tre

  • How to confirm an activity using BAPI ?

    Hi, Does anyone know how to create a confirmation to an activity using a BAPI ? ( instead of CN25 ) We have such a requirement and I tried to use FM BAPI_NETWORK_CONF_ADD. I get a message like "confirmation is saved"  but when I don't see the confirm

  • Using Flash CS4 Scroll Pane

    Hi all, I have been looking for an app or something to make a scrollable window for a site I am working on and realised Flash CS4 has a Scroll Pane, great! Watched one to two tutorials and for some reason they are all CS3 but I think I can work round