SAP ABAP IMG Activity HR_ECM_00_AD_E15 (Business Add-In: Get Data for Compensation Review Statement)
Hierarchy
EA-HRGXX (Software Component) Sub component EA-HRGXX of EA-HR
   PA-EC-AD (Application Component) Compensation Administration
     PAOC_ECM_ADM_BL (Package) Compensation Administration - Business Logic
IMG Activity
ID HR_ECM_00_AD_E15 Business Add-In: Get Data for Compensation Review Statement  
Transaction Code S_P2H_60000006   (empty) 
Created on 20031016    
Customizing Attributes HR_ECM_00_AD_3_2_E   Compensation Administration - Not required - Not critical - User Exits 
Customizing Activity HR_ECM_00_AD_E15   BAdI HRECM00_CRS 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HRECM00_CRS    

Use this Business Add-In to extract the compensation data of an employee using methods other than the standard ones. Customer-specific fields can be added by using an appended structure and a customer-specific form.

The Business Add-In consists of one method described below.

GET_CRS_DATA

This method replaces the complete data extraction routine related to the employee's compensation.

The following import parameters are provided:

  • PERNR
    Personnel number.
  • BEGDA
    Begin date of the data extraction.
  • ENDDA
    End date of the data extraction.
  • CAREA_RANGE
    Range table for Compensation Area.
  • CPLAN_RANGE
    Range table for Compensation Plan.
  • CREVI_RANGE
    Range table for Compensation Review.
  • CCATG_RANGE
    Range table for Compensation Category.
  • MESSAGE_HANDLER
    Reference to interface IF_HRPA_MESSAGE_HANDLER. If any messages should be sent to the frontend, you can add them to the message list using method ADD_MESSAGE of this interface or function module HR_ECM_ADD_MESSAGE.

The following export parameters must be provided by your coding:

  • PROCESS_STANDARD
    Indicator to be set to 'X' if you want the system to ignore the result of your implementation and perform the standard routine.
  • IS_OK
    Indicator to be set to SPACE if errors have prevented your routine from retrieving the data successfully.
  • CRS_DATA_TAB
    This table contains all information about the compensation of an individual employee:
    • CPLAN
      Compensation plan.
    • CPLAN_TEXT
      The description of the compensation plan.
    • CCATG
      Compensation category.
    • CCATG_TEXT
      The description of the compensation category.
    • CREVI
      Compensation review.
    • CREVI_TEXT
      The description of the compensation review.
    • EFFDT
      Effective date.
    • BSSAL
      Calculation base salary.
    • CPAMT
      Compensation plan amount.
    • CPPCT
      Compensation plan percentage.
    • CPNUM
      Compensation plan number.
    • CURRE
      Currency.
    • STKUN
      Stock unit.
    • STKUN_TEXT
      The description of the stock unit.
    • FREQU
      Unit of time for Enterprise Compensation Management.
    • FREQU_TEXT
      The description of the unit of time for Enterprise Compensation Management.
  • CRS_NEW_SALARY
    This structure contains all information about the new salary of an individual employee:
    • EFFDT
      Effective date.
    • NWSAL
      New salary.
    • CURRE
      Currency.
    • FREQU
      Unit of time for Enterprise Compensation Management.
    • FREQU_TEXT
      The description of the unit of time for Enterprise Compensation Management.

Example

The customer has special requirements concerning the data extraction of the new salary of an individual employee.

Requirements

Standard settings

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

For more information on using Business Add-Ins, refer to the SAP Library under Basis Components ->ABAP Workbench (BC-DWB) ->Changing the SAP Standard (BC)->Business Add-Ins.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired 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  20031028 
SAP Release Created in 200