cancel
Showing results for 
Search instead for 
Did you mean: 

Leave payment calculated based on period working days in regular payroll run for multiple periods

0 Kudos

Dear All,

How would i write the PCR to calculate leave salary ( Leave days / total working days in the Period) for the leave which are in multiple periods. For example if the user books an holiday from 24 jan till 11 feb 2017 , then the PCR should break down the holiday on period basis .

1) from 24 jan till 31 jan :- total WD in Jan '27' , no of holidays '7' . thus giving the pay as ( ( (Basic Pay / Total WD ) * no of holidays.

2) from 1 Feb till 11 Feb :- total WD in Feb '24' , no of holidays '9' . thus giving the pay as ( ( (Basic Pay / Total WD ) * no of holidays.

The system should be able to get the future period total no of working days.

I am running my payroll in January and will pay the actual salary and the leave salary in January Payroll. WE are using Payroll international and we don't have time sheet.

Kindly suggest me how can i achieve the above solution.

Accepted Solutions (1)

Accepted Solutions (1)

former_member193210
Active Contributor
0 Kudos

Yes Mohammed, Time Evaluation can be "run" in the future, but that would not help you.

What you would require is a Custom Function that would read IT2001, and if "Today" is the Start Date of the Absence, calculate the Number of Absence Days (Calendar Days or Work Days?) and transfer the result into Table ZL through an Information WT. Then, during Payroll Processing of the Payroll Period where the Absence begins, you could read that Information WT and act on it.

Answers (4)

Answers (4)

0 Kudos

Dear Remi,

Thank you for your guidance , I have created one zfunction to call an abap program, the abap program will in turn get the absences and do the calculation based on working days for multiple periods and overwrite the value of leave pay wage type.

Thanking your once again.

0 Kudos

Dear Remi,

0 Kudos

Dear Remi,

Yes , we can have leave up to 3 months.

Paid and unpaid absences are treated differently.

Can the Time Evaluation be run for periods that are different from current payroll period ?

former_member193210
Active Contributor
0 Kudos

Have you tried using Time Evaluation to read IT2001 and establish the number of absence days, and transfer that information to Table ZL through an Information Wage Type?

What if the absence is more than a month or two?

Will there be a different treatment for Paid Absences and Unpaid Absences?