SAP ABAP IMG Activity PY_AU_PER_02 (BAdI: Filter Employees)
Hierarchy
SAP_HRCAU (Software Component) Sub component SAP_HRCAU of SAP_HR
   PY-AU (Application Component) Australia
     PC13 (Package) HR accounting: Australia
IMG Activity
ID PY_AU_PER_02 BAdI: Filter Employees  
Transaction Code S_L4H_49003184   (empty) 
Created on 20121212    
Customizing Attributes PY_AU_PER_02   BAdI: Filter Employees 
Customizing Activity PY_AU_PER_02   BAdI: Filter Employees 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HR_AU_APSED_FILTER_PERNR    

Use

This Business Add-In is used in the Payroll Australia (PY-AU-PS) component.

This Add-In enables you to filter the employees based on your requirements.

For example: In case you want APS Remuneration report (RPLPBSQ8) to generate the details for all the employees except the employees who are on LWOP on 31/12/xxxx, where xxxx is the reporting year. You can do the same using this BadI.

You can use the following methods in the BAdI with the corresponding import and export parameters as per your requirements:

1.    FILTER_PERNR

You can use this method to filter the personnel number.

  • Importing Parameters
    • PERNR - Refers to personnel number
    • DATE_OF_EFFECT - Refers to 31/12/xxxx, where xxxx is the reporting year
    • P0573 - Refers to the structure for 0573 Infotype
  • Exporting parameters
    • FLAG

Requirements

You should only carry out this step if both of the following points apply:

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

Standard settings

In the standard SAP solution, the Business Add-In is not activated.

Activities

After calling up the Customizing 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.
  2. Place the cursor on the method, and double-click to enter method processing.
  3. Enter the coding for the implementation between the statements method FILTER_PERNR ~ <Name of method> and endmethod.
  4. Save and implement your coding. Return to the Edit Implementation screen.
  5. Save the entries on the Edit Implementation screen.
    Note
    You can also change the implementation, and then activate it at a later time. In such a case, end the processing stage at this point.
  6. Choose Activate
    The coding you stored in the method will be run when the application program is executed.

Example

To display the sample code, choose Goto -> Sample Code -> Display

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 1   Mandatory activity 
Critical / Non-Critical 1   Critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
PY_AU_PER_02 AU Australia
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20121220 
SAP Release Created in