SAP ABAP IMG Activity OHAKREPBADI01 (Fill ROE data; check authority of user to view employee data)
Hierarchy
SAP_HRCCA (Software Component) Sub component SAP_HRCCA of SAP_HR
   PY-CA (Application Component) Canada
     P07C (Package) HR customizing: Canada
IMG Activity
ID OHAKREPBADI01 Fill ROE data; check authority of user to view employee data  
Transaction Code S_SL0_21000046   (empty) 
Created on 20040503    
Customizing Attributes OHAKREPROEBADIS   Business Add-Ins (BAdIs) for Record of Employment (ROE) Reporting 
Customizing Activity OHAKREPBADI01   Fill ROE data; check authority of user to view employee data 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OHAKREPBADI01    

Use

This step describes how to set up customer-specific enhancements using the optional Business Add-In (BAdI) HRPAYCA_ROE_001, which features two methods, each of which can be used to fulfill a distinct business purpose. Each of the two methods delivered with this Business Add-In is listed below, along with its corresponding business purpose.

  1. FILL_ROE_DATA
    Apply this method if you wish to substitute the contents of standard ROE blocks with customer-specific values. This method is called within the ROE Generator subapplication of the Record of Employment (ROE) Workbench.
  2. AUTHORITY_CHECK
    Apply this method if you wish to perform authorization checks for users who attempt to view employee ROE data. This method is called within the ROE Employee Viewer subapplication of the Record of Employment (ROE) Workbench.

Requirements

You wish to substitute the corresponding standard process that is delivered with the standard system with a process of your own and understand that BAdI implementation HRPAYCA_ROE_001 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.

The BAdI described here is optional. Therefore, only implement this BAdI if your enterprise has the need and desire to do so. Thus, the following prerequisites apply to Business Add-Ins for ROE Reporting:

  • You wish to substitute the contents of ROE blocks that are delivered with the standard system with values of your own. To this end, you must implement a Business Add-In along the lines of method FILL_ROE_DATA in HRPAYCA_ROE_001.
  • You wish to perform authorization checks for users who attempt to view employee ROE data. To this end, you must implement a Business Add-In along the lines of method AUTHORITY_CHECK in HRPAYCA_ROE_001.

Activities

To implement Business Add-In HRPAYCA_ROE_001 for ROE Reporting, follow these steps:

  1. 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.)
  2. 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 Record of Employment (ROE) Workbench may issue error messages or short dumps as it processes employee data.
  3. Enter a short text for the implementation in the Implementation name field, then choose Continue.
  4. 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.
  5. Save your entries and assign the implementation to a package.
  6. Place the cursor on the method you wish to process, then double-click to initiate method processing.
  7. Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
  8. Save and implement your code.
  9. Return to the Edit Implementation screen, then save your entries there.
  10. 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.

Example

In the standard system, Block 13 - Occupation is filled with the position text maintained in Position Texts table T528T. By implementing BAdI HRPAYCA_ROE_001, the text Seasonal Employee can be substituted within the method FILL_ROE_DATA as follows:

  • method IF_EX_HRPAYCA_ROE_001~FILL_ROE_DATA .
    ...
    * Change Box 13 - Occupation
    gendata-plstx = 'Seasonal Employee'.
    endmethod.

See also

For additional information, consult the following resources:

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  20040503 
SAP Release Created in 500