SCD - source sets where multiple changes exist for the same natural key

I am using the Oracle SCD type2 method (end date old record and insert the new record) which was working fine until my source set contained multiple changes for the same natural key. Does anyone know of a way to handle this?
Thanks

Hello,
I think, the way of handling multiply changes of NK is totally depend on business requirements for your project.
There could be number of approaches for this. For example:
- all changes but the last are considered active during one day, going subsequently right after previously existed SCD record;
- all changes but the last are considered “active” depending on its occurrence within “fact” data (as far as you consider NK change based on some attribute set - probably some of attributes show themselves within “fact” data)
- etc.
So, make an agreement upon this with your customer – and ETL design decision will follow immediately.
Sergey

Similar Messages

  • Multiple shipping addresses for the same supplier (depending on the symbol)

    Hello ,can we set up multiple shipping addresses for the same supplier (depending on the symbol)?
    .& How..
    Thanks

    a delivery adedress has nothing to do with a certain supplier, except you are talking about subcontracting (do you?)
    a delivery address specifies an address where you want the supplier to send the goods to.
    if it is a third party PO, then the delivery address is derived from ship-to partner of the sales order.
    in case of a standard order to stock, the delivery address is coming from the storage location address (if maintained). if no storage location address is maintained, then SAP takes the address from your plant.
    You can manually add a delivery address in MEAN transaction and then manually assign in POs delivery address tab.
    here you can as well take the address from any address already in your system (e.g. any customer or vendor).

  • Same material can exist on multiple line items for the same order.

    Hi
    Is there any specific customising setting or web shop setting through which we can restrict user to add same material on multiple line items for the same order ?
    Regards

    No.
    But if this is a must requirement, you can do an elaborate check during order save in ORDER_SAVE BAdI and return error. So, it will be only during order save.
    Eawar Ram
    http://www.parxlns.com

  • Multiple info records for the same material record in the catalog

    Hi Guys,
    I have got sort of a puzzle I can not solve at the moment, maybe some one can help me to solve it. The situation in our system landscape  is as follows:
    Systems:
    SRM 5.0 (Classic implementation scenario)
    ECC 6.0
    SRM-MDM 2.0
    PI 2005
    Material master is maintained in R/3 and the materials are replicated to SRM. From SRM we replicate all materials to the catalog repository in  SRM-MDM.
    As the material master in R/3 is vendor independent, the materials replicated to SRM also have no vendor attached. For the first initial material replication from SRM to the catalog SRM-MDM this also means that the products in the main table of the repository, u2018catalog positionsu2019, will not have a vendor or vendor number attached (i.e. no reference to a source of supply).
    To assign a source of supply in the repository to a product (record) we will use info records which are replicated from R/3 to SRM-MDM.  The mapping for this in the Import Manager can only be based on the product number. As this is the only unique value available which can map a info record to a already existing (but vendor less) ptoduct item in the catalog.
    As long as every item in the repository has only one unique info record, meaning one source of supply with a specific price, there is no issue in the above scenario. Based on the product-id, the info record data will be matched with the material item in the catalog.
    The issue for me arises when multiple info records exists for the same material. The info records can heave different vendors and different prices. All possible vendors should be available in the catalog for the same material (at least this is the requirement ). 
    At this point the product-id will no longer be an unique value. Importing the info records will cause problems, as only one material record is available in the repository for the specific product-id (remember that when doing a initial replication of the material master to the catalog, no vendor data is replicated).
    Does anyone had this issue before, and knows a solution? Is it for example possible during the import of the info records in the Import manager, to duplicate material records in the destination data, based on the number of info records available in the source data for the same product-id. Or is there an other solution that I am missing?
    Your help would be appreciated!
    Regards,
    Skander

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • Multiple Plants in MIRO - Multiple plants exist in the same invoice

    Dear All,
    When i am doing the invoice processing in MIRO, eventhough i have not entered the PO number, with the basic details like Invoice date, posting date, Amount , currency and Invoicing party, the system issues an error message "Multiple plants exist in the same invoice". Could you please anyone suggest me what is the real issue and route cause for this error.
    Many Thanks,
    Panneer

    Hi,
    Please check SAP Note 1571695 - 8I820 error message in MIRO transaction for the same.
    Summary
    Symptom
    In MIRO transaction, during invoice verification, system prompts an error message as "Multiple plants exist in the same invoice".
    This error will be prompted in scenarios where service tax is applicable and multiple plants exists in the same invoice.
    Other terms
    Transaction MIRO , BADI J_1I_MM_SER_CAT_DETERMINE, 8I820, 820, multiple plants, plant, error, MR11, BAPI, FI.
    Reason and Prerequisites
    Program error.
    Solution
    Apply the code corrections present in the Note.
    Regards,
    Sandesh Sawant

  • How do i set up multiple iCloud accounts on the same mac?

    how do i set up multiple iCloud accounts on the same mac?

    Interesting - I was sure I'd seen a note somewhere that it was only Mail, but this article:
    http://support.apple.com/kb/ts4020
    does say
    Your secondary iCloud accounts can be set up and viewed in Settings > Mail, Contacts, Calendars on your iOS device, or Apple () menu > System Preferences > Mail, Contacts, Calendars on OS X Lion. You may choose to do this if you have a second iCloud account and need to access its Mail, Contacts, or Calendar data. 
    Note: While you can configure multiple iCloud Mail accounts in iOS, Push mail will only work for the primary iCloud account in iOS. Secondary account(s) will check for mail based on the settings in Settings > Mail, Contacts, Calendars > Fetch New Data.
    It's not something I can test - I suppose the second account's data gets added to the lists in iCal and Address Book?

  • MIRO: Multiple plants exist in the same invoice

    Hi,
    We are posting the MIRO against a Purchase Order.
    There are two line items in a PO.
    Both line items have different plants.
    We have posted separate Goods Receipts for both the line items.
    Now, at the time of posting MIRO system is giving an error message as 'Multiple plants exist in the same invoice (Message no. 8I820).
    Please guide, what can be done?
    Regards,

    Hello
    Seems to be Message 8I 820 configured with reference to the Excise postings.
    Since both the Plants having different Excise registration, Requesting you to post two separate invoices.
    warm regards
    Ramakrishna

  • Multiple plants exist in the same invoice - Error

    Dear All,
    When i am doing the invoice processing in MIRO, eventhough i have not entered the PO number, with the basic details like Invoice date, posting date, Amount , currency and Invoicing party, the system issues an error message "Multiple plants exist in the same invoice". Could you please anyone suggest me what is the real issue and route cause for this error.
    Many Thanks,
    Panneer

    Hi,
    firstly try to search the forum. It was asked before already.
    You may check SAP Note 1571695, maybe it's your case.
    Regards

  • Can I have multiple iTunes accounts for the same Ipod?

    Can I have multiple iTunes accounts for the same Ipod? What I mean is can I use multiple iTunes accounts through the same iPod for buying stuff?

    I believe you're limited to syncing DRM'd items from 5 different accounts.
    tt2

  • Ability to open multiple SQL Worksheets for the same connection

    Hi,
    Please allow the ability to open multiple SQL Worksheets for the same connection, now only one can be opened.
    Thanks

    Logged Bug 9000801 - ea1: otnforum: worksheet launcher does not remember the last/default connection
    -Raghu

  • UWL - System doesnt support multiple tasks assignment for the same assignee

    Hi all,
    we have some tasks coming from our back- end system. When a certain task needs to be substituted to a colleague, no problem ... for one task. When we wish to assign him a second task, we get following message :
    <i>System does not support multiple tasks assignment for the same assignee</i>
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/0b/1fc20097b74c41b38621ec2a9454bb/frameset.htm">help.sap.com - substitution</a> :
    <i> System does not support multiple tasks assignment for the same assignee 
    For example: User can only assign one task to an assignee at a time in workflow.
    Collaboration Task does not support other tasks at all.</i>
    Is substitution only limited to one task per person? What would be a workaround? It's possible to create for each combination of tasks a definition in the back- end which is available from the substition drop down list, but this is not what our customer would like to see.
    Many thanks,
    Kevin

    Hi Boris,
    we're using the WebflowConnector.
    Thanks,
    Kevin

  • E4200 v2 - Uses multiple MAC addresses for the same device

    This unit seems pretty good at first but on looking at the Web interface I noticed that it was using multiple mac addresses for the same device and showing devices on the lan on the Wireless side and other odd things.
    After a week of running it the home server network started to get erratic, it would seem to all point to dns and dhcp issues in the router.
    Seems the V1 had the same issues that they did not fix on this.
    The Cisco connect software shows 5 devices the Web based utility shows 3??.
    Its pretty bad that they charge nearly $200 and cannot be bothered to finish the unit or address the issues that were in V1.

    I am afraid I didn't get the clear picture of the issue mentioned in the post. Could you please elaborate a little bit? If you connect a device/computer wired and then later you connect it wirelessly. It is obvious that you would get to see two different MAC addresses for the same device, one for the LAN adaptor and other one for WLAN adaptor. If that is what you are referring to?
    Secondly, may I  know, what issues did you face with DNS and DHCP in the router? Is it not able to resolve the DNS or something else or DHCP is not sending IP address to the clients?

  • I was changed twice for the same app

    I was changed twice for the same app

    You can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • NEED DEMO FOR APPLE TV AT HOME SITE......... HAVE ANY IDEA WHERE I DO CALL FOR THE SAME...........

    NEED DEMO FOR APPLE TV AT HOME SITE......... HAVE ANY IDEA WHERE I DO CALL FOR THE SAME...........

    This is a user forum. I suggest you call Apple or visit your local store to ask.

  • Multiple Executions Plans for the same SQL statement

    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.
    Below is the awrsqrpt's output for your reference.
    WORKLOAD REPOSITORY SQL Report
    Snapshot Period Summary
    DB Name         DB Id    Instance     Inst Num Release     RAC Host
    TESTDB          2157605839 TESTDB1               1 10.2.0.3.0  YES testhost1
                  Snap Id      Snap Time      Sessions Curs/Sess
    Begin Snap:     32541 11-Oct-08 21:00:13       248     141.1
      End Snap:     32542 11-Oct-08 21:15:06       245     143.4
       Elapsed:               14.88 (mins)
       DB Time:               12.18 (mins)
    SQL Summary                            DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
                    Elapsed
       SQL Id      Time (ms)
    51szt7b736bmg     25,131
    Module: SQL*Plus
    UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(ACCT_DR_BAL,
    0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND TEST_ACC_NB = ACCT_ACC_NB(+)) WHERE
    TEST_BATCH_DT = (:B1 )
    SQL ID: 51szt7b736bmg                  DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> 1st Capture and Last Capture Snap IDs
       refer to Snapshot IDs witin the snapshot range
    -> UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(AC...
        Plan Hash           Total Elapsed                 1st Capture   Last Capture
    #   Value                    Time(ms)    Executions       Snap ID        Snap ID
    1   2960830398                 25,131             1         32542          32542
    2   3834848140                      0             0         32542          32542
    Plan 1(PHV: 2960830398)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            25,131       25,130.7     3.4
    CPU Time (ms)                                23,270       23,270.2     3.9
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,626,166    2,626,166.0    14.6
    Disk Reads                                      305          305.0     0.3
    Parse Calls                                       1            1.0     0.0
    Rows                                        371,735      371,735.0     N/A
    User I/O Wait Time (ms)                         564            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |                 |       |       |  1110 (100)|          |
    |   1 |  UPDATE                      | TEST            |       |       |            |          |
    |   2 |   TABLE ACCESS FULL          | TEST            |   116K|  2740K|  1110   (2)| 00:00:14 |
    |   3 |   TABLE ACCESS BY INDEX ROWID| ACCT            |     1 |    26 |     5   (0)| 00:00:01 |
    |   4 |    INDEX RANGE SCAN          | ACCT_DT_ACC_IDX |     1 |       |     4   (0)| 00:00:01 |
    Plan 2(PHV: 3834848140)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                                 0            N/A     0.0
    CPU Time (ms)                                     0            N/A     0.0
    Executions                                        0            N/A     N/A
    Buffer Gets                                       0            N/A     0.0
    Disk Reads                                        0            N/A     0.0
    Parse Calls                                       0            N/A     0.0
    Rows                                              0            N/A     N/A
    User I/O Wait Time (ms)                           0            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |              |       |       |     2 (100)|          |
    |   1 |  UPDATE                      | TEST         |       |       |            |          |
    |   2 |   TABLE ACCESS BY INDEX ROWID| TEST         |     1 |    28 |     2   (0)| 00:00:01 |
    |   3 |    INDEX RANGE SCAN          | TEST_DT_IND  |     1 |       |     1   (0)| 00:00:01 |
    |   4 |   TABLE ACCESS BY INDEX ROWID| ACCT         |     1 |    26 |     4   (0)| 00:00:01 |
    |   5 |    INDEX RANGE SCAN          | INDX_ACCT_DT |     1 |       |     3   (0)| 00:00:01 |
    Full SQL Text
    SQL ID       SQL Text
    51szt7b736bm UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL, 0) +
                  NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND PB
                 RN_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 )Your input is highly appreciated.
    Thanks for taking your time in answering my question.
    Regards

    Oracle Lover3 wrote:
    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.If you're using bind variables and you've histograms on your columns which can be created by default in 10g due to the "SIZE AUTO" default "method_opt" parameter of DBMS_STATS.GATHER__STATS it is quite normal that you get different execution plans for the same SQL statement. Depending on the values passed when the statement is hard parsed (this feature is called "bind variable peeking" and enabled by default since 9i) an execution plan is determined and re-used for all further executions of the same "shared" SQL statement.
    If now your statement ages out of the shared pool or is invalidated due to some DDL or statistics gathering activity it will be re-parsed and again the values passed in that particular moment will determine the execution plan. If you have skewed data distribution and a histogram in place that reflects that skewness you might get different execution plans depending on the actual values used.
    Since this "flip-flop" behaviour can sometimes be counter-productive if you're unlucky and the values used to hard parse the statement leading to a plan that is unsuitable for the majority of values used afterwards, 11g introduced the "adaptive" cursor sharing that attempts to detect such a situation and can automatically re-evaluate the execution plan of the statement.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

Maybe you are looking for

  • How can I edit the same photo in multiple LR catalogs?

    Hi Forumworld, I would like to edit the same photo in multiple LR catalogs. Before you say "don't", there are many reasons why I'd like to do this. I am a working professional photographer and LR is one of the many tools in my workflow. I essentially

  • Check box hint

    Hi all, I'm using Oracle Forms Builder 10GR2. I have a check box item. I want when it's checked to be non-updatable. So, i put logic in WHEN-CHECKBOX-CHANGED trigger : Value when checked : Y Value when unched : N   if           :<block>.<item> = 'Y'

  • LSMW Specify files--multiple files

    Hi , I have the data in two files. how can i specify these two files . i know we have to use the option wildchar in hte step "specify files" can anyone give me the exact procedure to do the same. Thanks in advance

  • Adding html into edge animate text box from external js file

    I have a text field in edge animate that I want to update with a score. The function that is used to click and update the score is in an enternal file so I'm trying to figure out how to get my edge animate div to be read by jquery in the external fil

  • Lenovo K3 Note - Firmware

    I have owned many Lenovo products which I have been very happy with, being satisfied with all their products I decided to purchase a K3 Note mobile phone. I was disappointed to find it was hacked when I purchased it and when I questioned the seller,