0

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

Feb 22, 2017 at 05:34 AM

73

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.

Rémi Corriveau Feb 23, 2017 at 12:49 PM
0

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.

Share
Rémi Corriveau Feb 22, 2017 at 05:40 PM
0

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?

Share
Mohammed Zia Uddin Feb 23, 2017 at 06:34 AM
0

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 ?

Share
Mohammed Zia Uddin Feb 28, 2017 at 06:52 AM
0

Dear Remi,

Share
Mohammed Zia Uddin Feb 28, 2017 at 06:57 AM
0

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.