Lookup Table and Target Table are the same

Hi All,
I have a requirement in which I have to lookup the target table and based on the records in it, I need to load a new record into the target table.
Being very specific,
Suppose I have a key column which when changes I want to generate a new id and then insert this new value.
The target table record structure looks like this
list_id list_key list_name
1 'A' 'NAME1'
1 'A' 'NAME2'
1 'A' 'NAME3'
2 'B' 'NAME4'
2 'B' 'NAME5'
As shown the target table list_id changes only when the list key changes. I need to generate the list_id value from within OWB mapping.
Can anyone throw some light as to how this can be done in OWB???
regards
-AP

Hello, AP
You underestimate the power of single mapping :) If you could tolerate using additional stage table (with is definitly recomended in case your table from example will account a lot of rows).
You underestimate the power of single mapping :) It you could tolerate using additional stage table (witch is definitely recommended in case your table from example will account a lot of rows), you could accomplish all you need within one mapping and without using PLSQL function. This is true as far as you could have several targets within one mapping.
Source ----------------------------------------------------- >| Join2 | ---- > Target 2
|------------------------ >|Join 1| --> Lookup table -->|
Target Dedup >|
Here “Target” – your target table. “Join 1“ – operator covers operations needed to get existing key mapping (from dedup) and find new mappings. Results are stored within Lookup Table target (operation type TRUNCATE/INSERT).
“Join 2” is used to perform final lookup and load it into the “Target 2” – the same as “Target”
The approach with lookup table is fast and reliable and could run on Set base mode. Also you could revisit lookup table to find what key mapping are loaded during last load operation.
Serhit

Similar Messages

  • Is it possible to have source and target schema in the same DB instance ?

    Hi All,
    I'm using Oracle 11gR1.
    I have switched source locations from other server to the one with OWB.
    During deploy I get VLD-3064 and I can't deploy mapping because of many 'table or view does not exist' warnings.
    Is it possible to have source and target schemas in the same instance ??
    How to do it ?
    Regards,
    Martin

    Hi Jörg,
    Thanks for your help and quick answer.
    I'd like to clarify a little your answer :
    1. Are the any special privilages I need to set ? Currently I have only 'RESOURCE' and 'CONNECT' (I think I didn't have to add any other privs when that schema was located on other instance...)
    2. Also VLD-3064 states that : 'Owning and referenced location of this connector are on the same database instance. Unless explicitly referenced in configuration settings no generated code will use the dataabase link resulting from deployment of this connector'. Does it mean I have to put something in configuration ?
    Thanks,
    Martin

  • Urgent! Display lookup value and return value at the same time.

    We are using pop up lov.
    How can we display lookup value and return value at the same time. let me claer..
    Our lov query is like fallowing
    select dname, deptno from dept
    we want to return deptno column into a database bind text item and dname column into a display item (look up)
    can we do it (we need to do)
    thanks for your help.

    We did it .
    But pop up key lov (display description return value ) property doesn't appear for tabular forms item.
    (Report Attributes pages Tabular Form Element section display As property list)
    can we set or not.
    Thank you.

  • LMDB - SLD "Source and target system have the same object server name"

    Hi,
    the system is a SM7.1 SP1
    For some reason (Object-Server-Name changed), the job that syncs the sld and lmdb cancels...
    I set the LMDB-Object-Server-Name to its original Name...
    Now i've deleted the sync-config in the solman_setup and try to start a new sync, but i get the following error, when i try to configure the source-system:
    'Source and target system have the same object server name: CISM318'
    But the names are different: 'SM3' (LMDB) and 'CISM318' (SLD)
    Any suggestions ?
    best regards
    Christoph
    Edited by: Christoph Bastian on Aug 26, 2011 9:37 AM
    Edited by: Christoph Bastian on Aug 26, 2011 11:18 AM

    problem solved...
    Apparently the sync needs some hours to finish a object-server-name-change...
    best regards
    Christoph

  • My battery runs low very fast (three hours). I looked in the usage settings and it seems the time for usage and stand-by are the same, allthough i did have my iphone on stand-by!! What can i do?

    Community,
    I have a problem with my iphone 4. Every few months my battery starts draining within a few hours. I have tried all kinds of battery saving tips, but they don't help. When i go to the settings/general/usage is can see that the time for Usage and Stand-by are the same, so my phone is fully on all the time this explains the draining. But in reallity i turn my phone to stand-by most of the time, i mean the screen is black and all???
    The first and second time a had this problem, both a few months a part,  i restored my phone and it was solved. This time i restored my phone but this did not help!! And restoring my phone every two months is not my preferd way of solving this problem.
    Does anybody have an idea on how to solve this problem? can anybody help me?
    best regards,
    Merijn

    Restoring is the answer. It sounds as if there is a rogue process constantly draining your battery.
    The issue you face is that, if you restore your backup thereafter, you risk the problem coming straight back with your files.
    Store your files individually and it is time to start fresh.

  • *Fix* Usage and Standby Times are the same - iPhone 4S 7.0.4

    I'd like to share my experience here because I actually found the solution on here but I'm actually having trouble finding it again.
    I had three problems:
    1. My standby and usage times were always reporting the same values, thus draining my battery faster than usual. This is not normal behavior; whenever the screen is off it should report standby times, and after the phone is unlocked it is considered usage. They should never be recording in tangent.
    2. Whenever I would try to turn off my phone by holding down the power button, the phone would basically restart itself, showing the Apple logo boot screen and then restarting. The only caveat was that it would turn off if it was plugged in and being charged. But take it off the charger and try to replicate it turning off and it would restart.
    3. The sound would sometimes think that it was connected to a Dock, so when I went to the Airplay options, they were listed as Dock Connector, Airport Express and Apple TV. There would be no volume slider in the Control Center, and when pressing the volume buttons, there would be no dots, just the bell with a line through it.
    Many people might be having genuine battery issues, where you have an older phone and your battery is just really bad and needs to be replaced. My 4S was still under AppleCare in December 2013 and the battery was pretty bad, so I had it replaced in an Apple Store. So for me, the battery life itself was not the problem.
    I tried a lot of things to try and fix the above problem but none of them helped. This includes chatting with Apple support (I was surprised they didn't steer me in an obvious direction, considering the large amount of folks who were having these kinds of problems, but they played dumb), restoring fresh and restoring icloud and itunes backups, all kinds of combinations of settings for Mail, iCloud, etc., but nothing worked. I probably restored my phone at least ten times in my troubleshooting efforts. The isolated test of restoring my phone fresh, setting it up to the start screen, making sure the battery was charged 100% and taking it off the charger waiting about 10 minutes. Then I would check standby and usage times.
    I had read about fixes for the phone not being able to turn completely off, and it had something to do with cleaning the charging port. I attempted to clean the port with compressed air and other methods, but it never fixed this problem. Then I read a post on Apple Support about a guy who had the exact same problems as I did, then said he changed out his charging port and this fixed it. Well, it was $40 so I paid someone to do it in 45 minutes.
    After I got my phone back the problem didn't appeared to be fixed, but after a restore and even with an icloud backup restored with it, I looked down at my phone and presto chango, the times where separate and working as they should. Last night with wifi off while I was sleeping, the battery only went down 3%. I know this is turning out to be a narrative, but I spent a lot of time trying to figure out what the problem was and it was a frustrating process. I'm happy it's resolved.
    Apple Support thought it was a corrupt install package from iTunes, or some kind of software glitch or maybe some part of iCloud constantly trying to call home, but it was a combination of both hardware and software. Because of the bad charging port, for some reason the phone thought it was still being used and thus was still treating standby as usage.
    I would encourage those that are having this problem to do a test and see if your phone will turn off when you want it to. If it resets automatically and if your standby usage times are the same, replacing the charging port might fix it.

    Ever since iOS7.0.6. and still on iOS7.1 both me and my wife had huge battery drain on our iPhone 4S and stand-by was equal to usage time. We finally found the solution to a post of another user on the Dutch Tweakers forum. There seem to be a bug within a certain Dutch coupon app called 'Scoupy' which drained the battery completely although GPS setting was turned of and also 'refresh on background' was off.
    Scoupy said that a fix for their app is send for approval to the App Store. We removed the app and our usage/stand-by time is again as normal (higher stand-by time then usage time) and best of all a 'normal' battery use as it was the case on iOS7.0.4. I hope this could help someone. I'm wondering if the iBeacon changes in iOS7.0.6/7.1 together with a bug in the Scoupy app could be the cause? Maybe this is also with our similar apps you have on your phone.

  • Cannot set up iPad since my email and apple id are the same.  Help?

    I cannot set up my new iPad since the apple ID and the email are the same, any suggestions?

    Anything here to help? http://support.apple.com/kb/HE37

  • Unrendered Audio - sequence and clip settings are the same

    When I drag a clip to the timeline a redline appears on the top of the timeline. I know this means that there is a setting issue between the sequence and the clips. All the settings are the same with the exception of the:
    audio format - Clip: 8 bit integer
    Seq: 32 Bit Floating
    Audio Rate - Clip: 48000 5kh
    Seq: 48.0 KH
    The clips which is 1 1/2 HR takes 6 minutes to render.
    Does anyone know why I need to render this clip?
    Macbook Pro   Mac OS X (10.4.8)  

    Here: a foolproof way to ensure clip-sequence settings match up:
    http://web.mac.com/steelepro/iWeb/steelecuts.com/fcs%20detective/6FD1D5FD-0C56-4 F06-992C-902D00556549.html
    And if you still have the problem, why not convert it to AIFF via QT?

  • Could nt complete your request because source and destination files are the same

    Hi, thank you for reading.
    I'm having this problem and it's driving me nuts.
    I'm actually following a tutorial that you can check out here: http://nightshifted.tumblr.com/post/2559360661/tutorial-paused-animations
    basically I'm trying to do a animated gif with canvas (I'm sorry if my english is not so great). when I try to drag the layers into the canvas (step 2 of the tutorial), I get the error: "could not complete your request because source and destination are the same".
    can anybody help me? I have both CS3 and CS5 and they the error appears in both.
    thank you in advanced

    I think they mean select the layers and frames and using the move tool, drag
    inside the document (click inside the document window and drag) to move the
    selected layers to the top half  (transparent area), not to drag the layers from
    the layers palette into the document, which would give that error.
    MTSTUNER

  • Is Snapshot and Materialised view are the same?

    Can you please help me on this...
    I am using oracle 10G enterprise edition...
    Thanks in advance..

    Re: Is Snapshot and Materialised view are the sameYes

  • Selecting from one table and Update another in the same Page

    Could someone help me with this HTMLDB task. In my page design, I am selecting data from two tables (masters: DEPT, EMP) which I want to display on the left column of the page and at the same time a user would be able to update another table (ATTENDANCE:with many children) which would have a radiogroup on the right side for each value of the master such as employee name. The placement of data has to appear in corresponding rows on the page. For instance, employee names of the master table must appear on the same row with its corresponding child value. The page would be grouped by DEPT_NO. The user would click on the department name, a new page with the employee name would apprar. From that page, the user would then update attendance column for each employee in that department. In this operation, it is only the ATTENDANCE table that is being updated. I can send out more information about the structure of the tables if you need more information. I tried many HTMLDB options, forms, reports, etc. I have not been able to get quite right. Your help will be appreciated.

    Raju,
    Thanks for responding to my problem. I have actually tried using the example on how-to you sent me a link to but it did not help as I expected. You see, the page would be updated every meeting date for each employee. I can send you more information about the table structure if you like. However, let me see if this will help you a bit.
    Tables are: 1) Dept [dept_no (pk),dept_name] 2) EMP [emp_no (pk),emp_name, dept_no(fk)] 3) Meetings [meet_key(pk),attended, meeting_date, emp_no(fk)]
    What I want to do is create two pages, one would list the departments, when a user selects a department, the user would be linked to a meeting attandance page. The meeting attendance page would list department name once, Meeting date once, and then list employees in that department. At the right column of every employee would be a checkbox for meeting.attended for update. The meeting_date would be pre-populated so that what the user would do is just check Yes/NO. The second page is the one I'm having the most problem with.
    If I can do a fetch from dept, emp, and meetings and then do an update on the Meetings table on the same page, I think that might solve the problem. That was how I solved it in MS Access three years ago.
    Here is email address in case you want to contact me directly. [email protected]
    Thanks again for your help.

  • Database Table and LDAP Authentication in the same repository?

    I'm wondering if it's possible to authenticate through database tables for some users and LDAP for other users. I can configure each one separately but I'm curious if anyone has ever successfully done both in the same repository.
    Thanks,
    -Matt

    Another thing to try is this. I don't have an LDAP server here but it worked for me without LDAP. I think it should also work with LDAP as it is the same idea. I don't think there is a way to have a conditional Init Blocks. Also you can't have two init blocks setting the same variable (USER in our case). But what you can do is to have two Init Blocks, one for LDAP authentication and the other one for table authentication. So you could have this scenario:
    1) LDAP "authentication" init block sets custom variable LDAP_USER
    2) Table "authentication" init block sets custom variable TABLE_USER
    3) Final authentication init block (the real one) sets USER variable using something like this:
    SELECT CASE WHEN ':USER' = 'SOME STRING' THEN ':LDAP_USER'
    ELSE ':TABLE_USER'
    END
    FROM DUAL
    WHERE CASE WHEN ':USER' = 'SOME STRING' THEN ':LDAP_USER'
    ELSE ':TABLE_USER'
    END = ':USER'
    Note how I use the CASE statement both to return the user value I want the USER variable to be set and also in the WHERE clause to make sure no rows are returned in case authentication fails (which should return no rows to denote a failed authentication). Obviously you need to set the init block dependancies correctly. I did a quick test with users coming from two separate Oracle tables in 2 init biocks and it worked fine for me. Give it a try and let me know how it goes.

  • ADF table and ADF form on the same view object

    Hi,
    As per the ADF demos available on ADF site, I created a jsf page with 2 panels. One panel is an ADF table based on a view object. And the other panel is and ADF form based on the same view object. My requirement is that as I scroll through the records in the ADF table, the ADF Form should dynamically display the details of the record in the ADF table. My understanding is that this should be automatic. However, its not working as expected. What have I missed?

    Hi,
    Apply PPR for form that displays details.
    Like :
    <af:table id="t3">
    </af:table>
    <af:panelFormLayout id="pfl2" partialTriggers="t3">
    </af:panelFormLayout >

  • Expand, unhide table and set variable at the same time?

    Hi all,
    How should i go about to create the following?
    I want to Expand a table at the same time as i set at variable and unhide another table. I have implemented a single-click solution i the Table API that works fine. I would like to use the Table API for this problem also.
    Is this possible? Do I need to make it in multiple steps ie some kind of java-script?
    Have tried this but it wont work:
    SAP_BW_URL_Get() +  ' ' ''&amp;DATA_PROVIDER=DATAPROVIDER_1&amp;' 'CMD=Expand&amp;IOBJNM=0MATERIAL&amp;FILTER_IOBJNM=0CUSTOMER&amp;FILTER_VALUE=' I_CHAVL '&amp;VAR_NAME_1=ZLS_CUST&amp;VAR_VALUE_EXT_1=' I_CHAVL '&amp;CMD_1=ITEM%3DTABLE_2%26HIDDEN%3D' ''''
    Any ideas?
    Cheers,
    Max

    Hi Alex,
    This is not written in the WAD, but in the Table API. The table API generates the link, creating a JavaScript call. But i hvae also tried to write this url directly in the WAD on an http://.... format but it still does not work.
    BR/Max

  • VBA Merge PDFs - Error when first and second PDF are the same

    Using http://khkonsulting.com/2009/03/adobe-acrobat-and-vba-an-introduction/ as a guide, I am able to successfully merge multiple pdf's together into one document using VBA (Access mdb), except when the PDF being merged to has the same name as the next PDF.
    Here's my scenario.  An Access table is updated with a list of reports that need to be printed.  All of these reports are PDF's.  I loop thru this table and merge the PDF's according to an identifier, then print the group.  There are times
    when there are multiple copies of the same report for an identifier.  If the PDF being merged to has the same name of the PDF being merged, an error occurs.  How can I handle this situation?
    Sample data:  This identifier (ESO and Pulling) needs to merge these PDF's (Aaa.PDF) together which happen to have the same name.  Aaa.PDF is trying to merge Aaa.PDF and this throws an error.
    Aaa.PDF ESO  Pulling
    Aaa.PDF ESO  Pulling
    This identifier merges fine despite having the same PDF twice.  But the first PDF is not named the same.  Xxx.PDF is the first PDF and merges the next two into it.  The last two
    are named the same.
    Xxx.PDF  916  Pulling
    Bbb.PDF  916  Pulling
    Bbb.PDF  916  Pulling
    Code:
    pdfDoc1.Open (filesToMerge(1))
    numPages = pdfDoc1.GetNumPages()
    Set pdfDoc2 = CreateObject("AcroExch.PDDoc")
    Dim i As Integer
    For i = 2 To intNbr - 1
    pdfDoc2.Open (filesToMerge(i))
    If pdfDoc1.InsertPages(numPages - 1, pdfDoc2, 0, pdfDoc2.GetNumPages(), True) = False Then
    MsgBox "Cannot insert pages"
    End If
    pdfDoc2.Close
    Next i
    If pdfDoc1.Save(PDSaveFull, "C:\....\ReportPacket__" & Trim(CStr(intReportCount)) & "__" & ... & ".pdf") = False Then
    MsgBox "Cannot save the modified document"
    End If
    pdfDoc1.Close
    The pdfDoc1.InsertPages command fails, displays "Cannot insert pages", then displays "Method 'Close' of object 'CAccroPDDoc' failed.
    Thanks for any help or advice.

    Hi
    As far as I know, Access didn't provide such method. But I think you are able to achieve this goal through some 3rd party PDF component
    Hope this will help you.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How to erase a SSD drive.

    I have a new MAC Pro with no problems.  I have a Toshiba 512GB drive with OSX on it from my old system that I want to use as extra storage. I cannot erase the drive using disk utility.  I cannot unmount or erase the drive.  Can anyone tell me how to

  • Indesign crashes when placing PDFs

    All, When placing PDFs in and Indesign file, it occasionally crashes. Usually when doing multiple pages, one at a time, some work and some crash.... although the ones that crash always crash and I cannot get them placed. The goal is to put the PDFs i

  • Function Module for creating ASSET MASTER

    Hi, Is there any function module for asset master creation. transaction AS01. Regards, Neslin.

  • Link break in email body using User Notification Activity in 11g

    Hi All, I am using User Notification activity in a bpel process to send emails.Howver I am having trouble formatting the contents of the email body. Desired output is: Hi How are You Cheers, Ritu I used following approches but none of them seem to he

  • Element quick view not working

    Hello.  I installed the new release of Dreamweaver 2014 but everything looks the same even when enabling the design and live buttons.  Any suggestions?