Surrogate date keys

Hi,
For example, in the "Human resources - compensation" subject area there are a number of date items in the Employee Attributes area. These dates are stored numbers and are surrogate keys to the time dimension. I was just wondering how I can get these items to displays as dates rather than numbers in an Answers report.

Most of the fact tables in OBIA have surrogate keys (_WID) that are integers and also DATE fields..you should use the DATE fields for the reporting..not the _WIDS.  What specific attributes are you looking for in Compensation that you cannot find?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to fill date key figure with system date?

    Dear All,
    We would like to set on specific action (button press) to assign current system date top a date key figure within our infocube.
    Any idea how to achieve this?many thanks in advance for any idea!
    Kind Regards
    Olivier DESFOUR

    Dear Khaja,
    I'm not exactly using an update rule, i'm using Integrated Planning component.
    Customer would like to set this key figure on user action; ie for example
    user validate a step within planning process by pressing a button on workbook.
    then system is stamping system date within cube.
    Hope it helps
    Kind regards
    Olivier

  • Check Duplicate data during data key-in Multi Record Block

    Dear all,
    I have a situation where i have to check duplicate data entry(on a particular field,which is a mandatory field,i.e. it cannot be skipped by user without entering value) while data key-in in a Multi Record block.
    As for reference I have used a logic,such as
    1>In a When-Validate-Record trigger of that block I am assigning the value of that current item in Table type variable(collection type)
    as this trigger fire every time as soon as i leave that record,so its assigning the value of that current time.And this process continues
    then
    2>In a When-Validate-Item trigger of that corresponding item(i.e. the trigger is at item level) has been written,where it compares the value of that current item and the value stored in Table type variable(collection type) of When-Validate-Record trigger.If the current item value is matched with any value stored in Table type variable I am showing a message of ('Duplicate Record') following by raise_form_trigger failure
    This code is working fine for checking duplicate value of that multi record field
    The problem here is that suppose if usee gets a message of ('Duplicate Record') and after that without saving the values if user try to query of that block then also when validate item fired where as I am expecting ORACLE default alert message('Do You want to save?'),I want to restrict this When-Validate Item fire during query time..........................while user try to query.
    Please give me a meaningful logic or code for solving this problem
    Any other logic to solve this problem is also welcome

    When-Validate-Record trigger
    When-Validate-Item triggerThat smells like Oracle Forms...
    And the Oracle Forms forum is over here: Forms

  • Posting date  = Key date

    hi all,
    i am a beginner to sap bw, and learning FI AR.  for the 0FIAR_c03_q005 query, they use the posting date <= Key date. I didn't understand the meaning of posting date and key date.
    can you help me?
    thanks

    SKB
    Check this for more info on Key date
    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.      Choose  . The Date Selection dialog box appears.
           2.      Choose a date from the calendar and use the arrow button to add it to the selection window on the right. If you select 01.01.1999 for example, time-dependent data is read up to 01.01.1999.
           3.      Choose OK.
    You can also select a variable key date:
           1.      In the Date Selection dialog box, choose the Variables tab page.
           2.      Choose a variable and use the arrow button to add it to the selection window on the right.
    In the selection, you may need to know the technical names of the queries as well as their descriptions. In the Description window on the left hand side, choose Technical Names from the context menu (secondary mouse click).
    If you want to create a new variable, in the Description window on the left-hand side, choose New Variables from the context menu (secondary mouse click). The Variable Wizard dialog box appears, where you can create new variables .
    If you want to change a variable, in the Description window on the left-hand side, select the variable and choose Change Variable from the context menu (secondary mouse click). The Variable Editor dialog box appears, where you can change variables .
           3.      Choose OK.
    The key date only applies to time-dependent master data.
    Hope this helps
    Thnaks
    Sat

  • Is it possible to change a master data key ?

    Hi Experts,
    i'd like to know if it is possible in any way to change/update the key of a master data table.
    Reason: All of our projects have a certain nomenclature. Now I realized one project that does not follow that nomenclature and would like to change it accordingly (0PROJECT -> /BI0/PPROJECT).
    The connection to the cubes is through SIDs, therefore I cannot remove the current record in the master data table and create a new (the correct) one.
    I also cannot reload the cube after I possibly had changed the master data table.
    For me, the simpliest would be to just update the key portion in /Bi0/PPROJECT and I think modern database systems would allow this (we are running BI on top of DB2), but may be I'm wrong.
    I tried the update in the maintenance dialog in RSA1. Stupid enough it allows me to change the key and even the subsequent Save would work. However, by opening the table afterwards again, the old (worng) values are displayed again.
    Would someone know how this could work ?

    Hi,
    Are you trying to change the value  of a master data key for a particular record in the P table?
    if this is your requirement, then the answer is NO. i don't think so..changing it manually doesn't help you.
    I suggest you to load the same record from your source system with new master data key value and all other attributes with the same data as the old record.
    Now you will have two records in your P table( one with the old value and another with the new one)
    There is no harm in having the old record in your P table...deleting of any master data is risky and not appreciable ( but possible)
    You need to use this new master key value in your transaction loads which will intrun connect to the master data using SIDs
    By using the new value in your transaction loads, the old one will not visible in any of your reports...but will just sit in the P table with no use, which is still fine for you.
    However, to laod this new value (in both master and transaction data) you need to get in touch with the functional team.
    Modifying the data manually in BI/BW ( Unless there is an invalid data from source to PSA) will lead to inconsistencies and reconciliation issues. - NOT Advisable
    Regards,
    Sudheer
    Edited by: Sudheer Kumar Kurra on Jan 26, 2011 7:21 PM
    Edited by: Sudheer Kumar Kurra on Jan 26, 2011 7:24 PM
    Edited by: Sudheer Kumar Kurra on Jan 26, 2011 7:54 PM

  • Multiple Date Keys in a Fact Table

    Do you guys see a problem with having multiple date keys (all date keys are referencing one date demension table) on a fact table?
    RESERVATION_DATE_KEY
    SHIP_DATE_KEY
    CONTRACT_DATE_KEY
    SHIP_DATE_KEY
    CANCEL_DATE_KEY
    APPLICANT_KEY
    BRANCH_KEY
    ENLST_CAT_KEY

    Nope, this is 100% natural for the type of fact table you are building. Happens all the time.
    Scott
    use the "role" to define the multiple ways the time dime is used.

  • Do surrogate dimension keys duplicate data in the AW?

    According to AWM, level-based hierarchies must have unique dimension values across hierarchies (correct me if this is not accurate).
    So a dimension with two or more hierarchies that share common leaf-level dimension members will essential duplicate (or triplicate) that member in the analytic workspace,
    Does this then mean that data for a 'single' dimension value gets written to three separate surrogate dimension values in the AW cube?

    All these 3 hierarchies are level based hierarchies and hierarchies 2 (P&L) and 3 (BS) are subsets of main hierarchy 1 (TB).
    There should not be any duplication if you use generic level identifiers for the levels of the hierarchies instead of using the actual member names which (kind of) represent the levels.
    Try
    TOT level for "Total" in Main hierarchy
    ELEM level to represent the generic level containing members: "Profit" and/or "Balance Sheet"
    => Use level to represent L2 in Main containing "Profit" and "Balance Sheet"
    => Use level to represent L1 in P&L containing "Profit"
    => Use level to represent L1 in BS containing "Balance Sheet"
    LEAF level to represent the leaf level in each hierarchy
    => Use level to represent L3 in Main containing "Gross Profit", "Expenses", "Assets" and "Liabilities"
    => Use level to represent L2 in P&L containing "Gross Profit" and "Expenses"
    => Use level to represent L2 in BS containing "Assets" and "Liabilities"
    3 Hierarchies
    Main: LEAF -> ELEM -> TOT
    P&L: LEAF -> ELEM
    BS: LEAF -> ELEM
    There wouldnt be any duplication in this case.
    In fact the Profit member in Main hierarchy and Profit Member in P&L hierarchy would be the same in all respects (All attributes including Name, Desc, Fact Value stored against the member). The front end or UI will not be able to distinguish b/w the member in different hierarchies w/o regard to the context of the report and/or additional reporting metadata.

  • Problems Engineering Surrogate Primary Key with Unique Key

    SDDM 3.3.0.747 with 2 problems (at least so far).  I am hoping that the problem is with this SDDM rookie and I have overlooked some setting. PROBLEM 1 I don’t want to start a religious debate about surrogate vs. natural keys but I am having a problem engineering both correctly from the logical model.  I am a rookie when it comes to SDDM but have many years of experience with Designer. By default I like to have both a natural UID  (UK) and a surrogate key based primary UID (PK) which is used for foreign keys.  The problem I am having with engineering is I can successfully engineer the surrogate PK’s, engineer the FK’s using the PK’s but cannot get the unique key to contain the surrogate keys in the child table.  If I check the identifying property in the relations, the PK columns and the UK columns are included in the child PK and the UK contains no columns. The Setup I have defined two reference entities, PROBABILITY and SEVERITY with natural unique keys defined.  I also have a child entity RISK_ASSESMENT with relationships back to the PROBABILITY and SEVERITY entities and both have the “Use surrogate keys:”: check box checked.  The unique key for the RISK_ASSESMENT entity includes the relationships back to PROBILITY and SEVERITY.  None of the entities have a PK or surrogate key defined and they all have the “Create Surrogate Key” check box checked.  In addition the following preferences are set: Data Modeler/Model/Logical   NOT Checked - Use And Set First Unique Key As Primary Key   NOT Checked – Name – Keep as the name of the Originating attribute   Checked – Entity Create Surrogate Key   Checked – Relationship Use Surrogate Key PROBLEM 2 When the foreign key columns are engineered I want the names to have a prefix “FK_” but they don’t.  Templates are set as follows: Data Modeler/Naming Standard/Templates   Foreign Key:  FK_{child}{parent}   Column Foreign Key:  FK_{ref column} Engineer to Relational Model/General Options   Checked - Apply name translation Marcus Bacon

    I have been switching between SD 4 EA1 and SDDM 3.3 trying to get things to work and trying out the template table for adding audit columns (really nice!).
    Concerning Problem1.  No matter what settings I use and whether I use SDDM 3.3 or SDI cannot get the FK columns to be included in the UK even though the relations are included in the UID in the entitty.  When I open the properties of the child table and click on the naming standards button and click ok it complains that the UK is not complete.  I add the FK columns to the UK and all is well including the naming standards.
    Concerning Problem 2.  Sometimes it engineers the names for FK's from the template and sometimes it doesn't.  Didn't see a pattern.  Gave up trying and used Naming Standards button.  I still had to change a few.
    The good new is, that after make changes needed in UK's and Column names of 18 tables, I know have everything deployed to Test except FK Indexes.  I think I have to do those by hand.
    Marcus Bacon

  • Data Extraction and ODS/Cube loading: New date key field added

    Good morning.
    Your expert advise is required with the following:
    1. A data extract was done previously from a source with a full upload to the ODS and cube. An event is triggered from the source when data is available and then the process chain will first clear all the data in the ODS and cube and then reload, activate etc.
    2. In the ODS, the 'forecast period' field was now moved from data fields to 'Key field' as the user would like to report per period in future. The source will in future only provide the data for a specific period and not all the data as before.
    3) Data must be appended in future.
    4) the current InfoPackage in the ODS is a full upload.
    5) The 'old' data in the ODS and cube must not be deleted as the source cannot provide it again. They will report on the data per forecast period key in future.
    I am not sure what to do in BW as far as the InfoPackages are concerned, loading the data and updating the cube.
    My questions are:
    Q1) How will I ensure that BW will append the data for each forecast period to the ODS and cube in future? What do I check in the InfoPackages?
    Q2) I have now removed the process chain event that used to delete the data in the ODS and cube before reloading it again. Was that the right thing to do?
    Your assistance will be highly appreciated. Thanks
    Cornelius Faurie

    Hi Cornelius,
    Q1) How will I ensure that BW will append the data for each forecast period to the ODS and cube in future? What do I check in the InfoPackages?
    -->> Try to load data into ODS in Overwrite mode full update asbefore(adds new records and changes previous records with latest). Pust delta from this ODS to CUBE.
    If existing ODS loading in addition, introduce one more ODS with same granularity of source and load in Overwrite mode if possible delta or Full and push delta only subsequently.
    Q2) I have now removed the process chain event that used to delete the data in the ODS and cube before reloading it again. Was that the right thing to do?
    --> Yes, It is correct. Otherwise you will loose historic data.
    Hope it Helps
    Srini

  • Conditions: Variables on date key figures

    Dear Sirs,
    I am trying to create a condition on a key figure of type date (subtype: dats). I want the user to select a date interval for this condition, using variables.
    The problems seems to be that the variable input screen thinks the user should enter an amount and not a date. If I enter a date in the variable then no data is beeing displayed.
    So how can I get the variable to understand that the input is a date ?
    Has anyone done what I try to do sucessfully.

    Hello Rakesh,
    thanks for your input. However, I am not able to get it to work.
    I create a condition on the key figure "date". I use e.g greater than. Then create a variable with replacement path to 0CALDAY, and transfer the condition.
    When I run the report I get the following error.
    Termination message sent
    ABEND BRAIN (418): Variable VAR_20080128112329 (D2LEOFV2P3JFW0YWPGXBKJ53A) does not exist or is incorrectly used 4 D2LENS95OIB2G5DTW28S323D2
      MSGV1: VAR_20080128112329
      MSGV2: D2LEOFV2P3JFW0YWPGXBKJ53A
      MSGV3: 4
      MSGV4: D2LENS95OIB2G5DTW28S323D2
    Have you managed to solve the excact same requirement?
    regards,
    Jørgen

  • The attribute is 'Date Key'. Errors in the OLAP storage engine:

    I have a Datetime column in my source table 'LastUpdatedDateTime' in this format  '2012-08-15 14:58:42.467' and I have converted to integer using (YEAR(LastUpdatedDateTime) * 10000) + (MONTH(LastUpdatedDateTime) * 100) + DAY(LastUpdatedDateTime)
    in my Fact table  in the SSIS using a derived Column. Now when I run it in the SSAS I get an error
    Erors in the OLAP storage engine: The attribute key cannot be found when processing: Table: 'Fact table', Column: 'LastUpdatedDateKey', Value: '20120815'.
    Ebenezer

    Hi Ebenezer,
    This error occurs when the Value: '20120815' is missing in dimension but available in Fact, probably in Date dimension in your case.
    Have you converted the Datekey in Date dim to same format ?
    If converted please check whether Value: '20120815' is available in Date dimension table.
    Saurabh Kamath

  • Calculation based on date key figures in BEx

    Hi Friends,
    Hi Friends,
    I need to creat report for sales order data, which involved the calculation based on dates.
    In my cune iam having the data at the granual level with the dates as key figures. the calculation that i need to do is VTW = Actual PGI date - Customer want date.
    1) whn i run the report at the granual level my VTW is working correctly. No issues.
    2) when i run the report at higher levels the date fields are updated with X, as the system is unable to aggrigate the dates. The dates are at the material level in  a sales order. I need to show the VTW at the sales order level (each one of the two dates are same for all the materials). So, when i run the report with out mataril at the sales order level...i wanto sea the bothe date fields in a single line and also the VTW calculated as the different between throse two dates.
    3) Once we get the VTW correctly at the sales orde level. if i drill down the report for material, i want to sea both the dates in every record againest the matarial, but the VTW only aginest the first record...that is againest the sales order. I dont waht the VTW value repeated/duplicated for all the records againest the sales order,as VTW makes sence only at the Sales Order level.
    Please suggest me hwo i can achive the resulsts by meeting both Point 2 and 3.
    Thanks for ur help...in advance.
    Thanks,
    Renu

    Hi..
    I have the data from the extractore and in the cube as below.
    SALES ORDER    ITEM                MATERIAL            DATE1                         DATE2
    101                        Item1               Mat1              01/01/2010                15/01/2010
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                       Item3                Mat3             01/01/2010                15/01/2010
    I need the reports as below...
    Report1:
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                        01/01/2010                15/01/2010                14
    currently iam getting this Report1 output as below...
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                             X                                   X                           42
    Report2: Out put required as below
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                   I     tem3                Mat3             01/01/2010                15/01/2010
    currently iam getting this Report2 output as below...
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010               14
    101                   I     tem3                Mat3             01/01/2010                15/01/2010               14
    As VTW is need to be measued at the sales order level and we always have the DATE1 & DATE2 as same for all the itesm, it should be shon as only 14 in the first record. It mean once iget the required output from Report one in a single line with VTW as 14, it should not repeat with every line , when i dril down the report for Items or materials.
    Even if i can generate oly report2 as required in a single sheet ...that will be enough.
    Plas kindly provide some solution as how we can achieve this,
    Thanks,
    Renu

  • How to use exception for a Date Key Figure

    Hello All,
                    I have the following requirement.
    1. I have a Key Figure which is Date Type.
    2. I need to color the cell to green if the it is filled with date otherwise leave it as it is.
    Please suggest how to overcome it.
    Thanks & Regards,
    Rajib

    hi,
    Your requirement is not clear, you have the below setup
    I have the following requirement.
    1. I have a Key Figure which is Date Type.
    How can a KF be of date type, or is it the value of a date characteristic that you have extracted in KF using formula variable. If yes you just need to define exception for the value greater than 0.
    regards,
    Arvind.

  • Condition formula variable on date key figure

    Hello, I would be grateful for any help on this
    I want to have a condition that has a user input formula variable
    But the Key Figure on which I want to base the condition is a Date
    And when you create the formula variable it allows only the following Dimensions :
    Amount
    Number
    Price
    Quantity
    ie Date is not one of the allowable Dimensions - is there any way round this apart from an Exit variable ?
    thanks
    Jon

    Hi,
    You have to create a formula variable with replacement path based on the date you want.
    so that you can get the date for calculation.so you can apply condition.
    check the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    Regards,
    Ranganath

  • How to store data,key,cert,... in javacard

    I'm newbie in javacard
    I develop it by use RMI model
    I develop to similar EMV specification but don't exactly
    EMV spec told me that data element such as KEY, CERT,COUNTER,ExpirationDate,...anything. will be keep in file , with tree structure.
    above is not importance
    I try to understand: How to save file into javacard?
    I read a lot of help and manual from sdk , this website ,forum
    and I feel it's impossible to save file (such as text file *.txt, photo file *.jpeg,*.gif) into javacard directly,
    Is my understand correct?
    I try to understand PhotoCardApplet Demo that come with sdk
    run it , have fun with it, try to understand code
    I saw the demo bring the pictures file from reader-side save into card to the "Object" of byte[]
    Is there just only one way to keep KEY,CERT,..DATA in Object in the applet?
    Can it possible to seperate these data away from applet and keep it individual? ( seperate applet , text file ,photo file ,... keep in javacard)
    And if it possible plz tell me how to do it with detailed.
    thx for every answer.

    EMV spec told me that data element such as KEY,
    CERT,COUNTER,ExpirationDate,...anything. will be
    keep in file , with tree structure.That is the file-system part of an EMV smart card. That has nothing (directly) to do with java cards. Most java cards has a file system part, too but that isn't accessible from within the java card applet.
    I try to understand PhotoCardApplet Demo that come
    with sdk
    run it , have fun with it, try to understand code
    I saw the demo bring the pictures file from
    reader-side save into card to the "Object" of
    byte[]
    Is there just only one way to keep KEY,CERT,..DATA
    in Object in the applet?
    Can it possible to seperate these data away from
    applet and keep it individual? ( seperate applet ,
    text file ,photo file ,... keep in javacard)
    No, loading data into the memory which belongs to your java card applet instance makes the data become a part of the applet. If you delete the applet all stored data will be deleted, too.
    You can only separate different objects within your applet by using separate byte-arrays or other java card objects.
    Jan

Maybe you are looking for