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
Similar Messages
-
How to import payroll result from 3rd party system to SAP
Hi Experts,
May i know how to import payroll result from legacy system / 3rd party payroll system into SAP.
i need to import the payroll result from Jan - April (from 3rd party payroll system) and system go live on May. I using payroll malaysia.
Thanks.check this link
http://help.sap.com/saphelp_40b/helpdata/en/91/80e9087834d111a4620060b03c3b0e/content.htm -
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 -
How to track payroll results if payroll runs twice in day.
Hi ALL,
How can i see all payroll results if payroll runs more than once in a day. i.e if program runs on 31.10.2008 at 9.00 AM and the same day program runs at 8.00PM .i have to find both results. please give me any table or program form whihc we can find the No.of time that program was run in the one day.
thank You
Ram>
Asam Ramakrishna wrote:
> Hi ALL,
>
> How can i see all payroll results if payroll runs more than once in a day. i.e if program runs on 31.10.2008 at 9.00 AM and the same day program runs at 8.00PM .i have to find both results. please give me any table or program form whihc we can find the No.of time that program was run in the one day.
>
> thank You
> Ram
The payroll results directory of an employee can be found in the database table HRPY_RGDIR, alternatively you
can also use the FM CD_READ_RGDIR or the macro RP-IMP-C2-CD to fetch the payroll results directory for an employee -
ABAP HR - How to insert payroll results using fm PYXX_WRITE_PAYROLL_RESULT
Hi,
I have a scenario where I want to read cluster information (PCL2 RX) from system A and insert it into system B. Both systems are SAP ECC 6.0. Employee master data already exists on target system, but no payroll results yet, so this is an insert and not an update.
I am using fm PYXX_READ_PAYROLL_RESULT (I also tried with HRCM_PAYROLL_RESULTS_GET) to read the data and then calling a RFC on system B where I use fm PYXX_WRITE_PAYROLL_RESULT to write the payroll results into database. Is this fm only to use in case of update, or it should also work when inserting new lines on the cluster? Because I always get a sy-subrc=0 but nothing is created on the db. Is there any other way to this? Do you have any code samples?
Many thanks,
MiguelHI Miguel:
I have succe add of new payroll records, the following reference code:
*& Report ZTEST_BJARNE8
REPORT ztest_bjarne8.
TABLES:pcl1,pcl2.
INCLUDE rpc2cd00. "Cluster CD data definition
INCLUDE rpc2ca00. "Cluster CA Data-Definition
INCLUDE pc2rxcn0. "Cluster CN data definition
INCLUDE rpc2rx00. "Cluster RX data definition internat. part
DATA: refvar_curr TYPE REF TO data.
DATA: refvar_prev TYPE REF TO data.
DATA: refvar_cumul TYPE REF TO data.
DATA: t52relid_header TYPE t52relid.
FIELD-SYMBOLS: <payresult_current>.
DATA: employee_number LIKE pc200-pernr,
client LIKE sy-mandt,
globalmolga TYPE T500L-MOLGA,
cluster_id LIKE t500l-relid,
isocode LIKE t500l-intca.
DATA: rgdir_entry LIKE pc261.
CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.
employee_number = '81000463'.
CLEAR:rgdir.REFRESH rgdir[].
CALL FUNCTION 'CU_READ_RGDIR_NEW'
EXPORTING
persnr = employee_number
check_read_authority = space
imp_client = client
TABLES
in_rgdir = rgdir
EXCEPTIONS
no_record_found = 1
import_mismatch_error = 2
no_read_authority = 3
OTHERS = 4.
LOOP AT rgdir.
ENDLOOP.
cluster_id = 'CN'.
SELECT SINGLE * FROM t52relid INTO t52relid_header
WHERE relid = cluster_id.
CREATE DATA refvar_curr TYPE (t52relid_header-typename).
ASSIGN refvar_curr->* TO <payresult_current>.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
clusterid = cluster_id
employeenumber = employee_number
sequencenumber = rgdir-seqnr
check_read_authority = space"false "already done
filter_cumulations = space
CHANGING
payroll_result = <payresult_current>
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
OTHERS = 8.
IF NOT <payresult_current> IS INITIAL.
"TODO changed RT data......
"Add new month payresult
rgdir-seqnr = rgdir-seqnr + 1.
CALL FUNCTION 'PYXX_WRITE_PAYROLL_RESULT'
EXPORTING
clusterid = cluster_id
employeenumber = employee_number
sequencenumber = rgdir-seqnr
payroll_result = <payresult_current>
CLIENT =
EXCEPTIONS
illegal_isocode_or_clusterid = 1
error_generating_export = 2
export_error = 3
subpool_dir_full = 4
no_update_authority = 5
incomplete_result_imported = 6
OTHERS = 7
IF sy-subrc <> 0.
ENDIF.
APPEND rgdir.
globalmolga = '28'.
client = '200'.
CALL FUNCTION 'CU_WRITE_RGDIR_NEW'
EXPORTING
persnr = employee_number
molga = globalmolga
imp_client = client
TABLES
rgdir = rgdir
EXCEPTIONS
no_update_authority = 1
OTHERS = 2.
CALL FUNCTION 'HR_FLUSH_BUFFER_UPDATE_PCLX'
EXPORTING
test = space
EXCEPTIONS
insert_error = 1
no_update_authority = 2
OTHERS = 3.
IF sy-subrc <> 0.
"MESSAGE e062.
ENDIF.
ENDIF.
"INCLUDE rpc2cd09.
*& INCLUDE
INCLUDE rpppxd00. "Data definition buffer PCL1/PCL2
INCLUDE rpppxd10. "Common part buffer PCL1/PCL2
INCLUDE rpppxm00. "Buffer handling routine -
How to find payroll results using includes
hi all,
I have a requirement to get the payroll results of number of data clusters using includes not by using function modules.
I know by using function modules.
How to find out the exact include for given data cluster. If there is any path please let me know.
thanks & regards,
sekhar.Hi,
You can define macros in the program and call depending on the cluster you need.
For Eg for B2 cluster,
rp-imp-c2-b2.
before calling macros,
You should fill the key
move pernr to b2-key-pernr.
move year to b2-key-pabrj.
move period to b2-key-pabrp.
move '1' to b2-key-cltyp.
rp-imp-c2-b2.
For payroll
RP-IMP-C2-RU
Regards,
Manoj. -
Transfer payroll result to FICO
hi friends,
Can u plz tell me how to transfer payroll results to FICO?
how do we integrate these two modules and where can we see the results?
plz reply back ASAP.
points are assured.You have to create symbollic accounts ...payroll results posted to Fi through symbolic accounts.
Wage types from Payroll (PY) are not assigned directly to accounts in Financial Accounting (FI), but via symbolic accounts. A number of wage types, which the system should post to a specific account in Financial Accounting, are assigned to a symbolic account in Customizing. The symbolic accounts account assignment type determines the type of posting (for example, posting to expense account, posting to receivable account, posting to payable account). The symbolic account is, in turn, assigned to the account in Financial Accounting. If the account in Financial Accounting is an expense account, it is usually assigned a cost element in Controlling (CO). This is used for posting personnel costs (actual data) and for transferring data from Personnel Cost Planning and Simulation (PA-CP).
http://help.sap.com/saphelp_erp2005vp/helpdata/en/f3/21e091110b4e46983af70d772a40b2/frameset.htm
employee grouping for account determination (feature PPMOD)
To see Payroll Posting document use T.code :PCP0 -
How to clear UNB table in the payroll result?
Hi,
We are getting the payroll error- The gross wages do not cover the negative offset that has been forwarded. Therefore, no gross up is permitted while running the Grossup.
I see the below table "UNB table" in the last payroll result. "UNB - Unbalance table used for tax retrocalculation" .
I think we are getting the above error because of this UNB table, can anyone help me to how to clear this table?
When we run the regular payroll, no tax is being deducted.
Please help
SaurabhHi Arti,
Thanks for your reply!!..
Seeing your reply, it gives me bit confidence to crack the existing problem, however, I'm still not clear with your answer... let me explain you the problem-
1. Employee was given 350,000 though Taxable Bonus WT with regular pay check
2. Later it came to know- out of the above amount, 75000 was Grossup amount
3. So in next payroll run, they entered -75000/- in regular Taxable bonus WT and +75000 in Grossup WT and also they deleted one IT210 record of GA tax authority which was wrongly created; and ran the payroll
4. Since then, in next payroll period- No tax is being deducted, so we are creating IT221 infotypes with Tax wagetype
5. If we are running the Grossup wage, payroll error- The gross wages do not cover the negative offset that has been forwarded; therefore, no grossup is permitted.
While running the regular payroll, overpayment Wagetype is being generated.
Now, I saw this UNB table is created and the below wagetype are there in the UNB table-
WT /5UT amount 0.00
WT 5430 amount -75000
WT 0200 amount 12500 ( Monthly salary)
WT 4530 amount 350000
Now I am thinking, if we are deducting tax through IT221,if we clear this UNB table, our problem might get resolved
It will be a great help for me if you can tell-
1. how to check, claims process is implemented or not?
2. I have good HCM experiece but this claims process is very new to me- pls guide me how to do that
Waiting for your reply, thanks in advance
Saurabh Garg -
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. -
How to clear the last_line_iterator for custom search result?
Hi Friends,
I have one issue regarding search result of service request please help me on this issue....
We have added some custom fields using value nodes and EEWB image field in search result of service requests....and the problem is when we click on export excel sheet button in result list for first time it is working fine data is showing in excel sheet, but after that when we done some changes in search screen and press search button for second time and press the export excel sheet...data not bound in excel sheet....
After analysis by me....after pressing the button and modify in search screen export excel sheet for second time in ME-> Last_line_iterator is not clearing it is containing previous search value for last_line_iterator.... so it is failing to call GET_ITERATOR( ) ....so anyone suggest who face same problem in their experience ....how to clear the Last_line_iterator ...let me know if any information required .....pls it is very urgent .....
thanks in advance....
regards,
kumarHi Lakshman,
Everytime user clicks on a new shop, create a session variable and set it to any value.
userSessionData.setAttribute("NEWSHOP","true");
Now go to history.jsp and just above this piece of code put a validation for the value of this session variable and
if its value matches to "true" than only let the below code to execute.After the validation dont forget to remove this
variable from session.
<isa:iterate id="historyItem" name="<%= UpdateHistoryAction.HISTORY_LIST %>"
type="com.sap.isa.isacore.HistoryItem">
Likewise you can work with organizer frame refresh also.Hope this helps you.
Regards,
Arshi -
How to realize retiree (inactive employee) payroll result posting to FICO?
Hi,
Now I have one requierment: the retiree who postion is '99999999' need to run payroll and posting.
now I have make the retiree run payroll by change It0003. but I don't know how to make the payroll result posting ,because no cost centre.
who can help me!
thanksHi,
Maintain Cost Center in IT0027 for the employee. Run payroll and post it.
VK -
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. -
How to test previous payroll results
Hi everybody,
if ur current payroll is oct.. want to test august payroll,,,without cahnaging the masterdata,control record or infotype0003...how do u run payroll run? Is it possible to delete payroll results?Hi,
You can execute the payroll driver for the 'Test Run mode'. Change the control record via transaction 'PA03' for the required payroll period and run the payroll. You can only check the output Log and the remuneration statement.
Database tables and clusters will not be uploaded.
Other way is to check the old pay results using the transaction 'PC_PAYRESULT'.
Thanks & Regards, Swapnil Mishra -
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.VDear 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 -
T code to delete bulk payroll results
Hi,
Can anyone tell me the T Code for deleting Bulk Payroll Results.
Thanks,
NikhatTry running report RPUDEL20, it will delete the cluster results
- Ashish
Maybe you are looking for
-
How do I share not only my music but also my apps with other users on the same computer?
I've searched around and this one link keeps comming up: http://support.apple.com/kb/HT1203 That link only tells me how share with music I want apps and everything else shared between multiple users on the same windows computer. Thanks.
-
IPhone 4 catching fire and lack of support from Apple?
On Saturday when I was charging my phone I noticed a burning smell and immediately ran over to my iphone and pulled out the charger cable which was glowing red and smoke was coming from both it and my iphone 4. My phone although slightly fire damaged
-
Adapter Module: Validate an XML with an XSD
Hello all, I'm developing a PI adapter module (Exchange Infrastructure 3.0) for the Mail Adapter. In this module I need to get each XML attachment and then validate with an XSD schema, for this I'm using the SAX parser. I successfully retrieved all X
-
ITunes 7.0 Not Allowing Video Playback
Ever since upgrading to iTunes 7.0 all the video podcasts and purchased videos from the iTunes store do not play on my Windows XP Pro PC. The sound is fine but the video is just a a bunch of multiple colors and lines. I checked the IDE settings as su
-
SQL Query using bind variables
Hi All, Can any one please explain me how oracle will parse the below substr query using the bind varaibles, just want to know what oracle does in the backend when processing the below substr query. SUBSTR(:CDR_RT,3,7) Regards, Deepti