Hierarchy
⤷ PY-CA (Application Component) Canada
⤷ P07C (Package) HR customizing: Canada
IMG Activity
ID | OHAKREPEEABADI02 | Substitute standard calculation of number of weeks worked by temp.employees |
Transaction Code | S_SL0_21000010 | (empty) |
Created on | 20040420 | |
Customizing Attributes | OHAKREPEEABADIS | Business Add-Ins (BAdIs) for Employment Equity Act (EEA) Reporting |
Customizing Activity | OHAKREPEEABADI02 | Substitute standard calculation of number of weeks worked by temp.employees |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | OHAKREPEEABADI02 |
Use
This step describes how to set up customer-specific enhancements using the optional Business Add-In (BAdI) HRPADCA_RPLEEAK0_002, which can be used to substitute the calculation of the number of weeks worked by temporary employees that is delivered with the standard system with a calculation method of your own. The method GET_WEEKS_WORKED within this BAdI consists of the following parameters:
- PERNR
- BEGDA
- ENDDA
- EEA_BUFFER
- WEEK_COUNTER and
- CALC_WEEKS_BY_IT16
As currently delivered, Employment Equity Act (EEA) Reporting refers to the payroll information of contract employees to calculate the number of weeks they have worked. However, for contract employees, the number of weeks worked can also be derived through reference to the Contract Elements infotype (0016). Therefore, you are at liberty to instruct Employment Equity Act (EEA) Reporting (if desired) to refer to contract employees' Contract Elements infotype (0016) records, rather than payroll information, to determine the number of weeks they have worked. To do so, set the export parameter CALC_WEEKS_BY_IT16 within method GET_WEEKS_WORKED of the present Business Add-In.
Requirements
You wish to substitute the calculation of the number of weeks worked that is delivered with the standard system with a calculation method of your own and understand that BAdI implementation HRPADCA_RPLEEAK0_002 is provided as an example to achieve this goal. This example is provided "as is" to illustrate how a BAdI implementation along these lines could be developed. You should not use this implementation yourself, but rather copy it to the customer name range and maintain it to meet your specific requirements.
Standard settings
The information explained below applies to all methods of BAdI HRPADCA_RPLEEAK0_002.
Activities
- Execute this IMG step. On the subsequent screen, enter a name for the implementation you wish to create. (Alternatively, if you have already used this BAdI to create other implementations, a dialog box appears, displaying the implementations that have already been created.)
- Choose Create. (Or, alternatively, Edit. The remainder of the documentation for this activity describes the steps to be performed when you create a new implementation.)
Caution
If you have already implemented this BAdI, then you must re-activate your current implementation. Otherwise, the report will issue error messages or short dumps as it processes employee data. - Enter a short text for the implementation in the Implementation name field, then choose Continue.
- On the subsequent screen, specify an Implementation short text, then choose the Interface tabstrip. The name of the implemented class fields are already found in this tabstrip.
- Save your entries and assign the implementation to a development class.
- Place the cursor on the method, then double-click to initiate method processing.
- Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
- Save and implement your code.
- Return to the Edit Implementation screen, then save your entries there.
- If you wish to activate the implementation you have created at a later date, then exit the Edit Implementation screen without activating the implementation. Otherwise, choose Activate from this screen to activate the implementation for immediate use.
Once you have completed these activities, the source code that you stored in the method will be run when the associated application is executed.
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 |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20051107 |
SAP Release Created in |