on 2010 Nov 10 9:32 AM
Dear Friends,
Which Function Module or how to read the previous payroll period begin date & end date.
Pls. advice.
Thanks..
Regards,Prashant
Edited by: Prashant Patil on Mar 4, 2011 4:31 AM
Edited by: Prashant Patil on Mar 4, 2011 4:33 AM
Hi.
An option would be to use static method READ_BY_PREV_PERIOD (Find Period using Previous Period) of class CL_HR_T549Q (Class for Reading Table 549Q) using PERMO (TYPE PERMO Period parameters); VABRJ (TYPE VABRJ Payroll year); and VABRP (TYPE VABRP Accounting period) which populate a T549Q structure like (TYPE T549Q Payroll year).
Examples within PNP report:
CALL METHOD cl_hr_t549q=>read_by_prev_period
EXPORTING
permo = pn-permo
vabrj = pn-pabrj
vabrp = pn-pabrp
IMPORTING
t549q = ls_549q.
If you need to integrate this code in payroll evalution then use exporting parameters from APER structure instead of PN.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.