How to implement "delete" on a table using OWB?

Hi All,
How do I implement a simple delete using OWB?
Assumption:
(1) Table abcd (id number, age number, amt number)
(2) the_number is a variable
(3) the_id is a variable
Want to implement following transformation in OWB?
DELETE FROM ABCD WHERE AMT=0 AND number = the_number AND id = the_id ;
Rgds,
Deepak

We implemented delete mappings, and delete flows to be able to reverse a failed load. This is in my opinion a very sound and valid reason for deleting from a datawarehouse. Also if the need is there it could be used for deleting old superfluous data from the datawarehouse.
There are a few things to consider: closed records in type II should be opened up (post mapping).
Test, test, test.
It is indeed a bit tricky to realize,but certainly working and possible.
steps to take are following:
1) create new mapping
2) drop mapping table where to delete from onto mapping (2 times, 1 source, 1 target)
3) map all fields from source to their corresponding fields in target, except the ones that determine the "where" clause (Refered to as filter fields)
4) Either create a select, or a mapping input parameter which should result in generating the filter-values for your delete.
5) map above step to the filter fields.
6)define a delete mapping by altering target table properties as follows:
6a) Loading Type => Delete
6b) Match by constraint => No constraints
7) set properties each field as folows:
7a) filter fields match column when deleting => Yes
7b) other fields match column when deleting => No
Hope this helps,
Wilco

Similar Messages

  • How to select data from a table using a date field in the where condition?

    How to select data from a table using a date field in the where condition?
    For eg:
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
                                                      and bdatu = '31129999'.
    thanks.

    Hi Ramesh,
    Specify the date format as YYYYMMDD in where condition.
    Dates are internally stored in SAP as YYYYMMDD only.
    Change your date format in WHERE condition as follows.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and bdatu = <b>'99991231'.</b>
    I doubt check your data base table EQUK on this date for the existince of data.
    Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and <b> bdatu <= '99991231'.</b>
    Thanks,
    Vinay
    Thanks,
    Vinay

  • How to find the columns and tables used in a stored procedure?

    Hi,
    Can someone suggest how to find the columns and tables used within a stored procedure?
    Thanks
    VBK

    For example:
    SQL> create or replace
      2    procedure p1
      3      is
      4          cnt number;
      5      begin
      6          select count(*) into cnt from emp;
      7  end;
      8  /
    Procedure created.
    SQL> select  referenced_owner,
      2          referenced_name
      3    from  dba_dependencies
      4    where owner = 'SCOTT'
      5      and name = 'P1'
      6      and referenced_type = 'TABLE'
      7  /
    REFERENCED_OWNER               REFERENCED_NAME
    SCOTT                          EMP
    SQL> SY.

  • How do you delete records from table with data in a select option

    how do you delete records from table with relevant to data in a select option..how to write coding

    Hi,
    Try
    if not s_select_option [ ] is initial.
    delete * from table
    where field in s_select_option.
    endif.
    commit work.
    Be careful though. If select option is emty, you will delete the entire table.
    Regards,
    Arek

  • HT3771 how do you delete printer in last use when you try to add new printer again

    how do you delete printer in last use when you try to add new printer again?

    System Preferences > Print & Scan (Print & Fax on older versions of OS X)
    Select the printer and click the "–" (minus) button.

  • How to find max(time) from table using group by

    how to find max(time) from table using group by
    select var max(time)
              from table
              into (var1, time1)
               where .....
                 group by var.
    it is fetching record which is top in table.
    if u can help?
    regards.

    No this will fetch the maximum time from teh table.
    select var max(time)
    from table xxxx
    into (var1, time1)
    where .....
    group by var.
    Refer this code
    TABLES SBOOK.
    DATA:  COUNT TYPE I, SUM TYPE P DECIMALS 2, AVG TYPE F.
    DATA:  CONNID LIKE SBOOK-CONNID.
    SELECT CONNID COUNT( * ) SUM( LUGGWEIGHT ) AVG( LUGGWEIGHT )
           INTO (CONNID, COUNT, SUM, AVG)
           FROM SBOOK
           WHERE
             CARRID   = 'LH '      AND
             FLDATE   = '19950228'
           GROUP BY CONNID.
      WRITE: / CONNID, COUNT, SUM, AVG.
    ENDSELECT.

  • How can I delete a broken table?

    Hi,
    I´m still a oracle-noob, hope somebody can help me.
    Last night the optimizer hanged on a single table, so I killed the optimizer-process. After that I checked the table where the optimizer hangs... The result was, that I can't make a query, and can't drop it. I tried dbverify, but no error. When I run optimizer again, or analyze it hangs...
    So I tried to drop the user/schema and try to drop the tablespace...but it hangs to. When I stop the execution with ctrl+c it brings a ora-00604.
    OS is AIX 5.3, DBMS 10.2.0.1, archivlog is activ, my SAN-guy told me, that there are no physical errors
    How can I delete the table or tablespace? Thats enough for me, I don't need a backup via rman or something else (it also would be great, but I never used rman until now...i'm still a noob). And maybe someone can tell why I can't drop the table.
    thx
    Edited by: user10650608 on 02.10.2009 08:28

    Hi,
    Yes restarting or killing all your user process could solve your problem but still you would like to do some more trouble shooting without restarting or killing processes then
    SELECT s.sid,
      FROM v$session s,
           x$kglob ob,
           dba_kgllock lk
           ( SELECT kgllkuse, kgllkhdl, kgllkmod, kgllkreq, 'Lock' kgllktype FROM x$kgllk
              UNION ALL
             SELECT kglpnuse, kglpnhdl, kglpnmod, kglpnreq, 'Pin'  kgllktype FROM x$kglpn ) lk
    WHERE lk.kgllkhdl = ob.kglhdadr
       AND lk.kgllkuse = s.saddr
       AND lk.kgllkhdl IN ( SELECT DISTINCT kgllkhdl
                              FROM ( SELECT kgllkhdl, kgllkreq FROM x$kgllk
                                      UNION ALL
                                     SELECT kglpnhdl, kglpnreq FROM x$kglpn )
                             WHERE kgllkreq > 0 )
    ORDER BY lk.kgllkhdl,
              lk.kgllkreq ASC,
              lk.kgllkmod DESC
    --To check if it is hold by any killed session
    select sid, status, program from v$session where status not in ('ACTIVE','INACTIVE')Regards
    Anurag Tibrewal

  • How to implement delete functionallity on a form

    Hello
    I have a form that displays the current row of a table, and you can modify it. I want to implement delete functionality in such a way that deletes the current row and shows the next one in the form.
    My problem is that the delete button must be with immediate=true, because I don't want the fields to be validated, just deleted!
    But when a command button (like Delete) is immediate=true then the input fields in the form doesn't get updated with the next row values (only the readonly fields like output text get updated).
    Any idea how this scenario must be implemented in JSF ?
    Thanks!

    try binding the table to an arrayList , and make shure the form or its area is reRendered once you delete it from the arrayList

  • How to implement Tool TIP in Table Control

    Hello Everyone,
    Can you please tell me how to implement a tooltip messages in table control columns.
    The Tooltip contains a simple message like "Doublde click on column.
    Thanks in advance.
    Edited by: Suruchi Razdan on Jun 6, 2011 7:57 AM

    Hello,
    In table Control->first Header Row has chance to maintain the Tooltip option.
    In table control columns maintain Double click options in attributes .
    Regards,
    Praveen

  • How  to Implement a Chained Hash Table with Linked Lists

    I'm making a migration from C/C++ to Java, and my task is to implement a Chained Hash Table with a Linked List. My problem is to put the strings(in this case names) hashed by the table using de Division Metod (H(k)= k mod N) in to a Linked list that is handling the colisions. My table has an interface implemented(public boolean insert(), public boolean findItem(), public void remove()). Any Help is needed. Thanks for everyone in advance.

    OK. you have your hash table. What you want it to do is keep key/value pairs in linked lists, so that when there is a collision, you add the key/value pair to the linked list rather than searching for free space on the table.
    This means that whenever you add an item, you hash it out, check to see if there is already a linked list and if not, create one and put it in that slot. Then in either case you add the key/value pair to the linked list if the key is not already on the linked list. If it is there you have to decide whether your requirements are to give an error or allow duplicate keys or just keep or modify one or the other (old/new).
    When you are searching for a key, you hash it out once again and check to see if there is a linked list at that slot. If there is one, look for the key and if it's there, return it and if not, or if there was no linked list at that slot, return an error.
    You aren't clear on whether you can simply use the provided linked-list implementations in the Java Collections or whether you have to cobble the linked list yourself. In any case, it's up to you.
    Is this what you're asking?
    Doug

  • How to  load data into user tables using DIAPIs?

    Hi,
    I have created an user table using UserTablesMD object.
    But I don't have know how to load data into this user table. I guess I have to use UserTable object for that. But I still don't know how to put some data in particular column.
    Can somebody please help me with this?
    I would appreciate if somebody can share their code in this regard.
    Thank you,
    Sudha

    You can try this code:
    Dim lRetCode As Long
    Dim userTable As SAPbobsCOM.UserTable
    userTable = pCompany.UserTables.Item("My_Table")
    'First row in the @My_Table table
    userTable.Code = "A1"
    userTable.Name = "A.1"
    userTable.UserFields.Fields.Item("U_1stF").Value = "First row value"
    userTable.Add()
    'Second row in the @My_Table table
    userTable.Code = "A2"
    userTable.Name = "A.2"
    userTable.UserFields.Fields.Item("U_1stF").Value = "Second row value"
    userTable.Add()
    This way I have added 2 lines in my table.
    Hope it helps
    Trinidad.

  • How to justify the values in table using report generation tool kit

    Hi
    How can we align the values in excel table using report generation toolkit.
    like left,right,center.
    Regards,
    hari
    Attachments:
    Report_excel.vi ‏34 KB
    New Bitmap Image.JPG ‏134 KB

    Hi,
    A trigger is designed to be a part of a transaction, not it's end.
    It is like following these steps (not really accurate, but should give an idea):
    1. programA issues INSERT statement on tableA
    2. 'control' goes over to the database
    3. constraint checks happen
    4. the associated triggers on tableA do their work (e.g. fetching a sequence value for a primary key)
    5. 'control' goes back to programA
    6. programA decides if a commit (no error occurred) or a rollback (error case) has to be issued.
    Did this help? Probably not, I'm not happy with what I wrote, but anyway... :)

  • How to Select Data from different Tables Using Linq

    Hi,
    I have two different tables, I just want to collect data from tables using Linq to SQL Queries.
    The tables looks like This 
    ID Name ImageUrl 
    Other Table is
    ID EmpID CheckInTime CheckOutTime 
    What I want to Collect data from CheckInTime and want to place it in a that is in a list view
    Same thing I want to do it for CheckOutTime And One thing I want to tell is both tables are joined by a FK EmpID with ID.
    What Are the suggestions for me 
    I have Used this code
    var data = from emp in db.Employees
    join chk in db.CheckInCheckOuts on emp.ID equals chk.EmpID
    select new EmployeeCheckInOut
    Name = emp.Name,
    ImageUrl = emp.ImageUrl,
    CheckIn = emp.CheckInCheckOuts,
    CheckOut = emp.CheckInCheckOuts
    Here the CheckInCheckOuts is another table, I don't how do I access fields of the Other table "CheckInCheckOuts"
    Thank you
    Ali

    Mitja,
    Kind of Tables, I don't Know but I can Tell you that these are Two table, first Table Have Data in It, Name, ImageUrl I have filled this table with names and ImageUrls And are string type.Other Table is for the CheckInTime And CheckOutTime of the employee.
    What I need that when I click on the Image button it Should displays The Current Datetime into the label below the Image button.
    So I have Problem accessing my CheckInCheckOut Table because I may not have Idea about.Did you understand what I need to do, if you have more question please ask to me.
    Thanks
    Ali

  • Impact Analysis: How to trace which objects and tables used in a report?

    Impact Analysis: How to trace which Webi objects and tables used in a report?
    Currently, our company have been using BO Webi as our ad-hoc and reporting tool for over a year now.  Past several months, we've been pushing our power users to develop their own report, and started to notice that we loss track off which data (tables, columns, ... , BO objects) being used where and by whom.   The BI team now spend more time tracing through reports manually, instead of designing Universe.
    After consulted with our local  SAP  technical sale, they said the only solution is to buy BO's ETL (Data Integration) and
    Metadata Management tool, which price starting from $300K per CPU.  I suppose that is NOT the right solution; however, we have not found one yet.  Some executives believe Cognos (now by IBM) would provide a better BI solution as we scale.
    If anyone know, please provide (1) Impact Analysis method: How to trace which Webi objects and tables used in a report? and (2) Does Cognos provide better impact analysis method without a heavy spending?
    Thank you very much,
    Ed
    Edited by: EdPC-SCB on Sep 8, 2009 3:56 PM

    EdPC-SCB,
    have you tried enabling auditing?
    - Yes, audit log only shows user's activities which isn't useful for us. Please let us know any audit log that might be helpful .
    For most of the servers listed in the CMC there is an "Audit" tab.  I'd say if you have the disk space in your database for Auditor available, then if in doubt turn it on (at least for a while) to see if it exposes what you are seeking to find out --that'd be the quickest way.  The documentation (xir2_bip_auditor_en.pdf) doesn't offer much in helping you to see a correlation between ticking on an Audit option in a Server and how it will populate in the Auditor DB -- most of us just hunt and peck until we get what we want.  Once you have the good stuff in each of the Servers ticked on you'll be able to track down which report recieves which object.  To help youself out initially, you should run every report that you can find so Auditor will get seeded.
    thanks,
    John

  • How to implement "SelectAll" function in table view?

    hi, experts
    i want to implement "SelectAll" function in table view, just like the SelectAll function in ALV,how to do?
    and, can table view has it's tool bar ,may be on top of it.
    pls help and thanks a lot!!

    Search this forum. You will find plenty of threads on the same...
    Raja

Maybe you are looking for

  • Open a pdf with out print or save button

    Hello, Is there any way to open pdf with out using save or print and also make other users to not to open the file. thanks

  • ACE module - should 'sh serverfarm' and the SNMP OID 'slbVServerNumberOfConnections' show the same value?

    I've recently begun to notice that the current connections value displayed by the ACE when using the 'sh serverfarm' command isn't matching up with the value returned by a custom MIB poller I'm using to return the value of the associated 'slbVServerN

  • Extending VO in SSHR

    Requirements: Client currently uses the phone with type "Ext" to feed into phone system. They want to use the Employee Self Service "Personal Information" functions to allow employees to update their phone numbers, but not allow them to update the ph

  • Java Virtual Machine Specification

    Hi all, Is there any online resource on the java virtual machine specification which is up to date? I just bought a book on that topic, but the publication date is 1999 :(.

  • Contribute's Limitation

    Hi I have 2 web servers hosting identical websites.  We have a central Deploy server behind these 2 web servers. Our web editors can map network drive to the shared folders on the central server and update html files. I have replication software conf