Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Feb 23, 2017 at 12:49 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 22, 2017 at 05:40 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23, 2017 at 06:34 AM

    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 ?

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 28, 2017 at 06:52 AM

    Dear Remi,

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 28, 2017 at 06:57 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded