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

Similar Messages

  • 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

  • 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 (PU01) authorizations

    We are trying to provide the access to the transaction PU01 to delete payroll results but since my users dosen't the access to IT0008 it's throwing an error saying they can delete the payroll results. So is there a way where we can provide the access to PU01 to delete payroll results without providing the access to write access to IT0008
    Any help is appreciated
    Thanks in Advance
    Regards
    AR

    Hi Rajendar,
    Its strange, PU01 is check-only in SU24, however, it does require Write access to IT0008. Maybe it does a write in basic pay, who knows?
    This is tricky if you do not want to give direct W access to IT0008. If this is segregated to very few , which would be the case (PU01 is highly restricted)  then probably you can give this object.
    I was also thinking an option of making SU24 for PU01 to 'do-not-check' for P_ORGIN, by this you achieve what you want...... But then realized, HR and Basis objects cannot be changed to Do not check.
    Good luck
    Abhishek

  • 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

  • Deleted Payroll Results Table

    Experts -
    I know how we can display Deleted Payroll Results using t-code SLG1 and enter Object field HRPU.
    However, I would like to know in which physical table is the deleted payroll result data actually stored.
    Regards,
    -Sonny

    I don't believe it is stored anywhere.  It is deleted.

  • Detailed Log of Deleted Payroll Results.

    I have deleted payroll results for an employee. This result had retro entries. Now I have no clue what was the Earliest MD Change date. Is there any way i can get this date???
    Transaction SLG1 gives me the log but it does not say what all were the retro periods which got deleted...
    Please help...
    Thanks in anticipation......
    Ravi

    Hi Ravi,
    If retroactive accounting runs were linked to the deleted payroll results, all the payroll results that were affected by this retroactive accounting run will be reset to the original status. That means that these payroll results get the status indicator A instead of the status indicator P that they acquired through retroactive accounting.
    So, checking the status indicator might for the retro results may help you in this case.
    Best Regards,
    Venkat.

  • Delete payroll result

    Hi Gurus,
    I have run payroll (not simulation) and found that has some corrections.
    How to delete the payroll result.
    If I delete what are the subsequent activities I must do to run the payroll once again for that employee.
    Kindly help in this regard.

    Prabhu
    If you are still in the same period that the results lie you need not delete the results. Simply run the payroll for that individual again. SAP will overwrite the current set of results. If the payroll has been exited (rolled over to a next period)you need to delete the results which is bad business practice especially if said results have been posted to FI for that closed period. In such an instance SAP's retroactive accounting functionality will sort out the results in the next open accounting period.
    So if you're still in the open period, do the master data corrections and just run the payroll again.
    Deon

  • Deleting payroll results

    hai
    in continuation of my earlier query
    i have posted the oayresults to FICO
    now the system is not allowing me to delete the pay results
    can i get them reverse posted and delete them.
    so that i can ahange the hiring date of the employee.
    regards
    nalla

    Hi
            ya sure u can delete the payroll results go to easy acees menu - payroll india- payroll accoungting - here am not sure u will find the path their u can enter the required r group of personnel no which u want to delete else go to tools their also u can other wise go to to transaction puoc_40
    rajeshk

  • How to clear Payroll results in Bulk???

    Hi Folks,
    Could all the payroll results of one personnel numbers be removed one stretch????
    (Instead of pu01)
    regards,
    Santhosh

    RPUAUD00 HR Report to list all logged changes in infotype data for an employee. Uses the PCL4 Audit Cluster.
    RPUAUDDL HR Report to delete audit data from the PCL4 Audit Cluster
    RPUDELPN Delete all info for an employee number, including cluster data and infotypes
    RPUP1D00 View/Delete records from PCL1 Cluster
    RPUP2D00 View/Delete records from PCL2 Cluster
    RPUP3D00 View/Delete records from PCL3 Cluster
    RPUP4D00 View/Delete records from PCL4 Cluster

  • DELETED PAYROLL RESULTS

    Friends,
    I was accidently deleted previous payroll results of an individual employee. Is there any way to restore the results again in pc_payresults.
    Thanks in anticipating reply
    Regards
    PratyushReddy

    Hi,
    Are you refering to Production system ?
    You cant restore the Deleted results from RT.Just check up with your Basis Team if they have any prior back up and if they can restore the RT table
    Regards
    Hemant V. Mahale

  • Deleting Payroll Result

    Hi SAP Experts,
    We have a Weekly payroll for employees. By mistake one correction check was given to a employee because of it there was an error. We have posted and reversed all documents for subsequent weeks and tried deleting the actual results so that this error doesn't come.
    We deleted the revelant actual results using PU01 and this result is not there but now the correction check is still being picked up in the display results and also  the payroll simulation.
    Please advice to solving this issue.
    Regards,
    Kranthi

    Please check PA0003/IT0003 and make sure it isnt marked for payroll correction or for any change/retro calculation.
    Regards
    Ravikumar

  • 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.

  • Exceptions for deleting a payroll result

    Hello Experts,
    Is there any situation when system does not allow us to delete a payroll result????
    If yes.... in what all situations will the system not allow us to delete payroll result???
    All inputs are appreciated.........
    Thanks,
    Janga K.

    Hi,
    You can only delete a payroll result in the following cases:
    1. The employeeu2019s master data are no longer processed.
    2. Payment was not yet arranged for the employee.
    3. If you are working in a live system, the payroll control record for the payroll area to which the employee belongs should not yet have the status End of payroll.
    Source: help.sap.com
    Donnie

Maybe you are looking for