cancel
Showing results for 
Search instead for 
Did you mean: 

For US payroll

Former Member
0 Kudos
84

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

Accepted Solutions (1)

Accepted Solutions (1)

antoine_foucault
Active Contributor
0 Kudos

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.

Answers (0)