Ansicht
Dokumentation

HRSFI_BADI_COMP_ACTV - BAdI: Activation of Compensation Data Imported from SFSF

HRSFI_BADI_COMP_ACTV - BAdI: Activation of Compensation Data Imported from SFSF

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used for the integration add-on for SAP ERP HCM and SuccessFactors BizX.

You can use this BAdI to specify how the compensation data imported from the SuccessFactors BizX system is to be further processed in payroll in the SAP ERP system. The BAdI is intended to insert new entries into the Personnel Management infotypes or to change existing entries.

Caution
Always use CL_HRSFI_COMP_UTILITIES=>INFOTYPE_INSERT to make these changes. The infotype changes are thereby added to a buffer that is further processed (saved to the database, reset if there is a test run, and so on) by the calling class. If other changes are made, it cannot be ensured that they are only saved to the database with the related status information.

The implementations that you create for this BAdI serve as activation types for the field mappings that you create in the Customizing activity Define Fields for Importing Compensation Data. For more information, see Define Fields for Importing Compensation Data.

The BAdI uses the following methods:

  • SET_ACTIVATION_FIELDS
The report Activation of Employee's Planned Compensation Data (RH_SFI_ACTIVATE_COMP_DATA) calls this method to use the import parameter IT_ACTIVATION_FIELDS to transfer the data for the activation to the BAdI. You can use this method to perform checks and generate messages if necessary. If an error message is returned in this method, the system terminates the processing of the current employee in the activation report.
The BAdI must buffer the transferred data in the instance.
  • ACTIVATE_CHANGES
The report RH_SFI_ACTIVATE_COMP_DATA calls this method for the actual activation. The data previously transferred to the BAdI instance is processed further and updated in payroll.
The method has an import parameter IV_TEST_MODE, which you can use to implement a test activation without updating the database. You define the test mode on the selection screen of the activation report. For more information, see Activation of Employee’s Planned Compensation Data.
  • GET_FIELD_LIST
See GET_FIELD_LIST.
  • CALL_FIELD_F4
See CALL_FIELD_F4.

The BAdI uses the activation type as a filter value. For more information, see Activation Type for Importing Compensation Data from SFSF.

  • HRSFI_COMP_BONUS_ACTIVATION (filter value: SAP_BONUS_ACTIVATION)
This implementation activates non-recurring payments in the infotype Additional Payments (0015). It first determines the currency valid for the relevant employee in the infotype Basic Pay (0008).It then converts the bonus amount transferred from SuccessFactors BizX to this currency. The implementation then generates a record of the infotype Additional Payments for this bonus amount.
The implementation requires the following data that is retrieved using the method SET_ACTIVATION_FIELDS:
  • EFFECTIVE_DATE

The date on which the bonus is to be paid.
  • REASON

The change reason for master data according to the table Change Reasons (T530E).
  • CURRENCY

The currency in which the bonus is to be paid.
  • WAGETYPE

The wage type according to the table Wage Type Valuation (T512W).
  • BONUS_AMOUNT

The bonus amount.
  • HRSFI_COMP_SALARY_ACTIVATION (filter value: SAP_SALARY_ACTIVATION)
This implementation activates salary adjustments in the infotype Basic Pay (0008). Initially, depending on which parameter is usedto transfer the salary adjustment, the implementation decides how the amount is to be converted with regard to the payroll periodicity (yearly, monthly, and so on) and the employee's capacity utilization level (100% or part-time). It then converts the amount accordingly. The implementation adjusts the record of the infotype Basic Pay accordingly for the calculated amount.
The implementation requires the following data that is retrieved using the method SET_ACTIVATION_FIELDS:
  • EFFECTIVE_DATE

The date on which the salary is to be adjusted.
  • REASON

The change reason for master data according to the table Change Reasons (T530E).
  • CURRENCY

The currency in which the salary adjustment is to be made.
  • WAGETYPE

The wage type according to the table Wage Type Valuation (T512W).
  • SALARY_INCREASE

The amount of the salary adjustment according to the payroll periodicity.
  • ANNUAL_SALARY_INCREASE

The annual amount for the salary adjustment.
  • ANNUAL_100PCT_SALARY_INCREASE

The annual amount for the salary adjustment corresponding to a capacity utilization level of 100%.

Classes and function modules that you can use to convert date information, for example, are available for your customer-specific BAdI implementations. For more information, see Utilities for Implementing the Business Add-Ins for the Integration Scenario for Compensation Data.






Addresses (Business Address Services)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 7162 Date: 20240607 Time: 034108     sap01-206 ( 102 ms )