Time dependent selection

Hi,
Can anybody help me with me problem?
I'm creating a datasource for a characteristic with time dependent attributes.
I need to have 0DATEFROM as a selection characteristic in the infopackage.
But when I do this, the load fails with the next error mesage: " ZEMPLOYEE : Data record 1 ('01000001 ') : Invalid "from" date '00000000 '". And the same error appears for all values of ZEMPLOYEE.
Does anybody how to solve the problem?

Hi Elena,
Do you load master or transactional data?
If the latter, you need to load master data of 0EMPLOYEE first. The date supplied by the system you need to use in TO_DATE field. The system will take care about creating time-dependent records.
See some examples here:
Re: Master Data: 2 records with different FROM-TO dates
Re: Master data load failure
Re: Loading Multiple Time-Dependent Characteristics for an InfoObject
Best regards,
Eugene

Similar Messages

  • Time-dependent hierarchy in query selection screen

    Hello all
    I am running query where input selection has following fields -
    Fiscal year variable ( e.g. i can enter 2008)
    Period variable ( e.g. i can enter 12)
    Hierarchy Node variable
    The hierarchy is time-dependent. I want that if I enter year and period as 2008 , 12 then
    my hierachy node selction pop-up should show me only that hierarchy structure which was valid in 12.2008.
    But my hierarchy selection always shows me hierachy structure that is valid on current date.
    Can anyone help me on how to achieve this?
    I have already coded keydate variable based on fisc year and period. But then how to make use of this key date variable so as to get correct selection of hier?
    Regards,
    Sanjyot

    Hi Marcio
    RSRHIERARCHYVIRT is for maintaining time-characteristics hierarchy.
    My hierarchy is based on Consolidation Groups and Units.
    But the hier is time-dependent.
    So I want that when selection pop-up opens for a hier node , it should show me correct hier depending on year and period i have enetered.
    Regards,
    Sanjyot

  • How to Select in a query considering key date of time-dependent characteris

    Hi, Everybody
    I have a Infoobject called CONTROL. It can be tested during the year once, twice, three times,six times  or can be not Tested.
    The Characteristic that contain the number of  test that the Control will be tested is time dependent.
    For example, one control can have the charcteristic to test twice in a year. Then 31/10/2007 it can turn "not test".
    I can have these records:
    CONTROL   VALID INIT       VALID END     TEST  
       XYZ         01/01/2007       31/01/2007       TWICE
       XYZ         01/02/2007       28/02/2007       TWICE
       XYZ         01/03/2007       31/03/2007       TWICE
       XYZ         01/04/2007       31/10/2007       TWICE
       XYZ         01/11/2007       31/12/9999       NO TEST
    I have a query that I should select the number of controls different of  "NO TEST" During the time selected.
    For example, if I select Interval Time = 01/01/2007 to 31/10/2007, This record should be Counted, because it was to be tested during this period.
    If I have selected Interval time = 01/11/2007 to 31/12/2007, it should not be selected because in this period, this control doesn´t able to be tested.
    If I put filter restricting NO TEST, the query should check the time of validity, but when I do that, BW doesn´t accept that because I can´t restrict by Validate Date.
    Anybody already had a problem like that?
    I´d like suggestions to solve that or comments that could explain that.
    Thanks a lot,
    Elisabeth
    Edited by: Elisabeth Umebara on Feb 2, 2008 12:21 AM

    Hi, everybody.
    I already solved this problem. Thanks a lot.
    For this I selected the controls in a exit variable that should be selected in from table time-dependent  from infoobject. This solution ran just for BWD and BWQ, because there was a lot of data in BWP.
    Then I made a first query that has selected the controls. After that, in the original query I defined the substitution path relating with the first query.
    Thanks again,
    Elisabeth

  • Selection of time-dependent hierarchy variables after selection of time

    Hi guys,
    I'm having the following question regarding the selections of variables in a BEx Query:
    I need to select e.g. a position out of a hierarchy which is time-dependent. In the selection screen I'm only able to select a certain date but not the key date that I need for the hierarchy. Now I would like to replace the needed key date for the hierarchy out of the date value. Having the parameters for the hierarchy selected I would like to select a position of the right hierarchy.
    My idea is to select the date first:
    Date: 05.2009
    In the next pop up window the hierarchy key date is replaced by the date:
    Date: 05.2009 --> key date: 05.2009
    Now I can select a position for the right hierarchy.
    Is a two-stage selection possible? How can a variable be replaced and simultaneously serve in the selection of object with a hierarchy?
    Thanks in advance!

    Hi Partho,
    Please check this link. Might be helpfull.
    http://www.ibm.com/developerworks/data/library/cognos/infrastructure/cognos_specific/page551.html
    Regards,
    Rahul

  • Select key date of time-dependent hierarchy before select a hierarchy node

    Hello experts!
    I have a Web Application which has a selection on 0ORGUNIT (organizational unit). The selection is on hierarchy nodes and the hierarchy is time-dependent.
    Because of the time-dependency I have to give a key date for the hierarchy. But I want to select the key date at runtime/execution of the query and additionally I want to select the hierarchy node and other selection criterias.
    Maybe there is a solution to get all this in one pop-up or maybe in two or another solution how I can implement this requirement.
    Thanks for help!
    Peter

    Hey!
    You don't have to use the same presentation-hierarchy like  the selection-hierarchy is which you use for the variable. While presentation-hierarchy always has a key-date, the selection-hierarchy has none. So you see all values for selection but just this which are valid for the presentation-hierarchy are selected. And there is a warning which you can supress over RSRT.
    This solution works for our problem, maybe not for yours, don't know.
    Best regards,
    Peter

  • Time dependent data load to BW using Fixed Time Interval selection

    Hi,
    I'm facing a problem in extracting time-dependent master data to BW. I would really appreciate if anyone can help in this regard.
    We have a table in R/3 which has time-dependent data. For example, for a single OBJID we could have multiple records with different BEGDA/ENDDA and different attributes. When we try to load this data into BW InfoObject, we see a time-dependent data selection in update tab of infopackage. We need to select BEGDA/ENDDA in datasource since otherwise during loads we would get a "DUPLICATE RECORDS" load error in BW.
    The problem is when we enter a Fixed-time interval Start Data and End Date in the InfoPackage, only the records with that StartDate and EndDate are loaded. Ideally I would want to see all the records whose BEGDA/ENDDA falls in the range of StartDate and EndDate.
    I tried modifying the ROOSFIELD table for the data source. I made the BEGDA SELOPTS as GE(16) and ENNDA SELOPTS as LE(64). But still it doesn't seem to work. I checked if the change to ROOSFIELD has any affect in RSA3. Unless we give a range for BEGDA it doesn't seem to behave as expected. Could someone let me know how I can load all records to BW whose BEGDA/ENDDA fall in the range of StarteDate and EndDate.
    Thanks,
    Anil.

    Anil,
    If you are using a custom dataSource, make sure the dataSource fields for begda and ennda are labeled "datefrom" and "dateto".
    Cheers,
    T-

  • Time-dependent BW hierarchies in Analysis for OLAP

    Hi all,
    We are using time-dependent hierarchies in combination with a key date variable.
    Tools used: Query designer based on SAP BW 7.4 and BO 4.0.
    The following steps are executed:
    Report is executed and key date is prompted
    According to the key date, the correct time-dependent organisation hierarchy will be used in drill-down
    Bring up variable screen again and select different key date
    The drill-down changes according to the now correct time-dependent organisation hierarchy
    The above scenario works for BEx Analyzer, BEx Web, Analysis for Office - but not for Analysis for OLAP.
    Whenever I run through this scenario and confirm the updated key date, the following error is displayed:
    cube.get.dimension.info.runtime.error : java.lang.IllegalStateException: There is no default hierarchy for dimension [ORG].
    In the user guide I don't find any specifics about the hierarchies and since it works in all the other applications, I wonder where the error is coming from. I also could not find it anywhere else in the forum.
    Has anyone experienced the same error or any suggestions?

    Hi Peter,
    This issue is captured in SAP Note 1941865. Resolved in 4.0 (8.5, 9.2 or SP10) and 4.1 (1.6 or SP03).
    Symptom
    In BI 4.1, Analysis for OLAP returns errors similar to:"An error occurred in the MDAS service while processing a request from Analysis, edition for OLAP. Try the operation again. If the problem persists, please contact your administrator. (AOC00041)" and/or "cube.get.dimension.info.runtime.error: java.lang.IllegalStateException: There is no default hierarchy for dimension [DIMENSIONNAME]"
    The BW Query the AOLAP workspace is created against has 2 different hierarchies that have the same text description
    Environment
    SAP BusinessObjects Business Intelligence platform 4.0
    SAP BusinessObjects Business Intelligence platform 4.1
    Analysis, edition for OLAP
    Reproducing the Issue
    In CMC, create an OLAP BICS connection to a multi provider
    Connect to BI launchpad and launch Analysis, edition for OLAP.
    Use the connection to create a new workspace.
    The error is observed
    Cause
    This issue has been logged as a defect under ADAPT01720287 for BI4.0 and ADAPT01713663 for BI4.1
    Resolution
    A fix for this issue is included in the following maintenance releases:
    BI4.0:
    Patch 8.5
    Patch 9.2
    Support Pack 10
    BI4.1:
    Patch 1.6
    Support Pack 03

  • 0CS_Item with time-dependent hierarchy

    Dear Experts,
    we are discussing pros and cons for a time-dependent item catalog (characteristic 0CS_item with time dependent hierarchy in BW) within consolidation SEM BCS 4.0. Does anybody has experiences on this topic?
    I am quite sure it will be a performance issue and it means additional reporting effort (e.g. using reference period/year in the report comparing different hierarchies).
    I am not sure if there are any other risks so I it would be great if anybody has some hints.
    Thanks in advance,
    Birgit Laux
    Message was edited by: Birgit Laux

    Birgit,
    Some other things to consider:
    - frequency of changes to item hierarchy. Could lead to a lot of item hierarchies in BW over time.
    - hierarchy validity date does not seem to be displayed when running web queries and thus makes it difficult for the user to select the correct hierarchy when executing the query. Still looking for a fix for this.
    - greater complexity in overall design. Is it really necessary to achieve correct financial statement presentation?
    Virtual cube performance is not great but you could implement the data mart which provides typical BW query performance.
    I stayed away from setting the item as time dependent for these reasons.
    Brian

  • How to create time dependant master data table in R/3?

    Hi gurus,
             I am new to BW.I try to execute the 'Time dependant Attribute' into BW.in my scenario my source system must give me the data like "salesrep ID,Manager ID,Date to,Date from,Sales region". I like to know how to define this master data in SAP R/3(Source system)?. Give me the steps to create master data table in R/3.
    Manager may change periodically.even i need to maintain all the changes in R/3.
    Thanks & Regards,
    Bharath

    built-in type method means.,
    there is no need to create data element and domain objects seperately for each and every field of the table which ever you are creating, system will implicitly fix the size based on the data type you selected....

  • How to Display Time-Dependent Characteristic Data In Query

    Hi Experts,
       I have encountered a problem. I want to use Time-Dependent Chart. And want to display different value according characteristc's valid from time. For Example,
    The Characteristic 0COSTCENTER has the navigation attribute 0COMPANY, The data as:
    0COSTCENTER   Valid from   Valid To       0COMPANY
    BW2305              20070101   20070430     A
    BW2305              20070501   99991231     B
    I want  the report  can display as :
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     B                  2000
    But when I set the query's key date 20070420, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     A                  2000
    when I set the query's key date 20070520, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     B                 1000
    BW2305              20070501   99991231     B                  2000
    Can anybody tell me how I can get report expected.
    Thanks in advance.
    SF

    Hi,
    1) Add the characterstics 0COSTCENTER ,0DATETO,DATEFROM and  0COMPANY to the cube.
    2) And also add these 4 IOs to the Communication structures which has update rules with the concern cube.
    3) I hope , you already have  0COSTCENTER in the Commnication structure and mapping for that infoobject at both Update rules and Transfer rules.
    4) Leave to the Blank(no mapping) mappings for the IOs 0DATETO,DATEFROM and  0COMPANY in the Transfer rules.But make 1:1 mapping in the Update rules for these 2 infoobjects.
    5) Write the below code in the strt routine of the Update rules:
    TYPES:  BEGIN OF type4.
          include structure like /BI0/QCOSTCENTER.
    TYPES END OF type4.
    DATA:
      ITAB4 TYPE STANDARD TABLE OF TYPE4
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    SELECT * FROM /BI0/QCOSTCENTER INTO CORRESPONDING FIELDS
    OF TABLE ITAB4
    WHERE OBJVERS = 'A'.
    loop at DATA_PACKAGE.
         READ TABLE ITAB4 WITH KEY COSTCENTER = DATA_PACKAGE-MATERIAL 
    DATETO LE DATA_PACKAGE-PSTNG_DATE
    DATEFROM GE DATA_PACKAGE-PSTNG_DATE.
                  IF SY-SUBRC EQ 0.
                    DATA_PACKAGE-DATETO = ITAB4-DATETO.
                    DATA_PACKAGE-DATEFROM = ITAB4-DATEFROM.
                    DATA_PACKAGE-COMP_CODE = ITAB4-COMP_CODE.
                  ENDIF.
                  Modify DATA_PACKAGE.
      endloop.
      ABORT = 0.
    Here I assumed you have Posting date in the Communication structure and used to map to Fiscalperiod of the cube.
    6) Do the Master data upload to Cost center and active the master data of it always before uploading the data to cube.
    7) Do the uploading to cube from Sratch.
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by:
            Anil Kumar Sharma

  • Imposible to set a time dependency at a transformation

    Hi!
    I'm in trouble with a transformation (BW 7.0). I'm trying to fill a key figure reading master data from a characteristic. The key figure is an atribute of that characteristic, and it's time dependent. But when I define the rule in the transformation I cannot select any time characteristic to set the dependency.
    Thanks!
    Jose

    Jose,
    As far as I understand you are trying to use the "Read Master Data" option with Time dependency that was available in the Update Rules.
    If that's correct, here are the steps:
    Eg: Assume 1. 0REGION is a time dependent attribut of 0CUSTOMER.
    2. Data Src fields: KUNNR, DATE
    3. Cube: 0CUSTOMER, 0CALDAY, 0REGION
    Your transformation should look like:
    KUNNR=0CUSTOMER
    DATE=0CALDAT
    For 0REGION click to create the mapping:
    Choose Rule Type = "Read Master Data"
    In the "Source fields of Rule":
    Add the fields KUNNR & DATE using the "+" button.
    In the IO Assignment column, enter 0CUSTOMER & 0CALDAY and hit Enter.
    Now in the "Source Info Object" field to the rt of Rule Type, select 0Customer using F4 help. Since it is time dependent on 0CUSTOMER, the clock icon will appear. Click on the clock button and select 0CALDAY from the F4 help.
    It should work. Has worked for me (Data src to ICube directly)
    For ODS use the export data source.
    If it still doesn't work there are 2 more options:
    1. Write a small routine/formula to read the values (as Ingrid had suggested). OR
    2. Use it as a Nav Attribute (if the Attribute is a Characteristic) or as a Disp Attr (if the Attribute is a Key Fig). Then use the Key date of the query to calculate time dependency.
    (By default key date = Syst date; if you need custom date, use variable exit)
    That's all I can think of.
    Hope it helps.
    - Vishno.

  • Modify code to pull the time dependent master data

    I fully under stand the suggestion below for the requirement to add the time dependent attribute comp code
    thanks fo rthe help but please tell me if there is a way i can modify the abap code and make the user enter the value for the date on which he want to pull th emaster data for company code or keydate to and from and pull the master data, so how will i proceede should i create the variable on 0doc_date and how to modify the code. please help . i have opened another question with same desc as above to assign points
    thanks
    soniya
    The literal within <..> is supposed to be replaced by the actual field name (as I didn't know the fields). In this case, I am changing your code for costcenter/company-code.
    data : wa like /bi0/qcostcenter.
    select single * from /bi0/qcostcenter into wa
    where costcenter = comm_structure-costcenter
    and objvers = 'A'
    and datefrom le comm_structure-<keydatefield>
    and dateto ge comm_structure-<keydatefield>.
    if sy-subrc = 0.
    result = wa-comp_code.
    endif.
    abort = 0.
    You can use this code for update rule of company_code. You have to replace '<keydatefield>' with a field name that contains the date on which the company is to be derived. If there is a date in your comm_structure (eg aedat) which you can use, you can specify that field in place of this literal (instead of comm_structure-<keydatefld> use comm_structure-aedat). If you have no such field, and you wish to use current date for getting the company code from time-dependent master data, you can use sy-datum (ie replace comm_strucutre-<keydatefld> with sy-datum).
    And it should work.
    The 'master data attribute' option is one of the options when you create update rule (one of the radio button options).

    That the code is doing anyway.
    If your txn data in the cube doesn't have a date, how does it know it is Feb data, or, it is March data?
    If it has a date or month field, you should modify and use this code to update the company based on that date instead of system date.
    Other than that minor variation, it is already doing what you look for.

  • Restricting time dependent records on employee master data in BW

    Experts,
    We have a Future hire report which gets data from 0Employee. Now whenever hire date of an employee is getting assigned in case of new hire  record get's created in BW.
    Now, due to some reason this new hire employee is not able to join on the hire date first assigned to him and new hire date is updated in PA30 for this employee in ECC.
    This would create a new record in BW with new hire date for this employee which is valid in BW from the date it moved into BW till 9999 and the previous record 'Valid To' date is changed to previous date of the "Valid From" date of newly entered record.
    Now all these records has moved into Multiple Cubes also therefore we cannot delete these records from Master data until transaction data is delete.
    Client HR team is saying that previous records of all such employees are not valid , so they should not appear in BW reports even if they are running this report on historical dates.
    0Employee is time dependent master data. So it makes sense to have one records for any actions done for an employee in HR system.
    Cleaning up a master data for all such employee would be a tedious task and need lot of effort.
    Is there any way , we can restrict previous records of all such employee , so that they do not appear in BW report in case users are going to run the report previous dates.

    We were doing this activity as part of weekly house keeping job. Weekly we get list of invalid PERNR records from ECC team.
    While deleting particular PERNR (say 10015824) from 0EMPLOYEE, and the log (SLG1)says, SID exists in DIM table (like /BIC/D0PA_C011).
    First delete that PERNR (10015824) from cube (0PA_C01)
    Use Tcode RSRV --> Tests in Transaction RSRV  --> All Elementary Tests --> Transaction Data --> Entries Not Used in the dimension of an InfoCube (Dbl Click)
                 From the right side window, expand “Entries Not Used in the Dimension of an InfoCube” Node &
                 Enter InfoCube (like 0PA_C01), click “Transfer”
                 Now, click “Execute” (Toolbar)… and the results displayed in the right side window..
                 Now, click “Correct error” (Toolbar)
    Now, try to delete same PERNR from 0EMPLOYEE, and if the log says SID used in some other DIM table, follow the above process.
    If the log says, the SID used in DSO/Cube, then goto manage (of DSO/Cube) and do the selective deletion.

  • Navigational attribute issue-time dependent

    Hi all,
    I am working with 0PA_C01, I included some additional navigational attribute(time dependent )to 0employee, but when i am checking all these navigational attribute at cube level or Report  , i can find only the latest values ,for eg i added  Designation as a time dependent navigational attribute for 0employee, and the designation for a employee is changing after 12.2008 from VP to SVP ,at the cube   and also in the report  i can find only the latest designation for all the calmonth ie before 12.2008 also  as SVP .
    I checked  the the time dependent Navigational attribute option to make designation as a time dependent navigational attribute ,and also ran the attribute change run .
    Can anyone suggest some information to fix it?
    Thanks
    Sandhya

    Dear Sandya,
    Results correct only in your report. Time dependent attributes displyas data based on keydate. if no key date specified, system takes current date as key date and displays data.
    So in your case latest data displaying. If you want to see any historic designations, you need to specify key date, which shold fall into that particular range.
    Create a User entry variable for keydate and use.
    Key date
    Each query has a key date. For time-dependent data, the key date determines the time for which the data is selected.  The default key date value is the date on which the query is executed, that is <Today>.
           1.      Click on the Key Date field. A dialog box with a calendar appears for you to select your key date.
           2.      Select a date from the calendar. If you select 01.01.1999 for example, time-dependent data is read from the 01.01.1999.
    Note
    The key date applies only to time-dependent data.
    Check: [Query Properties|http://help.sap.com/saphelp_nw04/Helpdata/EN/07/0ab63c71f41d5ce10000000a114084/frameset.htm]
    Srini

  • Why time-dependent not work for cost center and profit center hierarchy

    Has anybody been able to successfully turn on time-dependent for cost center hierarchy? Looks like the R/3 datasource 0COSTCENTER_0101_HIER is defaulted to be NOT time-dependent, and I don’t know how to change the R/3 configuration to enable time-dependent for this datasource.
    Here is what I found. If you go to RSA2 in R/3 and enter datasource 0COSTCENTER_0101_HIER, and then select "Hierarchy Info", you will see that all the time-dependent properties are unchecked by default. By comparison, Cons Unit datasource 0CS_UNIT_CSCU_HIER has “Version Dependent Hierarchy” as selected, and we are able to load Cons Unit hierarchy as time-dependent, but have no luck so far with the Cost Center hierarchy.
    Can any BI guru tell me how I can make time-dependent work for the cost center hierarchy?
    Thanks a bunch!

    Check SETLEAF and SETNODE.
    Basically CO Master data groups dont have seperate tables. They will be available in above tables. Choose proper Set class to filter the results

Maybe you are looking for

  • Newest 8-core Mac Pro won't always wake from sleep.

    Recently I have been experiencing my Mac Pro not always waking up from sleep. It is a 2.4 Ghz 8-Core running Snow Leopard. I am using a USB keyboard and a Bluetooth mouse. I am noticing that it is becoming more frequent and it's starting to worry me

  • Item description mixed up

    hi i have a strange problem. i see that there are two items which have their descriptions mixed up. the description comes up correctly on the sales order. however, they are interchanged on the delivery screen. it is interchanged in the picklist as we

  • Dealing with a snow scene

    I am trying to help my wife deal with snow scenes in her greeting cards.  I can fine tune a picture with a lot od snow in it so that it looks good on my monitors, but when she prints in on card stock it is not so good.  The snow usually has no detail

  • CANNOT Upload bootstrap.xml

    Hi : MY DB is oracle 9 with nls_lang PORTUGUESE_PORTUGAL.WE8MSWIN1252 WIRELESS Schema was created but there's no data in it. When trying to upload bootstrap e got error: C:\oracle\iSuites\panama\sample>upload bootstrap.xml Using Java VM version java

  • Leopard won't install on 1.07 Ghz machine

    Hello all. I get a message saying that Leopard cannot be installed on this machine when I attempt to do so on my 1.07 Ghz 1.25 GB RAM iBook. I was sure that it qualified for the upgrade. Any help will be greatly appreciated Thanks, John