Creating a History via Mapping

Hi,
i´m not yet really experienced with Owb-Mappings and came accross a problem when trying to create a History of a Table.
Out of some reason i get inconsistent results.
In my Tables i´m using following structure:
ID (Primary_key) Key Datacolumbs valid_from valid_to aktive
123 01.01.2009 123 abcd 01.01.2009 01.01.2222 1
So when something in this Row changes, the old one should be updated and a new one created.
ID (Primary_key) Key Datacolumbs valid_from valid_to aktive
123 01.01.2009 123 abcd 01.01.2009 12.05.2009 0
123 13.05.2009 123 abcdefg 13.05.2009 01.01.2222 1
The ID is generated out of the Key and the valid_from timestamp.
In the Mapping im creating the new Datarows and am doing a MINUS with NEW_DATA i created via ETL and the the OLD_DATA from the Table im going to update.
The result should be the Datarows that are new or have changed.
Then im doing a JOIN of the NEW_DATA and the OLD_DATA over "new_data.key = old_data.key AND old_data.aktive = 1".
This way i should get the old version of the Datarows that have changed.
Then i give those 2 Results each a set of parameters, for the new/changed ones: valid_from = sysdate, valid_to = '01.01.2222', aktive = 1
and for the old outdated ones: valid_to = (sysdate-1), aktive = 0
This way parameterized i send dem into an UNION-Operator.
After the Union i have an Expression to create the ID (a simple concatenate of the the key and valid_from)
The result of that all should look like shown above, but instead i sometimes get
ID (Primary_key) Key Datacolumbs valid_from valid_to aktive
123 01.01.2009 123 abcd 01.01.2009 01.01.2222 1
123 13.05.2009 123 abcdefg 13.05.2009 01.01.2222 1
OR
ID (Primary_key) Key Datacolumbs valid_from valid_to aktive
123 01.01.2009 123 abcd 01.01.2009 12.05.2009 1
123 13.05.2009 123 abcdefg 13.05.2009 01.01.2222 1
if i use Update/insert (Match via PK).
Can you help me please where there is the error, i don´t get it.
It would be great if there was a "pest practise" how to do that.
Greetings from Germany
Martin

How can one post the screenshort of the maping on the forum? plz advice.Upload your image to any image hosting site (or your own website if you have it),
during forum message creation enclose full URL to your picture in exclamation mark (on message creation page on the right side you can find more tags for formating of message).
Martin, look at my variant of history mapping designed according Oracle SCD best practice:
!http://www.geocities.com/tsibulnyak/owb_scd2map.jpg!
Regards,
Oleg

Similar Messages

  • Trouble Creating Share Point via 'sharing' Command

    I'm having trouble creating a share point via the command line using the 'sharing' utility. Basically just trying to script the creation of a /WindowsShares/ share via SMB.
    Here is the command:
    <pre class=command>sharing -a /WindowsShares/ -n WindowsShares -s 001 -g 000 -i 00 -o 0 -t 1'</pre>
    It seems like everything works. <pre class=command>sharing -l</pre> shows this:
    <pre class=command>name: WindowsShares
    path: /WindowsShares/
    afp: {
    name: WindowsShares
    shared: 0
    guest access: 0
    inherit perms: 0
    ftp: {
    name: WindowsShares
    shared: 0
    guest access: 0
    smb: {
    name: WindowsShares
    shared: 1
    guest access: 0
    inherit perms: 0
    oplocks: 0
    strict locking: 1
    directory mask: 493
    create mask: 420
    }</pre>
    However, it doesn't seem to write anything to the /etc/smb.conf file... So nothing works.
    If I enter the following in smb.conf the share does work:
    <pre class=command>[WindowsShares]
    oplocks = 0
    map archive = no
    vfs objects = darwin_acls
    path = /WindowsShares
    read only = no
    strict locking = 1
    inherit permissions = 0
    comment = macosx
    create mask = 0644
    guest ok = 0
    directory mask = 0755</pre>
    However, even after entering this information - when I check 'Share Points' within WGM the share IS listed - but the 'Share this item and its contents' is NOT checked and thus, is confusing and can't be modified from WGM.
    Am I missing something when I am creating this share via the CLI?
    I assumed using 'sharing' worked the same way as using WGM and checking 'Share this item and its contents' - that works perfectly.
    I tried this with 10.4.8 and 10.4.9 Server (Universal).
    Any help would be appreciated!

    Hi Gary,
    Thanks for the reply...
    I ran the 'serveradmin' command to discover the SMB settings before and after the change via WGM. I restarted the SMB service as well...
    <pre class=command>S999EDC1:~ root# serveradmin settings smb:\*
    smb:encrypt passwords = yes
    smb:log level = 2
    smb:display charset = "UTF-8-MAC"
    smb:security = "ads"
    smb:deadtime = 5
    smb:hide dot files = "yes"
    smb:guest account = "unknown"
    smb:client ntlmv2 auth = "yes"
    smb:preferred master = no
    smb:defer sharing violations = "no"
    smb:adminCommands:homes = yes
    smb:adminCommands:serverRole = "domainmember"
    smb:adminCommands:ldapRole = "1.1 - hosting a master LDAP directory server\n"
    smb:allow trusted domains = yes
    smb:netbios name = "S999EDC1"
    smb:lanman auth = "YES"
    smb:vfs objects = "darwin_acls"
    smb:wins support = no
    smb:brlm = "yes"
    smb:max smbd processes = 0
    smb:server string = "S999EDC1 OS X Server"
    smb:os level = 8
    smb:domain logons = no
    smb:passdb backend = "opendirectorysam guest"
    smb:dos charset = "CP437"
    smb:realm = "EDU.CBE.AB.CA"
    smb:unix charset = "UTF-8-MAC"
    smb:auth methods = "guest opendirectory"
    smb:local master = no
    smb:domain master = no
    smb:map to guest = "Never"
    smb:use spnego = yes
    smb:printer admin = "@admin, @staff"
    smb:ntlm auth = "YES"
    smb:workgroup = "CBEEDU"</pre>
    The only difference was that smb:workgroup = "CBEEDU" and smb:log level = 2 were reversed. The settings were the same though. Thought that was odd.
    When making the change via 'sharing', there is no change.
    Is there any other documentation on 'sharing' other than the man page and CLI Guide from Apple? I haven't been able to find anything concrete.

  • Can't create correct routes in Maps

    Why is it that when I'm creating a route in Maps, the outcome varies dependent on how I created the route, thus using the same route parameters?
    I've created the same route using different ways of creating the route, and the created route is different every time.
    If I create the route in Maps using the search facility, the route is different if I use an address via the people and contacts interface. And again it is different when using Drive.
    I made the discovery when a suggested route made a 16.2 km de-tour on a 11 km stretch. More than a 100%. I'm now wondering if I dare to use NOKIA maps for my summer trip to Italy from Denmark.
    NOKIA -
    Please make a navigation app where I can define my own waypoints. This is essential in every navigation system.
    Please optimize the app, so I can choose an alternative route - this is basic in most modern navigation systems.
    Honest differences are often a healthy sign of progress. - M. Gandhi

    -Rich
    Thanks for your reply. Sorry for not writing phone model and software release.
    It is a Lumia 920 and I'm using Drive +Beta 2.1.0.1451
    I'm also setting the trip options like fastest / shortest, toll roads etc. In this particular case I'm referring to with, a D-tour of more than 16 km on a stretch of 12 km, it doesn't matter how I set my planning options - I'm getting the same result.
    Being well aware that the program makes some mistakes like this one, it would be nice to be able to plane the route in details by using waypoints. That is not possible at the moment with the present software by NOKIA.
    Honest differences are often a healthy sign of progress. - M. Gandhi
    Attachments:
    wp_ss_20130106_0001.png ‏168 KB

  • Create Functional Area via Job Architecture in Non-English language

    Dear Experts,
    We're running following environment.
    - Windows Server 2003 Std SP2 64bit (32bit conversion completed)
    - SAP ERP 6.0 EhP 4 Unicode system as back-end system for STVN
    - STVN 2.1 SP1 with Japanese Language pack
    - Language = Japanese and English
    - TREX setting is not ready (will be ready soon)
    The problem is we cannot create Functional Area via Job Architecture
    if we log on Job Architecture module with JAPANESE.
    (We can create Functional Area if we log on with ENGLISH)
    [Procedure]
    1. Launch Job Architecture module with Japanese
    2. Job Architecture => Create Functional Area (under Tasks)
    3. Key in [Title] and [Abbreviation], and then click [Add]
    4. Error message "Not able to load DLL or CLASS" appears
    I have already confirmed that if I do same thing with English,
    Functional Area was created in ECC environment.
    What settings am I missing?
    Best Regards,
    Masaya Iizumi

    Dear Luke and Eugene
    Thank you very much for the reply.
    I have understood that it is known issue for .NET platform for 2.1 SP1.
    I will communicate with Nakisa Support.
    Again, thank you very much for your kind cooperation.
    Best Regards,
    Masaya

  • Create AP payment via Cash Management

    Hi all,
    In EBS 12.1.3 i try to create an AP Payment via Cash Management Responsibility. But when the forms redirects me where i should create the payment - one of the field/BANK_ACCOUNT_NAME/ is populated by default with strange value. I suppose it should take the value from bank_account_name in the cash header. Instead of this it takes value for another bank/i'm unable to find the logic of taking exactly this bank account.../
    For example :
    In Cash - Bank acc name = A in Payables - B,
    In Cash Bank acc name = C in Payables - D
    and so on...
    Any ideas? Maybe some settings for creating AP Payments via the Cash Management responsibility?
    Thanks in advance,
    Bahchevanov.

    Hi,
    Please check in SM35 if your batch input session was executed successfully.
    Mani

  • Create Purchase Order via Upload.

    Hi,
    Our company have lost 4 months data due to some hardware problem. After hardware issue resolved we have to post all lost data. Therefore in MM module can it is possible that I can create PO order via BAPI program? We have four type of PO (Inventory, Assets, Changed off and IO). I got a BAPI function "BAPI_PO_CREATE1" can any body tell me how can I you this BAPI to create PO or Upload it?
    Thanks
    Syed Tayab Shah

    Hi
    [Sample Code|Re: BAPI-PO;
    [Explanation About BAPI|http://abap.wikiprog.com/wiki/BAPI_PO_CREATE1]
    Re: BAPI_PO_CREATE1-Runtime error
    BAPI_PO_CREATE1
    Regards
    Pavan

  • I am wanting to publish a website created in iweb via a third party web host. How do I put a password for anyone wishing to visit the mysite?

    I am wanting to publish a website created in iweb via a third party web host. How do I put a password for anyone wishing to visit the mysite?

    You create the usernames and passwords where you host your website. Made with or without iWeb.
    Usually it's done in the controlpanel where you manage your account.
    If you cannot do it there, you'll have to do it yourself. See this post :
    https://discussions.apple.com/message/16014940#16014940
    And what is the purpose of password protection for ANYONE who vistis your site?

  • How to create a huge interactive map?

    Hello everybody
    I've started learning Flash two weeks ago and I have the challenge of creating an interactive political map with about 4000 cities. Some cities will have more than 600 lines defining their limits which will make this project very demanding on processing.
    People will be able to zoom in/out, select cities and see information about them.
    As a starting point, I've begun working with 500 cities. I've imported a vectorial drawing of these cities and converted each one of them to symbols using flash javascript, resulting of course in 500 symbols. I don't know if it was a good way of starting this project but worked for me. Then my problems begun.
    First I tried to use the mouse roll over and roll out events to change the (fill) color of cities but the city limits (stroke) changed also.
    Second I want to add some properties to the cities such as city code, name, etc. but I wasn't able to do that using class inheritance. Would I have to create a different City class for every symbol I would like to extend? This approach looks like a lot of headache and redundant work.
    Finally my question is should I start all over again and change my approach? If yes, how? If no, how can I solve those two problems?
    Thanks

    can't answer everything but I find this project very ambitious for someone with 2 weeks experience. I give you credit for trying.
    as for the color changes, in each city symbol you need to have a separate "fill" symbol so that you can change the color of the fill and not the stroke.
    also this link will help you understand the concept and confusion of target, currentTarget, mouse_over vs roll_over:
    http://www.wastedpotential.com/?p=10
    if each of your mc's is using a City.as class, that should work fine for giving each city the same properties. No need to create 500 different classes. I'm not an OOP expert but I know what you are trying is very possible and should be straight-forward.
    Get Colin Moock's Essential ActionScript 3.0 and Shrupe's Learning ActionScript 3.0 for a crash course on implementing something like this.

  • How to create batch job via a program

    hi
    i need to know how to create batch job via a program please suggest
    arora

    Wow!
    > Total Questions:  234 (138 unresolved) 
    ...and now you ask this?
    Please accept our apologies for not pointing out to you way-back-when already that there is a search functionality here at SDN and that the correct forum should be used to post questions to.
    Please read "the rules" at the top of the forum page, and search first => ask questions later.
    I take the liberty of closing your question for you.
    Kind regards,
    Julius

  • How to create an occupancy grid map

    I am using a LIDAR sensor (URG-04LX) to map an environment for DaNI 1.0 in LabVIEW Robotics 2010 module.  I want to create an occupancy grid map of the environment to use for path planning purposes. Can anyone provide me with any assistance. I have looked at the examples for path planning using the A* technique on an occupancy grid but I don't understand how to create the occupancy map.

    ... everyone above as told you how to create and LABVIEW occupancy map.... using an occupancy map.
    The labview VI assumes you know exactly what the envrioment is like. Meaning you pretty much have some representation of the enviroment.
    What you want to know is how do I generate and occupancy map using a laserscanner. For this you would need something called SLAM. Simultaneous localisation and Mapping. In order generate an occupancy map you need to continously localise your system so you can map laser measurements with refference to a fixed refferece frame, you then have to localise with respect to your map and repeat. This is non-trivial !
    unfortuently there is no LabviewVi to do this for you, and there is not much working example code. So honestly if you want to do this, i would use a robotic development framework call ROS and using gmapping (which is a SLAM package). Alternatively if you inist on using labview you could create a dll of the gmapping (open source libary) and call it from labview, Our you could try to implement it from scratch yourself....
    I just wish it was easier to use opensource libaries like pcl,opencv and integrate with textbased langauges using a labview system... it would make labview so much better, but labview robotics i feels is not really a good robotic application framework comapared to alternatives like ROS which have much bigger communities and much more modules of code you can use... escpecially for SLAM 
    https://decibel.ni.com/content/docs/DOC-22790 this is the best i have managed to find ( they do implement SLAM for this) 
    http://www.ros.org/wiki/gmapping

  • How can i create a more detailed map in aperture?

    How can i create a more detaled map in Aperture- Book?

    There are no templates for more detailed maps in Aperture.
    You might consider to add more detailed maps as photos to the photo boxes in the book. I sometimes simply take a screenshot of the map in "Places" view to get a more detailed map with the pins marking the places.

  • Problem when creating a SU via LT07

    Hi, guys,
    I got the error message 'No destination storage bin to be found in storage type xxx' when I was going to create a SU via t-code LT07, but if I input the preset data for TO creation (storage type/section/bin), I got the an another error message 'No bin sectioning defined for storage bin xxxxxx'.
    I've put a 'P' for the 'putaway strategy', as well as checked the 'SU mgmt active' & 'SUT check active' for the storage type xxx via OMM4, I also maintained the defaulf 'Storage Type Indicator' for 'stock placement' in 'WH mgmt view 1' (Material Master) and activated the storage type search so it could locate the right storage type xxx correctly, what I can't understand that if the 'putaway strategy' is P, how can the system can find the right storage bin? Thanks

    Can anyone help me out on it? Thanks a lot...

  • Error when creating Logical Port via WSDL on SOAMANAGER

    Hi,
    When  creating Logical Port via WSDL on SOAMANAGER we're getting the following error:
    "Uninstantiated object u201Csubject sidl serviceu201D in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL".
    We're consuming a WS provided by a .NET application.
    Our system is ECC 6.0 NW 7.01SP 7.
    Anyone have faced this error before?.

    hI,
    Please go through this link , you will get the solution
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3

  • How to create mass users and map them to existing  hrms users

    Hi,
    Im running oracle ebusiness suite 12i . I want to create mass users , and map them to existing hrms users.
    The users I want to create exist in an excel spreadsheet with the columns employee id, user name. They will all be granted the same responsibility. I want to map them to existing hrms users using the employee id key.
    I have read about the package FND_USER_PKG.CREATEUSER and I can loop over it by using sql loader to create a temporary table, but I m lost on how to automatically map them to hrms users as part of the script.
    Any help.
    dula

    Thanks a lot Omka,
    I managed to create the users by running the script:
    declare
    Cursor C1 is
    select d.product_code,b.responsibility_key from FND_USER_RESP_GROUPS_ALL a,fnd_responsibility b,fnd_user c,fnd_application d
    where a.user_id = c.user_id
    and a.responsibility_id = b.responsibility_id
    and b.application_id = d.application_id
    and c.user_name ='JOCHIENG';
    Cursor employee is
    SELECT EMPLOYEE_ID,EMPLOYEE_NAME from eldoret_final;
    BEGIN
    for e in employee loop
    fnd_user_pkg.createuser
    x_user_name => e.EMPLOYEE_NAME
    *,x_owner => ''*
    *,x_unencrypted_password => 'welcome123'*
    *,x_start_date => SYSDATE - 10*
    *,x_end_date => NULL*
    *,x_description => 'CBK Employee'*
    *,X_EMPLOYEE_ID => e.EMPLOYEE_ID*
    fnd_user_pkg.addresp(upper (e.EMPLOYEE_NAME),'PER', 'CBK_EMPLOYEE_DIRECT_ACCESS','STANDARD', 'DESCRIPTION', sysdate, null);
    end loop;
    commit;
    end;
    I had first created the user JOCHIENG and assigned it the responsibility for Self service. So the script just assigns the responsibilities by copying from the one assgined to this user.
    Everything seems ok. However, when trying to log in as the new user, the login error: Login failed. Please verify your login information or contact the system administrator.
    is returned. But I can reset the password using the forms under Security > Define. Even with the correct password, the login doesn't go through.
    Any idea?
    dula

  • Creating APEX pages via SQL scripts..

    Hi Guys,
    I want to create APEX pages via SQL Script. The main reason to have this option that I have couple of applications which has XML files for screen definition where I can read all screen properties (field types, sizes, caption, etc...)
    Is there any documentation or help stuff where I can find the APEX page definition tables? I found something like WWV tables but I couldnt figure it out properly...
    Any help ?
    Thanks,
    Osman...

    We have built our entire apex app in a similar way. We create the shell apex pages using apex (eg, Item Detail, Insert Item, etc.). Then we create a PL/SQL region on the page. The PL/SQL region simply calls a stored procedure to render the controls on the page. For example, our regions looks similar to this:
    begin
    apex_pkg.sp_render_page('ITEM_DETAIL',Param1,Param2,Param3);
    end;
    The sp_render_page procedure in the database generates the appropriate HTML for the page. This procedure reads meta data in the database (eg, field label, field size, field type, field position, etc.) and renders the same HTML that apex would render if the apex page was manually created. For example, in the procedure we use lines similar to these:
    HTP.p(apex_item.text(...))
    HTP.p(apex_item.select_list_from_query(...))
    Because the procedure is reading meta data, the apex page is dynamic and can be different for different users or clients.
    Darrin

Maybe you are looking for

  • Without Automatic Row Processing (DML)

    Hi All I try to make one page to show use DML statements without standard Automatic Row Process. What I have: One page with: region: Report - select empno, ename, sal, deptno from emp; region: Form with items: p6_empn, p6_ename, p6_sal, p6_deptno add

  • Baseline Date of terms of payment

    HI, I need some help with something, how i can enter the baseline date of term of payment manually? I see in the OBB8, that appear 4 option of baseline date, but not manually. Is there any configuration in SD that prompts this action? please give me

  • 'Unknown Error 0x3' when writing with the internal DVD drive

    I use Toast to burn DVD's and have been getting a lot of harware failures with a '0x3' error code. Burning the same content to an external Firewire DVD drive works perfectly. Anyone else seeing this? I've only had this machine a few months and would

  • Can I save Shuffle content as a playlist

    I am wondering if I can save the songs on my Shuffle as a playlist in iTunes? Power Book   Mac OS X (10.4.7)  

  • STWB_WORK and eCATT start options

    Hi, starting eCatt execution from test plan (STWB_WORK) the variants tab is missing in start options screen. This is the scenario under which we face the problem described above: 1. start transaction STWB_WORK - Test organizer 2. select a test packag