SAP ABAP IMG Activity OHACST038 (Summary of Employee groups)
Hierarchy
SAP_HRCCH (Software Component) Sub component SAP_HRCCH of SAP_HR
   PY-CH (Application Component) Switzerland
     P02C (Package) HR Customizing: Switzerland
IMG Activity
ID OHACST038 Summary of Employee groups  
Transaction Code S_L6B_69000713   (empty) 
Created on 20031029    
Customizing Attributes OHACST038   Summary of Employee groups 
Customizing Activity OHACST038   Summary of Employee groups 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HRPAYCHLAW0    

Use

You can control the creation of several wage statements when the employee group changes with this Business Add-In.

Two wage statements are created for one person in the SAP standard system, if a change of employee group occurs in the evaluation period. The reason for this is that a change of employee grouping in the SAP standard system shows that a pension has also been drawn along with the normal wage. Two wage statements must be created in this case.

If you use several employee groups for active employment relationships, you must combine these employment groups so that only one wage statement is created.

Implement the GET_SPLIT_INDICATOR method.The return value of the method is a split indicator subject to the employee group. If different split indicators are determined in the evaluation period for one person, several wage statements are printed.

Standard settings

The BAdI is not implemented in the SAP standard system.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

Implement the the GET_SPLIT_INDICATOR method as described below, to create several wage statements if the person draws a pension and wage in the evaluation period:

The implementation example assumes that persons belonging to employee group '2' are pensioners and that all other employee groups contain active or inactive employment relationships.

METHOD if_ex_hrpaychlaw0~get_split_indicator.
CASE employee_group.
WHEN '2'.
split_indicator = 'R'.
WHEN OTHERS.
split_indicator = 'A'.
ENDCASE.
ENDMETHOD.

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
OHACST038 CH Switzerland
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20031029 
SAP Release Created in 470