cancel
Showing results for 
Search instead for 
Did you mean: 

Function module to get the last pay period of an employee

Former Member
0 Kudos

Hi Experts,

I have a scenario where i need to get the sequence number of the last pay period of an employee in that particular calendar year.

Can anyone help me in identifying the logic or help me in finding a FM that helps me in this issue.

Thank you all in advance!

Regards,

Praveenkumar T.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member235056
Active Contributor
0 Kudos

Hi,

Use function module CU_READ_RGDIR to get all sequence numbers of an employee and then use function module CD_READ_LAST to get latest or most recent sequence number and then using PYXX_READ_PAYROLL_RESULT to get pay results for same.

Thanks,

Ameet

Former Member
0 Kudos

Hi,

Use function CU_READ_RGDIR to get all seqnr of employee.

Then read the seqnr from return table value by passing your required period in FPPER field (for-period).

Then pass it to ur payroll result read FM.

Eg. PYXX_READ_PAYROLL_RESULT.

Cheers,

Raja.D