Delete last month payroll result

Hi All,
How to delete only last month payroll result, when I am trying to delete with PU01, its deleting all the payroll results
I nee dto delete only last month
Thanks
SD

Hi,
You can also use program RPUDEL20 (tcode se38). With this report you have more control on what you are deleting, but you always have to be very, very careful using this in production environment.
Kind Regards,
Edoardo

Similar Messages

  • Can an off-cycle payroll result deleted without deleting current result?

    Hi all,
    I want to delete an off-cycle result dated 06.10.2008 without deleting current payroll result.
    Is it possible? if yes, what is the tcode or report for this?
    To elaborate the need to delete,
    Bonus has been paid on 29.09.2008 with correct amount. Due to some reason this record has been over written to 06.10.2008. That's why system is deducting bonus amount paid as per 29.09.2008 from gross salary in the form of /552 - Stat. Net Subsequent adjustment. October payroll has been run and exited. we have found that in many cases, bonus amount has been recovered and net amount mismatches with gross-deduction in the payslip.
    We think, if we can delete off-cycle payroll result on 06.10.2008 and correct IT267 as per 29.09.2008, then system will paid back in the November pay run.
    Please suggest what is the best way to tackle this scenario?
    Suitable answers will be rewarded.
    Thanks
    rajesh

    Hi,
    This is impossible to delete.
    What I understand is the IT0267 record is being overwritten after the Bonus run is exited. Right?
    If is it so then have U able to found out How?If U have found out then share this so that a proper solution can be suggested.
    Anyways revert the over writing by putting all the bonus amout back to 29th and delete 06th ones and run the payroll for next month..System will again adjust the things in a retro run.
    ~BiSu

  • Delete every payroll results in the system

    Hi experts,
    There is a special Test system where External useres can login to the system, so we'd like to delete every paroll results in the system.
    My question is how can I do that * correctly & efficiently*?
    I know that there is a report for that:  "RPUDEL20"  but imagine a company with 14.000 employees. So using the logical databse, and deleteing the paroll results ony-by-one, will took more than a day
    My idea is to delete every record in the tables:
    HRPY_RGDIR
    HRPY_WPBP
    HRPY_GROUPING
    P01O_ZVB_RR
    This is definetelly the fastest way, but is a good solution?
    I mean what about the 0003 infotype (payroll status)  and other relations to the payroll results? What will happen if I delete the tables?
    There is no payroll testing in this system, we're using this system for  ESS testing, so the payroll results are not relevant, but all other masterdata (PA and PD infotypes) are relevant.
    I'm happy to hear any idea
    Bye
    N.

    Hi everyone,
    Thank you for the answers,  but I don't understand how can the LSMW help me. As I know the LSMW is a data migration tool. I don't want to import anything to the sap system, I just want to delete the existing payroll results. How does the LSMW help me in this?
    Thanks
    N.

  • Report not showing terminated empoyees payroll results

    Hi there,
    I have coded a report that shows customized payroll data for a group of employees, delimited by two dates. The user found a problem when an employee is terminated on a given month but his termination is processed the next month (vacations, etc). Say the employee quits October 27, the payroll is run on November 10 and the report is run for November 1 - November 30: I wont see his payroll results because the employee does not belong to a particular organizational unit in november.
    This is my main code:
    START-OF-SELECTION.
    GET pernr.
      sapid = pernr-pernr.
    * CREATE AND POPULATE PAYROLL OBJECT                         RRV100807
      CREATE OBJECT pay.
      CALL METHOD pay->read_result IMPORTING list = mylist.
    * ELIMINATE OLD RECORDS                                      RRV100807
      LOOP AT mylist INTO wa_mylist WHERE SRTZA <> 'A'.
        DELETE TABLE mylist FROM wa_mylist.
      ENDLOOP.
    * PROCESS PAYROLL FOR THE DESIRED ENTRIES                    RRV100807
      CALL METHOD pay->write_result EXPORTING list = mylist.
    GET payroll.
      LOOP AT payroll-inter-wpbp INTO wa_wpbp WHERE orgeh IN PNPOBJID.
    *   PROCESS PERIOD DATA
        itab_rt = payroll-inter-rt.
        PERFORM get_wt_amounts.
        EXIT.
      ENDLOOP.
    GET pernr LATE.
    * IF THERE ARE PAYROLL RESULTS
      IF wa_result-otsal <> 0
         OR wa_result-regsal <> 0
         OR wa_result-teller <> 0
         OR wa_result-other <> 0.
    *   PROCESS EMPLOYEE
        PERFORM get_data.
      ENDIF.
    Basically, the GET PERNR (get personnel record) is never executed because the employee does not belong to the org unit. Is there any way to gather employee records in one interval and payroll results in another? I assume they both use PNBEGDA and PNENDDA at this point.
    What I want is to retrieve payroll information based on the screen dates (BEGDA and ENDDA) and the employee data based on the payroll periods that were run during those dates.

    Instead of using the standard selection screen field for choosing org units, you could create a custom selection screen field for the org unit.  So the org unit would not affect the initial GET PERNR selection.  Then in your code (after the GET PERNR) you could check for the org unit, with an additional condition to check the employee's previous org unit if he is terminated.  There is also more than one way to get payroll results.  We often use this in our reports:
    FORM get_payroll_results.
      CLEAR results_present.
        CALL FUNCTION 'CU_READ_RGDIR'
          EXPORTING
            persnr          = pernr-pernr
          TABLES
            in_rgdir        = rgdir
          EXCEPTIONS
            no_record_found = 1
            OTHERS          = 2.
        IF sy-subrc EQ 0.
    Get cumulative monthly results
        Store only active payroll results.
          DELETE rgdir WHERE srtza NE 'A'.                "Active
        Delete all the payroll results not from the requested year
          DELETE rgdir WHERE paydt0(4) NE p_mdate0(4). "Reporting Year
        Delete any payroll results after the requested balance date
          DELETE rgdir WHERE paydt > p_mdate.
        Delete voided payroll data.
          DELETE rgdir WHERE voidr NE space.              "Voided
        Sort so the first record is the last for the requested year.
          SORT rgdir BY paydt DESCENDING fpend DESCENDING.
          LOOP AT rgdir INTO ws_rgdir
            WHERE paydt > beg_date.
            seqnr = ws_rgdir-seqnr.
            CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
              EXPORTING
                clusterid                    = 'RU'
                employeenumber               = pernr-pernr
                sequencenumber               = seqnr
              CHANGING
                payroll_result               = result
              EXCEPTIONS
                illegal_isocode_or_clusterid = 1
                error_generating_import      = 2
                import_mismatch_error        = 3
                subpool_dir_full             = 4
                no_read_authority            = 5
                no_record_found              = 6
                versions_do_not_match        = 7
                error_reading_archive        = 8
                error_reading_relid          = 9
                OTHERS                       = 10.
            LOOP AT result-inter-rt INTO wa_rt
              WHERE lgart = wa_wagetype.
                  ADD ws_betrg TO ws_total.
             ENDLOOP.
          ENDLOOP.
        ENDIF.
    This allows you to specify by date, wagetype, pay period, etc. which payroll results you wnat to include.  I hope this helps.
    - April King

  • For the last month or so my icloud won't back up, it keeps telling me that there is too much storage and I need to delete some data. But I have deleted between 3-400 photos and it is still saying the same, can anyone please help

    For the last month or so my icloud won't back up, it keeps telling me that there is too much storage and I need to delete some data. But I have deleted between 3-400 photos and it is still saying the same, can anyone please help

    If they were deleted from your camera roll that should have resulted in a corresponding decrease in the estimated size of your next backup.
    If it's still saying that you don't have enough storage to back up, read through this article: http://support.apple.com/kb/ht4847.  It provides some suggestions for reducing your iCloud storage, such as deleting unneeded email. 
    The other area to look at is your text messages.  These are included in the backup.  If you have lots of photos and videos attached to your messages, that can significantly increase the size of your backup.  If that's the case, deleting these may make a big difference.

  • How to clear last payroll result of multiple workers?

    Experts,
    My requirement is to delete the last payroll result of multiple employees.
    PU01 allows to delete for only one employee at a time.
    I tried to create a BDC but not working. Is there any other alternative to do so.
    Regards.

    here it is:
    loop at pa_pernr.
      PERFORM bdc_dynpro     USING 'RPCDPU01'   '1000'.
      PERFORM bdc_field          USING 'BDC_CURSOR' 'RP50G-PERNR'.
      PERFORM bdc_field          USING 'BDC_OKCODE' '=STAR'.
      PERFORM bdc_field          USING 'RP50G-PERNR' pa_pernr-low.
      PERFORM bdc_dynpro     USING 'SAPLSLVC_FULLSCREEN' '0500'.
      PERFORM bdc_field          USING 'BDC_OKCODE' '=DELE'.
      PERFORM bdc_dynpro     USING 'SAPLSPO1'   '0300'.
      PERFORM bdc_field          USING 'BDC_OKCODE' '=YES'.
      CALL TRANSACTION  'PU01' USING bdcdata MODE 'A' UPDATE 'S'.
    endloop.
    " pa_pernr-low contains the employed id number.

  • Off cycle posting reversal and deletion of payroll results

    Hi Experts, We have an scenario employee was locked for payroll for past 4 periods in IT0003. Their was an off-cycle payment to employee and posted to accounting  ( when employee regular payroll was locked). Now  their is a requirement to reverse the posting of off-cycle payment as off cycle payment is not required. After the reversal of posting of off-cycle payment. Do we have to delete the payroll results of off-cycle through PU01 before running the current month payroll for the employee.Now the employee is regular payroll it will trigger retro for past 4 periods. Please advise. Regards, IFF

    Hi I FF,
    if you don't want that off-cycle amounts to be added in the employee gross must and should delete the payroll run after reversing the FI posting.

  • How to retrieve deleted payroll results

    Hi All,
    Unforuntaely user deleted payroll results for the month of june'09 by using the Tcode PU01. But now running the payroll for the period of july09 none amount appearing correctly and payslip for the month of june'2009 is not coming.
    How to retrieve the deleted payroll results for the month of june'2009.
    Kindly help me out in this regards
    Thanks and Regards
    Suresh.V

    Dear Suresh,
    As experts adviced, there is no possibility of retrieving Payrol Results once it is deleted....
    that is why people suggest
    1) not to authorize user or teach deleting Pay Results to Users !!!
    2) to maintain Backup of results every month !! generally this is done by Basis Team
    Now, u first delete Payresult for July first and then set teh Control Record to June...
    Then make a live run...for June...
    This will create entry for June Salary.. n thn u cn again have ur June Payslip.
    Then again release for July and run for this employee again...
    thus, u have both June and july results ...
    Regards
    ...Sadhu

  • Need to DELETE and LOAD data of the Last month to

    Hi Experts,
    I need to delete the last month data from cube because One material is not updated with a Required value. We have made some changes in Update routine for a Value. The Same change must be reflected from last month of data ,
    So I need to delate the data based on selection. And reload  the data again. And the data flows from
                                               2LIS_13_VDITM (Info Source ) to ZSD_C03 (Info Cube). 
    I read many SDN threads, but I am getting confused.
    How can I proceed for these  ?
    Thanks,
    Utpal.

    Hi Srikanth,
    Thank you for responding.
    I had a problem on one material. So deleted the request and Reload it from PSA. That issue got solved.
    And Now the problem is , Now my senior is saying Delete the data from April-09 till date and Reload it. The issue is My CUBE ( ZSD_C03 ) is updated with 4 data sources. 2LIS_11_V_ITM   ,  2LIS_13_VDITM   ,  2LIS_12_VCHDR  , 2LIS_11_VAITM .
    And I need to delete data from 2LIS_13_VDITM  data source . How Can I proceed for the current issue   ?
    Please suggest   ...
    Thank you ,
    Utpal

  • Delete Payroll results.

    Hello All,
    Is there any way or any report by which we can delete payroll results for 3000 employees at a time. I tried to use the report RPUDEL20 but this is promting me again for which payroll result shall I have to delete?
    Please advice this is very urgent!
    Thanks,
    Chakri.

    There is no Std option to delete multiple Payroll Results. You either have to d it manually one at a time or go for a custom Program. I would prefer the manual option even though it is time consuming. It is always safer to stick to the Std option while dealing with Payroll clusters. Whereas, you will have to spend a lot of time testing the custom Program to ensure nothing else is impacted.
    ~Suresh

  • Bulk deleting of payroll results in production

    Dear all,
    I have run payroll for all employees into production as per client request, but now they want to delete all payroll results and again by maintaining few more details of employees they want to run payroll for all.
    Kindly tell me what tcode or program i can use to do this, as I already tried few tcodes like RPUDEL20, RH_DELETE_STORED_PAYROLL_RSLTS & HR_DELETE_LEGACY_DATA_PAYROLL to delete records, but all these are not existing into the DEV, QUA, PRD.
    Please suggest me some valuable solutions.
    Thanks & regards,
    N Verma

    Hi Verma,
    PU01 is always better to Delete the payresults in the Production system.
    If employees are huge in number,you have to go with BDC for PU01 tcode.
    If employees  are small  in number we can use PU01 for each employee to delete the payroll results.
    There would not be any negative effects by using PU01.
    Regards,
    Vsai.

  • Deleting Payroll Results in ECC 5.0

    Hi Folks,
    We recently upgraded to ECC 5.0 from 46C. On those rare, rare occasions when we needed to Delete Payroll Results in 46C we implemented Note 537115 to activate the use of RPUDEL20 and Note 537138 to deactivate. Payroll had already EXITED.
    We had a condition requiring to Delete in ECC 5.0. The notes no longer apply.
    Has anyone had to delete under certain circumstances?
    Thanks in advance.

    Hi Charlie,
    Arun has explained exactly the way it has to be deleted.
    PU01 lists the current or latest payroll result, select the record and Click on "Delete" Button or press Shift+F2.
    To view all payroll results you may also use transaction PC00_MXX_CLSTR where XX stands for your country key.
    Regards,
    Bhawanidutt.

  • Delete Payroll Results in Bulk.

    HI
    I want to delete Bulk payroll results in Production system say for 1000 employees .
    I tried to create BDC/ LSMW but, iam not able to create BDC /LSMW for T-code PU01- Delete Payroll Results.
    Nor iam able to use Program RPUDEL20 in Production server.
    Experts plz advice any other Alternative solution.
    Rgds,
    Sekar,

    Hi
    You can copy this Z program to delete payroll result.
    This program will delete the payroll result by just giving employee number / perner in the input file.
    Regards
    Mani
    *******************************************Program Code **********************************************
             REPORT zhr_pydel
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    *include bdcrecx1.
                               INTERNAL TABLES                           *
    DATA : BEGIN OF itab OCCURS 0,
            pernr TYPE rp50g-pernr,  " Personal No.
           END OF itab.
    DATA: l_subrc LIKE sy-subrc.
    DATA : messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    DATA : bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
    DATA : ctumode LIKE ctu_params-dismode VALUE 'N'.
                                        "A: show all dynpros
                                        "E: show dynpro on error only
                                        "N: do not display dynpro
    DATA : cupdate LIKE ctu_params-updmode VALUE 'S'.
                               SELECTION SCREENS                         *
    PARAMETERS:fname TYPE rlgrap-filename OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      PROGRAM_NAME        = SYST-REPID
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
      STATIC              = ' '
      MASK                = ' '
        CHANGING
          file_name           = fname
       EXCEPTIONS
         mask_too_long       = 1
         OTHERS              = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'UPLOAD'
       EXPORTING
      CODEPAGE                      = ' '
         filename                      = fname
         filetype                      = 'DAT'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
        TABLES
          data_tab                      = itab
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      OTHERS                        = 7
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    START-OF-SELECTION.
    *perform open_group.
      LOOP AT itab.
        PERFORM bdc_dynpro      USING 'RPCDPU01' '1000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RP50G-PERNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'RP50G-PERNR'
                                       itab-pernr.              "'2019'.
        PERFORM bdc_dynpro      USING 'RPCDPU01' '1000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RP50G-PERNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=STAR'.
        PERFORM bdc_field       USING 'RP50G-PERNR'
                                      itab-pernr.               "'2019'.
        PERFORM bdc_dynpro      USING 'SAPMSSY0' '0120'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=DELE'.
        PERFORM bdc_dynpro      USING 'SAPLSPO1' '0300'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=YES'.
        PERFORM bdc_dynpro      USING 'SAPLSPO1' '0300'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=YES'.
        PERFORM bdc_transaction USING 'PU01'.
        CLEAR itab.
      ENDLOOP.
    *perform close_group.
    *&      Form  bdc_dynpro
          text
         -->P_0118   text
         -->P_0119   text
    FORM bdc_dynpro USING  program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0128   text
         -->P_0129   text
    FORM bdc_field USING  fnam fval.
      DATA : nodata VALUE ' '.          "nodata
      IF fval <> nodata.
        CLEAR bdcdata.
        bdcdata-fnam = fnam.
        bdcdata-fval = fval.
        APPEND bdcdata.
      ENDIF.
    ENDFORM.                    " bdc_field
    *&      Form  bdc_transaction
          text
         -->P_0188   text
    FORM bdc_transaction USING  tcode.
      REFRESH messtab.
      CALL TRANSACTION tcode USING bdcdata
                       MODE   ctumode
                       UPDATE cupdate
                       MESSAGES INTO messtab.
      l_subrc = sy-subrc.
      REFRESH bdcdata.
    ENDFORM.                    " bdc_transaction

  • ECC 6.0 with PU01 (Delete Current payroll result)

    Hi,
    We are going to SAP 4.7 to ECC 6.0. We are facing in problem PU01 (delete current payroll result).
    we have made a BDC for deleting payroll in mass. In ECC 6.0 output screen is changed, so my BDC is not
    working. In ECC 6.0,  PU01 when I directly run, it is correct. But I am going with SHDB TCode (for recording) Delete button
    is not working (Give SAP 4.7 version screen with SHDB). I can't delete payroll result. how can I record it?
    Plese help.
    Thanks & Regards
    Neelesh Sonkar

    HI
    While searching the forum I cam accross the following thead.
    Re: Unable to record transaction PU01 in ECC6 HR
    Hope this helps
    Param

  • How to delete the payroll result by batch? have any program to do this?

    Hi,
    how to delete the payroll result by batch? have any program to do this?

    With standard payroll deletion (PU01), SAP  will not allow payroll results to be deleted if it already reaches certain steps of payroll process (e.g. Pre-DME, DME); instead, you would have to do payroll a void or payroll reversal. This utility doens't check for that, and only delete payroll results based on the criteria given. This therefore could cause inconsistency in production if your payroll process already surpasses certain steps.
    Rgds.

Maybe you are looking for

  • Why does my 08 iMac display flashing and partial window problems?

    I have a 2008 iMac with OS X 10.9.2 with 4Gb memeory. In the past week we have experienced partial windows pop up and have unable to close the windows. The problem is resolved by restarting the computer. This has happened about four times in the last

  • Any similar transaction in PM/CS like CO1P in PP

    Hi, This is just for clarification. We have CO1P transaction(Predefined Confirmation processes) in PP and as like that do we have any similar transaction in service/maintenance order confirmation. As I know we have only IW46,COGI and COFC for post pr

  • Premiere Pro CC und After Effects Crashes

    Zuletzt protokollierte Meldung: <140735231746432> <GPUManager> <2> Sniffer Result Code: 3.

  • How to enable the List View tools tab in SharePoint Designer 2013 ?

    Customize the list view in SharePoint Designer 2013 . Unfortunately , i don't see List View Tools tab in my SharePoint Designer 2013. Even if i click anywhere in the web part code , i don't get it.

  • Failed to Export File

    I was sent an email explaining that the file failed to export, most likely because it was a very large file; however, on Adobe under tools, it says that it is still "Uploading file to Adobe ExportPDF online..." I am trying to export other documents b