Payroll PCR Remove duplicates from P0014

Hello Experts,
I have a requirement to delete duplicates from P0014 table in the payroll schema.
The wages might occur due to the wpbp split but I have to discard all possible duplicates within the pay period.
I'm not sure how to handle this in the PCR or not sure if there is a standard rule to suffice this requirement.
I tried crating a custom operation to delete duplicates from P0014. Although the table affected with this change but in the subsequent rules the table p0014 does not seem to change. All old entries are still present in p0014 table.
Please pitch in with your expert comments.
Thank,
Raj

Thanks for your responses.
I tried creating a custom function to delete the duplicate entries from P0014 and it actually works fine to get the desired result. But this doesn't seem to be a good way to handle the situation
The solution would be to create rule to get the required wage and compare the same with the previous wage that was being processed ( after sorting p0014 on wage and dates).
if both the wages are same then no further processing with take place. ( may be using a variable to check to previous wage)
Can you please provide the required PCR logic to handle the same.

Similar Messages

  • Best app to remove duplicates from iTunes 2014

    Hi All,
    I've been trying to research the best application to sort and remove duplicates from my iTunes library. I have over 7000 songs and iTunes built in duplicate finder doesn't look at the track fingerprint, which is useful for those songs which are labelled "Track_1" etc.
    Has anyone reviewed any recent products? I was looking at TuneUp, but after reading so many negative comments, I've decided not to go down that path. I would prefer a program that did most of the work for me, due to the amount of songs. Happy to pay for a good product...
    I do have MusicBrainz Picard, which has done a great job of tagging, but don't remove duplicates.
    Thanks in advance :-)

    Tune up is a great app.  When they moved from version 2 to version 3 is when it went to crap and all heck broke loose.  They shut their doors  but they have since re opened and went back to developing  version 2.  I use that version and I am pretty happy with it as being an overall cleanup utility.  I also use Musicbrainz and a couple of other utilities but in the end if you have an enormous library 20k plus then you are going to have a few slip through.  I would probably go with Tuneup if I were you and a thorough third party duplicate finder.  Dupe Guru's music edition seems to do a pretty good job.

  • HT2905 i have just followed all the insrtuctions in support to remove duplicates from my library but now most of my musicis gone except for my recent purchases. How come and how do i fix it?

    i have just followed all the instructions in support to remove duplicates from my library but now most of my music is gone except for my recent purchases. How come and how do i fix it?

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • Union all-distinct and remove duplicates from nested table?

    Hi all,
    I need a select that will bulk collect some data in my nested table.
    I have two tables from which I need to select all the accounts only once.(remove duplicates).
    Tried to search on the forum...but no luck.
    I have a table with one column:
    create table a1(account_no number);
    and a second table with 3 columns.
    create table a2 (account_no number, name number, desc varchar2 (100));
    I have a nested table like:
    table of a2%rowtype;
    Can I select from this two table in one select and put in my nested table just one row per account?
    if a I have in a 2a row like :
    1 'test' 'test2'
    2 aaaa aa
    and in a1 a row like:
    1
    I want to put in my nested table just (1, null,null and 2,aaaa, aa)) or (1,test,test2 and 2,aaaa, aa). it does no matter what row from those two I insert.
    Second question:
    If I use:
    BANNER
    Oracle9i Release 9.2.0.5.0 - Production
    PL/SQL Release 9.2.0.5.0 - Production
    CORE     9.2.0.6.0     Production
    TNS for 32-bit Windows: Version 9.2.0.5.0 - Production
    NLSRTL Version 9.2.0.5.0 - Production
    SQL>
    what is the best solution to remove duplicates from a neste table like mine?
    I thought that I can build another nested table and loop in my first nt and for each row I check in there was the same account in previous lines.
    it will be like:
    for i in 1....nt_first.count loop
    for j in 1..i loop
        --check if my line was in previous lines. if it was...do not move it in my second collection
    end loop;it is this best option in oracle 9i?

    I have a table with one column:
    create table a1(account_no number);
    and a second table with 3 columns.
    create table a2 (account_no number, name number, desc varchar2 (100));
    all I need are the accounts. the rest ar extra data
    that I can ignore in this step. But if it is
    available, it is ok to use it.
    using one select in this case is is much better that
    trying to remove duplicates parsing some nested table
    with FOR many times?
    Thankshi,
    try to use union. Union automatically removes duplicates between two or more tables.
    with t1 AS
           (select '3300000' account_no FROM DUAL UNION
            select '6500000' account_no FROM DUAL union
            select '6500000' account_no FROM DUAL union
            select '6500000' account_no FROM DUAL union
            select '6500000' account_no FROM DUAL
           select * from t1ACCOUNT_NO
    3300000
    6500000

  • Removes duplicates from a sorted array without having to create a new array

    Funcation removes duplicates from a sorted array without having to create a new array

    Funcation removes duplicates from a sorted array
    without having to create a new arrayIs a 'funcation' like a vacation but more fun or
    something?LMFAO. You just jumped with both feet on one of my biggest peeves. I've been outed!
    Actual words/phrases I've seen used which I hate with every fiber of my being:
    "Mrs. Freshly's"
    "McFlurry"
    "Freshissimo"
    "Spee-dee"
    "Moons Over My Hammy"
    One of my favorite SNL skits had Will Ferrell leading a panel of movie reviewers (they're the worst for this kind of junk). Each one had some cheesy pun to describe their respective movie. Ferrell topped the show off with his endorsement of "Fantasia 2000 is Fantasgreat!"
    LOL.
    "Come to Slippy Village - it's a FUNCATION!"
    § (runs off, laughing maniacally, head explodes)

  • What is the best app for identifying and removing duplicates from iPhoto Libraries/Pictures?

    I have five iPhoto Libraries (original, default merged, etc.)  I've tried using iPhoto Library Manager, but I seem to be digging a deeper hole.  Also, question about the 15,000 faces:  Are these taking up space on my hard drive?  I gather I cannot easily remove them from libraries.  Taking photos at concerts, sporting events, etc. just creates more faces in iPhoto;  frankly, I could do without ANY FACE DETECTION!

    These applications will identify and help remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    DeCloner - $19.95 - can find duplicates in iPhoto Libraries or in folders on the HD.
    DupliFinder - $7 - shows which events the photos are in.
    iPhoto AppleScript to Remove Duplicates - Free
    PhotoDedupo - $4.99 (App Store) -  this app has a "similar" search feature which is like PhotoSweeper's bitmap comparison.  It found all duplicates
    Duplicate Cleaner for iPhoto - free - was able to recognize the duplicated HDR and normal files from an iPhone shooting in HDR
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: iphoto has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but there are only twp apps that detected the iPhone HDR and normal photos as being duplicates:  PhotoSweeper and Duplicate Cleaner for iPhoto.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have different file names.
    iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates.  IMO it's a must have tool if using iPhoto.

  • Insert data from table1 with PK to remove duplicates from table2 without PK

    There will probably be a simple solution to my issue although it is currently evading me. I have a table that contains 14 million rows. There are many duplicates within this table that I need to remove. I was hoping an old trick I used in MS Access would
    help, this solution was to create an identical table and add a PK on the filed I wanted to remove the duplicates from. Then just copy+paste append from one table to the other and Access would just drop the rows that were duplicated. Very simple yet worked
    quickly and effectively. Is there a quick way to do this in MS SQL as everything i've tried so far has failed. Any help would be greatly appreciated.
    Ian

    try below
    create table source_table (
    column1 int,
    column2 varchar(32)
    create table destination_table
    column1 int primary key,
    column2 varchar(32)
    insert into source_table (column1, column2) values (1, 'VAL2');
    insert into source_table (column1, column2) values (2, 'VAL3');
    insert into source_table (column1, column2) values (3, 'VAL4');
    insert into source_table (column1, column2) values (4, 'VAL5');
    insert into source_table (column1, column2) values (4, 'VAL5');
    insert into source_table (column1, column2) values (4, 'VAL5');
    GO
    -- simple method
    WITH CTE AS
    select
    ROW_NUMBER() OVER (partition by column1 ORDER BY column2) rno, column1, column2
    from source_table )
    insert into destination_table(column1, column2)
    select column1, column2 from CTE where rno =1
    -- inserting in while loop little chunks(500000), you can reduce if you want
    Declare @startid int =0, @totalrecords int = 14000000, @count int = 500000
    while(@startid <= @totalrecords)
    begin
    WITH CTE AS
    select
    ROW_NUMBER() OVER (partition by column1 ORDER BY column2) rno, column1, column2
    from source_table where column1 between @startid and @startid+@count)
    insert into destination_table(column1, column2)
    select column1, column2 from CTE where rno =1
    Print convert(varchar , @startid+@count)+ ' processed' -- indication while running
    set @startid = @startid+@count
    end
    Thanks
    Saravana Kumar C

  • Removing duplicate from DB

    how can i remove only duplicate data from a RDBMS table, if the table contains so

    This is a Java forum, not a database forum.
    Did you try to search it already?
    [http://www.google.com/search?q=remove+duplicates+database]

  • What is The correct way to remove duplicates from the iTunes library?

    I have a 300GB external drive which over the last 5 years has got bloated with duplicate tracks.
    If I use the show duplicates option, I see 10,479 songs totalling over 50GB. Now, those songs that are shown, do they include the original that they are a duplicate of, or are they JUST the duplicates?
    I have been sorely tempted to select all and delete to the trash, but I want to be 100% sure I don't delete any originals. Also, there are some duplicate tracks that are genuine dupes, for example, I have an original LP with a particular track on it, but then that exact track appears on a compilation LP, so I don't want to remove the compilation LP tracks as then the compilation is incomplete.
    I have Tidy Up installed, but I'm a bit wary to use it as I want to be 10% sure I do the right thing, it's a lot of money to lose, and I'm a DJ, so this is thousands of conversions from my vinyl collection and stuff purchased and ripped from CD.
    I see many methods of getting rid of duplicates but no definitive answer for someone in my position.
    Many thanks all!

    Akuwa wrote:
    This is supposed to be a fix to the result from SQL. Currently no access to the SQL code so we have to fix in he Java code...Then really, whoever said you couldn't change the SQL has absolutely no right to turn around and demand the fastest way to remove the duplicates in Java. It's almost certain that the fastest way to remove the duplicates would be for the SQL not to select them in the first place, so if you don't permit changing the SQL then it's clear you aren't interested in the fastest way.

  • Removing Duplicates from a choose from list

    Hi All,
    I have a choose from list of obj 73 )Catalog Numbers (Table OSCN)
    I also added conditions in the CFL that it only shows the Substitute for the CardType = 'S' (Supllier) Business Partners.
    But I want to remove all the duplicate Substitutes from the CFL so that only distinct Catalog Numbers shows in the CFL.
            //  Adding 2 CFL, one for the button and one for the edit text.
                    oCFLCreationParams.MultiSelection = false;
                    oCFLCreationParams.ObjectType = "73";
                    oCFLCreationParams.UniqueID = "CFL1";
                    oCFL = oCFLs.Add(oCFLCreationParams);
                    //Adding Conditions to CFL1
                    oCons = oCFL.GetConditions();
                    oCon = oCons.Add();
                    oCon.Alias = "Substitute";
                    SAPbobsCOM.Recordset oSuppliers = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                    oSuppliers.DoQuery("Select Distinct t1.Substitute From OSCN t1 Join OCRD t2 on t1.CardCode = t2.CardCode Where t2.CardType = 'S' Group By t1.Substitute");
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                    while (!oSuppliers.EoF)
                        oCon.CondVal = oSuppliers.Fields.Item(0).Value.ToString();
                        oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR;
                        oCon = oCons.Add();
                        oCon.Alias = "Substitute";
                        oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                        oSuppliers.MoveNext();
                    oCFL.SetConditions(oCons);
    Please advise....
    Kind Regards,
    Brenden Draper

    Hi Brenden,
    what you are trying to archieve won't work. Simply because CFL is getting all row data from  OSCN and ItemCode or CardCode can differ for a specific substitute.
    For example.
    ItemCode,CardCode,Substitute
    ItemA,BP1,sub1
    ItemA,BP2,sub1
    Would be 2 resultlines both with sub1 as substitute.
    SQL equivalent :
    Select Distinct t0.* from oscn t0 inner join OCRD t1 on t0.CardCode = t1.CardCode where t1.CardType = 'S'
    My advise would be to open a simple form with a grid and datatable bound.
    Some lines of coding and you get all you need.
    regards,
    Maik

  • Removing duplicates from playlists and keeping ratings.

    When I first started using iTunes, I thought it was a great program. However, once my music collection outgrew the size of my iPod, I began to see it has many frustrating limits and annoyances. I would appreciate it if anyone could help me resolve the issues I'm having. If anyone from Apple reads this post, please pass this on to your software developers because I know there are tons of people having the same issues I am having (just do a Google search if you don't believe me).
    1) My first method of managing my collection is to only put the files I want on my iPod in my library...this way I know exactly what's on my iPod. However, I found that in doing this, the ratings I created on my iPod were not reflected in my library on my computer. Is there any way around this? Also, I've noticed that if I remove a file from my library, I also lose its rating. I know that the rating can be stored into the id3 tag. Why is this not done??? Is there anyway around this?
    2) My next method was to have iTunes automatically update my iPod from a playlist I created (the playlist had no meaning other than it was where I put all of the music I wanted on my iPod). But I soon noticed that iTunes wasn't smart enough to realize that there were duplicates (sometimes 5 copies of the same song). Which is what happens when you don't feel like taking the time to see if you've already added your favorite Alice in Chains album, so you just drag-and-drop it again. The library is smart enough to handle this (i.e., if you drag the same folder into the library twice it only adds it the first time and it ignores it the second)...why can't playlists do the same?
    I would appreciate any feedback on my issues. Thanks in advance!!!
    Josh

    Depends on Why duplicates are happening. If you are adding the same file again then iTunes will make another entry. If you have the same track in different formats it may show up again with same track name.

  • HT2486 How can i remove duplicates from my address book?

    When I synced my phone through icloud my contacts were all duplicated on my address book on my desktop.  is there an easy way to remove the dupilcates? thank you!

    Here's one such AppleScript I found on the web
    The script will Find the duplicate Entries in Your AddressBook.app and put them into a New Group Called "Duplicate Entries" Allowing you to easly compare and edit them.) ***NOTE: The script will ADD a NEW GROUP IN YOUR ADDRESS BOOK : NAMED "Duplicate Entries" if it does not exist:
    Details found at - http://www.macosxhints.com/comment.php?sid=20060322202753429
    or
    http://bbs.applescript.net/viewtopic.php?id=16646
    Written by © Mark Hunte - 2006 *)
    tell application "Address Book"
       set biglist to {}
       if not (exists (group "Duplicate Entries")) then
           make new group with properties {name:"Duplicate Entries"}
       end if
       set the_names to the name of every person as list
       repeat with i from 1 to number of items in the_names
           set this_Name to item i of the_names
           set theName to name of person this_Name as string
           if this_Name is not in biglist then
               copy this_Name to end of biglist
           else
               add (people whose name is theName) to group "Duplicate Entries"
           end if
       end repeat
       save addressbook
    end tell

  • Is there a way to remove duplicates from all iphoto albums at once rather than one by one

    I have somehow copied many photos and want to clean up my iphoto albums.  does anyone have info if this is possible.

    1.  There are 3rd party programs that do this...I don't know of any free ones.  When I had this problem, I ended up deleting the duplicates, one by one, as I didn't have that many to deal with. 
    2.  However when I asked this same question a long time ago, I was told a really nifty trick (for iPhoto 8).
    First create a folder on the Desktop (I name mine "photos") and Drag/Drop or Copy the photos from the camera or source folder (could be on hard drive) into the Desktop folder named "photos".  Then using iPhoto, import the photos from the Desktop folder.  As it imports, iPhoto checks if the photos are duplicates and gives you choice to import the dupes or not.  This has saved me countless times. 

  • How to remove duplicates from a large external library

    I recently had a big HD snafu the result of which left me with 95,000 tunes, 53,000 of which should be there...the rest are duplicates.  I've tried Dupin but it's not working...I think the job is just too big.  Does anyone have any recommendations to get the dupes identified and removed?
    Thanks!

    any thoughts anyone?

  • How to remove duplicates from PL-SQL table?

    Hi Gurus,
    I have a PL-SQL table with following structure
    Authors (SR_NO, Auth_Code, Change_Date, Cost)
    This tables is being populated using a cursor. But, this table may have some duplicate rows (for Auth_Code column)
    e.g
    SR_NO      Auth_Code       Change_Date                       Cost
    1               A1             14-FEB-09 08.18.47 AM          11.00
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    4               A1             15-FEB-09 07.00.00 AM        789.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00Out of the above result set I need to select the distinct Auth_Code rows for which the Change_Date is maximum (and store it into some other PL-SQL table for further processing or even deleting from this table itself will also do!)
    i.e. Out of above data A1 is duplicated and has maximum Change_Date = 15-FEB-09 08.00.02 AM.
    Hence my resultant PL-SQL Table should have below data
    SR_NO      Auth_Code       Change_Date                       Cost
    2               A2             14-FEB-09 08.18.56 AM       2839.00
    3               A1             15-FEB-09 08.00.02 AM      1299.00
    5               A3             14-FEB-09 08.18.56 AM        312.00
    6               A4             14-FEB-09 08.19.02 AM        233.00I am not that much aware of PL-SQL tables and there is no any chance of modifying the existing cursor which populates the data into this PL-SQL table.
    I guess this I need to compare each record of PL-SQL table with others, but not sure how to do that.
    Could you please help?

    HI,
    Like this?:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> with data as(
      2  select 1 as SR_NO, 'A1' as Auth_Code, to_date('14-FEB-09 08.18.47', 'dd-mon-yy hh24:mi:ss') as change_date,    11.00 as cost from dual union all
      3  select 2 as SR_NO, 'A2' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,  2839.00 as cost from dual union all
      4  select 3 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 08.00.02', 'dd-mon-yy hh24:mi:ss') as change_date,  1299.00 as cost from dual union all
      5  select 4 as SR_NO, 'A1' as Auth_Code, to_date('15-FEB-09 07.00.00', 'dd-mon-yy hh24:mi:ss') as change_date,   789.00 as cost from dual union all
      6  select 5 as SR_NO, 'A3' as Auth_Code, to_date('14-FEB-09 08.18.56', 'dd-mon-yy hh24:mi:ss') as change_date,   312.00 as cost from dual union all
      7  select 6 as SR_NO, 'A4' as Auth_Code, to_date('14-FEB-09 08.19.02', 'dd-mon-yy hh24:mi:ss') as change_date,   233.00 as cost from dual)
      8  select * from data d where change_date = (select max(change_date) from data d2 where d.auth_code = d2.auth_code);
         SR_NO AUTH_CODE CHANGE_DATE       COST
             2 A2        14/02/2009        2839
             3 A1        15/02/2009        1299
             5 A3        14/02/2009         312
             6 A4        14/02/2009         233
    SQL>Regards,

Maybe you are looking for

  • Problem with boot camp

    Hi, how are you all I have a problem since 3 months I tried something in boot camp and ended up doing something wrong Now every time I want to start my iMac I need to hold alt and choose MAC, or else it will take me to black screen that shows "no dri

  • Problem loading movie on website

    Hi all- I have published, then uploaded my website a number of times on a third party server. Included are 2 movies. Sometimes the movies will show the first frame as they are loading, sometimes they will wait until they are completely loaded before

  • Wait for event - contradiction between SAP help and SDN?

    Hello, I try to employ an advice from SDN for "How can I 'advance in dialog' with asynchronous tasks?", which says "use a synchronous task instead e.g. by using a wait for event in a separate branch". But when I define step Wait for event, I can read

  • Migration from MS SQL Server 7.0 to ORACLE 7.3

    I am unable to download WorkBench. Does it support the migration from MS SQL Server 7.0 to ORACLE 7.3 anyway.

  • Outlook 2013 connecting to Groupwise 2012 any solution?

    I have been looking for an answer to this question, I have a MS exec that has just been hired in a company that I support. He wants his calender and scheduling to work with the outlook 2013 client. They currently have a Groupwise 2012 sp2 server inst