How to soft delete a row from the target table?

Could someone help me on this requirement?
How to implement the below logic using only ODI? I am able to implement the below logic with the "DELETE_FLAG" as "N".
I want to make the latest record with the flag as "N" and all the previous other records with the flag as "D".
Thanks a lot in advance.
I have a source table "EMP".
EMP
EMPID FIRST_NAME
1 A
2 B
First name is changed from A to C and then, C to D etc. For each data change, I would add a target row and mark the latest row as "N" and the rest as "D". The target table would contain the following data:
Target_EMP
EMPID FIRST_NAME DELETE_FLAG
1 A D
1 C D
1 D N

The problem is that I can't delete the row cause it demands from me to fill the mandatory field previously. It takes place when the key field is ROWID. In other cases delete is succesful.

Similar Messages

  • I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY WUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ??

    I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??

    Hi Kishore,
    First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
    Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table.

  • Deleting a row from the item table

    Hi All,
    I have a requirement where I need to put a button to delete the selected row from the item table and for this I have written the following code:
    DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.
        DATA lo_el_t_bseg TYPE REF TO if_wd_context_element.
        DATA ls_t_bseg TYPE wd_this->element_t_bseg.
        data: it_tab type table of wd_this->element_t_bseg.
      lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
      lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
      lo_el_t_bseg->get_static_attributes(
        IMPORTING
          static_attributes = ls_t_bseg ).
        lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
        lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
        IF lo_el_t_bseg IS not INITIAL.
          lo_nd_t_bseg->remove_element( lo_el_t_bseg ).
        ENDIF.
    Now the problem is although it's deleteing the selected line correctly but because of this I am losing one line on the screen for the user to enter... my form has a fixed number of lines and in my case it's 10... so everytime I am using deleting a line item I am losing one line to enter..... can you please tell me how can I avoid this?
    Edited by: rajatg on Aug 4, 2011 3:12 PM

    lets say...
    i have 1,2,3 documents
    i have cleared , document 2....
    1. when the user selects this record.... you can read the context_element....using the context element you can get the values and clear those values and set the blank values...
    when the user click on save ...you can have only those two records in the table.
    2. conitnue with your logic .... remove_element. once it is done ,,, create_element at the deleted index...
    3. when clicked on delete ...remove_element ( current code).... bind the table to the node... and you will have ur values

  • How can we delete a line from the table control .

    hi all
    how can we delete a line from the table control .
    situation is.
    created table control in se51 which will display the data of a table.
    how could i select a line from the table control ?
    how could i delete the selected lines form the table.
    thanks in advance

    Change the Table Control attributes such that user can only select a single record(row).
    <u>Tip to delete a selected record</u>
    1) write a module 'Mark' in the PAI as below
    PROCESS AFTER INPUT.
    MODULE cancel AT EXIT-COMMAND.
    LOOP WITH CONTROL table_view.
    MODULE read_table_control.
    FIELD flag MODULE mark ON INPUT.
    ENDLOOP.
    MODULE user_command_0100.
    2) Module Mark is below.
    MODULE mark INPUT.
    CHECK flag = 'X'.
    x = table_view-top_line + sy-stepl - 1.
    Delete itab INDEX x.
    ENDMODULE. " mark INPUT
    Table_view is the TableControl Name.
    'flag' is of type char(1) available in the Internal table which was assigned to the select option in the table control.
    <u>award if uesful</u>
    Regards,
    Sudheer

  • How do I delete a file from the Adobe Reader for iOS?

    How do I delete a file from the Adobe Reader for iOS?

    Read this:
    http://forums.adobe.com/thread/1012973?tstart=0

  • I have an alias of one of my external hard drives in my trash. When I click on "show original" all my external H D 's and my Mac hard drive show up. How do I delete this icon from the trash without loosing all my files?

    I have an alias of one of my external hard drives in my trash. When I tried to delete it, it showed that I was deleting 80,000 files and counting. I stopped the delete process and when I clicked on "show original" all my external H.D.'s and my Mac hard drive show up. How do I delete this alias from the trash without loosing all my files? When I tried to drag it back to the desk top, it just made a duplicate and remained in the trash. When I turned off the external H.D., the trash was then empty. Tried rebooting the computer and then turning the external hard drive back on and the alias shows up in the trash again. Much help appreciated.
    Rich

    In Finder's Menu, select Go menu>Go to Folder, and go to "/volumes". (no quotes)
    Volumes is where an alias to your hard drive ("/" at boot) is placed at startup, and where all the "mount points" for auxiliary drives are created for you to access them. This folder is normally hidden from view.
    Drives with an extra 1 on the end have a side-effect of mounting a drive with the same name as the system already think exists. Try trashing the duplicates with a 1 or 2 if there are no real files in them, and reboot.
    If it does contain data...
    http://support.apple.com/kb/TS2474

  • How do I delete a movie from the iTunes-cloud?

    How do I delete a movie from the iTunes-cloud? I don't want to hide it I want to delete it even if it means I can't download it again..

    Oh sure you can delete it from the computer. I thought that you wanted to permanently delete it so that you can never access it again. In fact, in some countries, you can delete movies and then download that again at no charge as long as you use the same Apple ID.
    Launch iTunes on your computer and click on the movies tab under the Library heading, find the movie and right click on it and select Delete.

  • How can I delete an app from the cloud??

    how can I delete an app from the cloud, so nobody can download it again to my phone?? please I tried from the computer but it just hide the app from purchased, and still appears in the app store with the cloud on it

    At the present time, you can't hide or delete an app from your purchased list on your phone.  Prior to iOS 6 you could hide it; there has never been an option to delete it.

  • How can i delete purchased items from the cloud in iTunes

    how can i delete purchased items from the cloud in iTunes

    I had this problem as well. You can't delete them but you can hide them by swiping across from the cloud to. The other side then pressing hide

  • Ive had a lap top from a friend, she cleared everything off it but ive downloaded itunes and all her music has appeared in the itunes library. How can i delete her music from the itunes library?

    ive got a laptop from a friend, she cleared everything off it. ive downloaded itunes and for some reason all her music has appeared in the library. How do i delete her music from the itunes libary so i can add my own music?

    In iTunes, select the music you want to delete (⌘+a to select all) and hit Delete on your keyboard.
    Also delete the music files in Finder. Also make sure you have your own Apple ID and iTunes account and logged in.

  • Using a iPad.  How do you delete unwanted address from the drop down list.  I typed in a wrong address once, and now it keeps showing up.

    Using a iPad.  How do you delete unwanted address from the mail drop down list.  I typed in a wrong address once, and now it keeps showing up.

    Winfax1-
    Look in your Contacts App and see if the unwanted address is entered there.  If it is, you can delete it there.
    Fred

  • How do I delete duplicate icons from the dock of an Imac 8.1?

    How do I delete duplicate icons from the dock of an Imac 8.1?

    No dragging to trash doesn't work. Just keep dragging them off. If they are stacked, which shouldn't happen, then when you delete one the other is still there.
    Just how did you get duplicates? Did you put them there? If not then you have other problems and I'm not sure how to correct it.

  • There is an album on a smart playlist on my ipod that is not on the music section of my ipod. I am not synced to any computer. How do I delete this album from the playlist and presumably my computer?

    There is an album on a smart playlist on my ipod that is not on the music section of my ipod. I am not synced to any computer. How do I delete this album from the playlist and presumably my computer?
    Thanks!

    You will need to restore your phone as a new one using the itunes on your computer.  This WILL erase everything on the phone but it will let you change the name of the phone and then you can add content to it.

  • HT201272 How can we delete apps, etc from the Previously Purchased list so that they don't show there anymore?

    How can we delete apps, etc from the Previously Purchased list so that they don't show there anymore?

    You can't currently permanently delete purchases, all you can do is hide them so that they are less visible : hiding and unhiding purchases

  • Hi! how can I delete a book from the iCloud? I bought the wrong book ... is for adults and I have kids...so

    Hi! how can I delete a book from the iCloud? I bought the wrong book ... is for adults and I have kids...so

    The most comprehensive delete method I know about is to delete the book from iTunes on the computer you sync your iPad with.  You'll be asked if you're sure, and it will be deleted from your iPad and any other i-Device you sync to.
    I think that's the best you can do.

Maybe you are looking for

  • HT2508 how to connect my imac 21.5inch to my tv

    i have two questions (1 how do i connect my 21.5 imac to my tv?) also (2 since my imac does not have a cd slot to play cds and videos what do i purchase to accomplish this? by the way my imac is oxs-- version10.8.5--- processor 2.7ghz--- intel corei5

  • If I update to iOS4.2 on PC will iPhone still sync with my Mac?

    I want to update my iPhone 3GS to the latest version of iOS but only have a Mac running OSX10.4.11 and as such cannot update to iTunes 10, which also means I cannot download the software update for my iPhone!!! I 've thought of a fix by updating the

  • IFS-34611: Error reserving version series

    Hi, When I tried the Building Versioning Application demo provided by the technet.oracle.com, I got the following error: IFS-34611: Error reserving version series All I have done is to version a doc1.txt file, then try the check-in/check-out function

  • Changing the color of the link to the current page

    How can I change the link on the current page to display a different color until the user redirects to another page. I am wanting to keep all my links visible and simply change the color of the link that the user is on. I think I am going to use the

  • Hw to find the old version of form

    i was given a from i made changes to it i m getting error in changed form which was not there in given form i have saved this form with new request num i want to see the old form can any one help me plz help full answer will be rewarded