SAP ABAP IMG Activity PAY_SE_VAC_QUOTA_MOD (BAdI: Change Last Vacation Day Quota)
Hierarchy
SAP_HRCSE (Software Component) Sub component SAP_HRCSE of SAP_HR
   PY-SE (Application Component) Sweden
     P23C (Package) HR customizing: Sweden
IMG Activity
ID PAY_SE_VAC_QUOTA_MOD BAdI: Change Last Vacation Day Quota  
Transaction Code S_L7D_24000190   (empty) 
Created on 20060331    
Customizing Attributes PAY_SE_VAC_QUOTA_MOD   BAdI: Change Last Vacation Day Quota 
Customizing Activity PAY_SE_VAC_QUOTA_MOD   BAdI: Change Last Vacation Day Quota 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HR_TIM_23_QUOTADEDUC    

Use

This Business Add-In (BAdI) is used in Vacation - Payroll Sweden (PY-SE) component.

Implement this BadI to modify the Deducted vacation days from total Absences Quota. This modification allows you to enter an employee's last vacation day(s) in Absence infotype (2001).

When an employee joins the company in the middle of the accrual period, or when an employee has a work schedule that is less than five days per week, the total vacation days accrued by the employee will be less than the days stored as absences quota in the Absence Quota infotype (2006).

The system prorates the number of vacation days accrued by the employee to adjust it against the total absences quota. These adjustments may result in the system not permitting entry of an employee's last vacation day.

Using this BAdI you can modify the number of vacation days deducted from the absences quota , so that it is possible to enter all vacation day(s) of the employee in the Absence infotype (2001).

Requirements

Carry out this activity only if the following conditions apply:

  • The SAP standard processes do not suit your needs.
  • You are a competent ABAP/4 programmer.

Standard settings

In the standard system, the Business Add-In is activated.

Activities

Peform these steps, in case the Business Add is in an inactive state.

After calling up the IMG activity, a dialog box appears, in which the existing implementations are displayed. Choose Change, and proceed as follows:

  1. From the tab index, choose Interface.

    The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.

  2. Save your entries, and assign the implementation to a development class.
  3. Place the cursor on the method, and double-click to enter method processing.
  4. Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
  5. Save and implement your code. Return to the Edit Implementation screen.

    Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.

  6. Choose Activate.

    The code you stored in the method will be run when the application program is executed.

Example

The maximum vacation days that an employee can accrue in a vacation accrual year is 25.

An employee joins the company on April 01, 2003 and has a work schedule of 2.5 days a week. In this case, the employee acrrues 25 days in quota 30 and 1 vacation absence is equivalent to 2 quota days. As per legal requirements, an employee is eligible for five weeks of vacation. As this employee has work schedule of 2.5 days a week, the employee is eligible for 12.5 days of vacation, rounded up to 13 full days of vacation.

The system processes vacation quota for the employee in the following manner:

  • To adjust 12.5 days of vacation against the total vacation quota of 25 days, the system deducts two vacation days for every day of vacation taken by the employee. The system deducts the absences quotas from Absences Quota infotype (2006).
  • To following rounding up rules, the system rounds up 12.5 days to 13 vacation days.
  • When the employee takes 12 days of vacation, the system deducts 24 vacation days from the vacation quota.
  • To allow the entry of the remaining vacation day, the BAdI implementation deducts one vacation day from the Deducted absences quota. This modifies the Remaining vacation days in the absences quota to 2, and you can enter the last vacation day of the employee in Absences infotype (2001).

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
PAY_SE_VAC_QUOTA_MOD SE Sweden
Maintenance Objects
Maintenance object type I   Business Add-In - Implementation 
History
Last changed by/on SAP  20060331 
SAP Release Created in