Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM for getting Previous Payroll Periods while passing current PY Period

Former Member
0 Kudos

Hi Team

hope you are doing good.

Can you help me get FM for getting the previous Payroll Periods.

Reqt : I ll pass current PY runs Payroll Period and Year and FM should get previous Payroll period and also Year.

ie I ll give 12 as PY Period and Year as 2009 and FM should give me 11 as Payroll Period & Year as 2009.

I tried with SLIM_GET_QUARTERLY_PERIODS & HR_99S_MONTHS_BETWEEN_DATES , they ll give with dates and also input i should give date types which I dont want,

Can you help me in this regards

Kind Regards

Rohit.S

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

check fm HR_GET_LAST_PAYROLL_PERIOD. This function refers to table t549q

3 REPLIES 3

Former Member
0 Kudos

Hi,

Not sure about the fm but you can query table t549Q to get previous period.

VABRJ Previous payroll year

VABRP Previous payroll period

kesavadas_thekkillath
Active Contributor
0 Kudos

check fm HR_GET_LAST_PAYROLL_PERIOD. This function refers to table t549q

0 Kudos

Hi Keshav,

hope you are doing good.

Yah thats the FM I require, I am able to get it through one of HR ABAP guys.

Anyhow you hit the target right on spot.

Thank you for sharing solution, and for your valuable time .

Kind Regards

Rohit.S