Hierarchy
⤷ PT (Application Component) Personnel Time Management
⤷ PTIC (Package) HR Time Data: Customizing
IMG Activity
ID | OHTX3206 | Develop Enhancement for Leave Accrual |
Transaction Code | S_AHR_61010601 | IMG Activity: OHTX3206 |
Created on | 19981221 | |
Customizing Attributes | OHTX3206 | Develop enhancement for leave accrual |
Customizing Activity | OHTX3206 | Develop Enhancement for Leave Accrual |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | OHTX3206 |
If the previous options for customizing leave calculation were not sufficient for your purposes, you can use SAP's enhancement concept to call a function exit where you can store your own rules for calculating leave.
If you intend to carry out this step, read the online documentation.
Example
Requirements
A good knowledge of ABAP/4 programming language is required to operate the function exit. You can store your own coding at specially reserved positions; SAP cannot be liable for this. All data made accessible to the application program via the fixed interface is stored consistently in the system. If the data is not correctly processed, it is ignored.
Standard settings
The function exit is not activated in the standard system.
Recommendation
Use the function exit only if you have already exhausted all modification possibilities using features.
Activities
- Create an enhancement project.
- Assign the SAP assignment HRPTIM02 to your project.
- Process the function exit EXIT_RPILVA00_001.
- Document your project.
- Activate the project. The enhancement will not become effective until
you have activated the project.
Further notes
Store your coding in include ZXPLAU01 when you process the function exit. This is a customer-specific name range and is not overwritten when there is a release upgrade.
You can use the following data for the evaluation:
Variable Meaning
PPERNR Personnel number
LEAVE_YEAR Entitlement year of new leave
SENIORITY Seniority in years
AGE Age in years
HIRE_DATE Hiring date
FIRE_DATE Date of notice
ACT_WRKHRS Hours worked in past year
PLN_WRKHRS Planned hours in past year
ONLY_NEW Only generate new entitlement?
ONLY_OLD Only take over remaining leave?
Tabelle Meaning
PP0000 Personnel Actions
PP0001 Organizational Assignment
PP0004 Challenge
PP0005 Leave Entitlement
PP0007 Planned Working Time
PP0008 Basic Pay
PPSP Personal work schedule in past year
The internal table VACATION must be filled by the user, and is structured as follows:
LVTYP Leave type
LVNUM Leave entitlement (3 places before, 2 behind decimal point)
LVBEG Deduction start
LVEND Deduction end
OPERA Operation indicator
The operation indicator can have one of the following values. The effect on the present leave balance depends on the specification
assigned:
- A Entitlement calculated is increased/reduced
D Specified leave record is deleted
R Leave record is replaced by data specified
If you do not enter a value for the operation indicator, processing
is as for R.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | OHTX3206 | 0 | HLA0100350 | Quotas |
Maintenance Objects
Maintenance object type | C | Customizing Object |
Assigned objects | ||||||
---|---|---|---|---|---|---|
Customizing Object | Object Type | Transaction Code | Sub-object | Do not Summarize | Skip Subset Dialog Box | Description for multiple selections |
CMOD | L - Logical transport object | CMOD | 0000000007 | Leave Accrual: Set Up SAP Enhancement |
History
Last changed by/on | SAP | 19981221 |
SAP Release Created in |