Ansicht
Dokumentation

PAY_ES_SEGS05 - BAdI: Modification of Social Insurance data for payroll

PAY_ES_SEGS05 - BAdI: Modification of Social Insurance data for payroll

ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This business add-in is used in component Payroll: Spain (PY-ES). With this business add-in you can define how to process the Social Insurance information in the payroll , for example, how reports Payroll Spain (RPCALCE0) and FDI Message (RPCFDIE0) calculate the daily regulatory base in cases of temporary incapacity. The infotype .FDI Message Data (0768) reads data of the report RPCALCE0, and hence, also uses this business add-in.

Interface IF_HRPAYES_SOCIALSECURITY_CALC is made up of the following methods:

  • Changes PMEE5 structure for use in feature ESS01 (FILL_PMEE5): this method allows changing the fields of structure Field list for feature: ESS01 (PMEE5), used by feature Working day type of daily regulatory base in case of temporary incapacity (ESS01). RPCALCE0 calls this method before reading the data of feature ESS01.
  • Changes working day for calculating the daily regulatory base (SET_JORNEY): this method allows changing the type of working day that is returned by feature ESS01. Report RPCALCE0 calls this method once feature ESS01 has returned the type of working day.
  • Changes the daily regulatory base in case of absence (SET_BRD_BASES): this method allows changing the calculated daily regulatory base. Report RPCALCE0 calls this method after calculating the daily regulatory base.
  • Changes working day for calculating the daily regulatory base for FDI (SET_JORNEY): this method allows changing the type of working day that is returned by feature ESS01. Report RPCFDIE0 calls this method once feature ESS01 has returned the type of working day.
  • Changes PMEE5 structure for use in ESS01 for FDI (FILL_PMEE5_FDI): this method allows changing the fields of structure Field list for feature: ESS01 (PMEE5), used by feature Working day type of daily regulatory base in case of temporary incapacity (ESS01). RPCFDIE0 calls this method before reading the data of feature ESS01.
  • Changes the daily regulatory base in case of absence for FDI (SET_BRD_BASES_FDI): this method allows changing the calculated daily regulatory base. Report RPCFDIE0 calls this method after calculating the daily regulatory base.
  • Changes table IT after running function EBPI0(CHANGE_IT_AFTER_EBPI0): this method allows calculating the incapacity to work allowance for work-related accidents and non-industrial diseases for partially retired pensioners. For further information, please see SAP note 2262326. The method also allows changing the absence bases calculated by function Basis and allowance calculation forIT (EBPI0).
  • Changes the IT start date for FDI (CHANGE_IT_START_DATE): this method changes the start date of the absence in case of temporary disability.
  • Changes configuration of deferred wage types to be recovered(CHANGE_MDIF_WT_CONVERSION_TAB): this method allows the parameterization of wage types that must be recovered during the period of transition from the payroll calculation from deferred period to current period. Using the number of personnel, the validity, and the option chosen for the situation Change of deferred period to current period(SMDTR), you can change table PESS0_MD_WT_CONVERT_TAB.
  • Changes the daily regulatory base in case of absence in month of registration(SET_BRD_BASES_HIRING_MONTH): this month allows changing the value of the daily regulatory base calculated in the payroll when the employee has an absence in the same month of his/her hiring. The change is based on the personnel number, the validity, and the date of start of the absence.
  • Changes the bases in case of partial strike(ADJUST_PARTIAL_STRIKE_BASES): this method allows overwriting the common and occupational contingencies bases of the employees corresponding to each day of partial strike. Also, the method allows changing the total amount of the contribution bases. The change of bases is based on the absence information, the payroll results and the calculated bases.
  • Changes the minimum basis (ADJUST_MINIMUM_BASE): this method allows changing the contribution basis of an employee according to his/her working day established in the contract. The method can be applied to select specific employees; therefore, take into account that you must select parameter CV_BASE_WAS_ADJUSTED to specify that the employee’s basis has been changed using the BAdI. Thus, the system does not run the standard procedure of the contribution basis.
  • Changes the Social Insurance contributions (ADJUST_QUOTAS): this method allows changing the value of the Social Insurance contributions as calculated by the payroll function Contribution bases calculation and Social Insurance contributions (ESV00). The method reads the information: days, bases, absences, payroll results. Then the method allows changing the wage types resulting from the calculation of bases and contributions.
  • Changes day adjustment table (MODIFY_DAYS_ADJUST_TABLE): this method allows you to change the days adjustment criteria. Use this method, for example, when the employee has absences that Social Insurance must consider as inactivity. The method reads the personnel number, payroll and time management data, as well as data from the following infotypes:
  • Personnel Actions (0000)

  • Organizational Assignment (0001)

  • Personal Data (0002)

  • Planned Working Time (0007)

  • Social Insurance (ES) (0061)

  • ERE Data (0714)

  • Absences (2001)

The method allows then changes to table TY_T_TAB_AJUSTE, which stores all the information required for the definition of days adjustment for Social Insurance.






TXBHW - Original Tax Base Amount in Local Currency   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 7673 Date: 20240523 Time: 221113     sap01-206 ( 206 ms )