SAP ABAP IMG Activity OHTX03016 (BAdI: Multiply Payroll Hours and Payroll Days)
Hierarchy
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
   PT (Application Component) Personnel Time Management
     PTIM (Package) HR Time Management Application Development
IMG Activity
ID OHTX03016 BAdI: Multiply Payroll Hours and Payroll Days  
Transaction Code S_PL0_09000363   (empty) 
Created on 20020430    
Customizing Attributes OHTX03016   Multiplication of Payroll Hours and Payroll Days 
Customizing Activity OHTX03016   Multiplication of Payroll Hours and Payroll Days 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name TIM00ATTABSCOUNTING    

Use

You can use this Business Add-In (BAdI) to multiply values for an employee's payroll hours and payroll days by a factor in order to generate new values through customer-specific calculations. The new values are then incorporated in counting and any resultant quota deduction. You can determine the calculation factor using the employee's working time data, which is available as an import parameter of the BAdI methods.

The BAdI is called during evaluation of data in the Absences (2001) and Attendances(2002) infotypes for each day that is between the start date and end date of the infotype record being processed. When the BAdI is called, the system outputs the country grouping (MOLGA) of the employee whose data is being processed.

You can define only the values for payroll hours and payroll days using customer-specific calculations.

If you want to generate new values for payroll hours and days, but using a factor is not sufficient for your requirements, you can use the PT_ABS_ATT_COUNTRY BAdI ( Free Determination of Payroll Hours and Payroll Days).

Example

Requirements

Standard settings

There are no implementations of the BAdI in the standard system.

Recommendation

Activities

After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.

If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:

  1. In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.

    The screen for creating BAdI implementations is now displayed.

  2. Enter a short text for the implementation in the Short text for implementation field.
  3. 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.

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

  9. Choose Activate

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

Further notes

Use

Requirements

Standard settings

Activities

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20020430 
SAP Release Created in 470