06-05-2009 10:58 PM
hi,
could u plz anyone tell that how to read payroll results(net amt) for a particular pernr fro particular period .
06-06-2009 6:16 AM
Payroll results can be extracted using :u2013
If there is a need to do processing at individual steps:
u2022Read cluster directory using u2018CU_READ_RGDIRu2019
u2022Read valid period from cluster directory using u2018CU_READ_LASTu2019
u2022Read payroll results using u2018PYXX_READ_PAYROLL_RESULTu2019using SEQNO returned by u2018CU_READ_LASTu2019.
u2013Otherwise:
u2022Using function module u2018PYXX_GET_EVALUATION_PERIODSu2019or
u2022Using function module u2018HR_GET_PAYROLL_RESULTSu2019to import current payroll results.u2013
Examples:u2022RPMUST01 -Model report for monthly payroll results
u2022RPMUST02 -Model report for monthly payroll results -more than one period.
06-08-2009 8:12 AM
<pre>Hi,
There are 3 types to read payroll data.
Method -1
<span style="color:blue;">
a. Use LDB PNP and Selection Screen 900 in the Attributes of the program.
b. Define structures of PNP nodes PERNR, PAYROLL (type PAY99_RESULT) under NODES statement.
c. Define reference class for CL_PAY. (Pay type ref to CL_PAY).
d. Under GET pernr event create object PAY for each employee to get list of Payroll records. Call methods READ_RESULT (Read List of Selected Payroll Results), WRITE_RESULT (Write (Modified) List of Payroll Results for GET PAYROLL).
e. When GET payroll event is triggered, PAYROLL structure is filled up with payroll results.
f. Loop required tables like RT, CRT and gets the relevant information.</span>
Method-2
<span style="color:blue;">
1. Use LDB PNP.
2. Define structure of PNP node PERNR.
3. Declare Internal tables and structures used in program. (We use standard Include to define those. (1). Rpc2cd09 (Cluster Directory definitions). (2). Rpc2rx09 (Data Definition, Cluster RX File PCL2 (International Payroll Results)).
4. Read cluster directory from RP-IMP-C2-CU (x country indicator) by passing CD-key-pernr. RGDIR internal table is filled up.
5. Call the function module CD_EVALUATION_PERIODS to transfer the payroll results to payroll run as u2018Au2019 records (Current) and u2018Pu2019 records (Previous) by passing in-period and RGDIR internal table.
6. Loop new RGDIR itab and read cluster Rx (x Country Indicator) from RP-IMP-C2-Rx (x Country indicator) by passing Rx-key (structure contains pernr, seqno). Now data is available in RT, CRT, BT and many more tables.</span>
Method-3.
<span style="color:blue;">
a. Use LDB PNP.
b. Define structure of PNP node PERNR.
c. Declare Internal tables and structures used in program. (We use standard Include to define those. (1). Rpc2cd00 (Cluster Directory definitions). (2). Rpc2rxx0 (Data Definition, Cluster RX File PCL2 (International Payroll Results)).
d. Read cluster directory from CD_READ_RGDIR by passing CD-key (pernr).
e. Call the function module CD_EVALUATION_PERIODS to transfer the payroll results to payroll run as u2018Au2019 records (Current) and u2018Pu2019 records (Previous) by passing in-period and RGDIR internal table.
f. Loop new RGDIR internal table and read cluster Rx (x country indicator) from PYXX_READ_PAYROLL_RESULT by passing Rx-key (structure contains pernr, seqno) and Cluster id (RELID from RGDIR table). We will get the results into deep structure I_payroll_results type PAY99_RESULT. Now data is available in RT, CRT, and BT and in many more tables.</span></pre>
Thanks
Venkat
02-06-2016 11:47 AM