Ansicht
Dokumentation

HRPAYES_IRPF - BAdI: Check tax data

HRPAYES_IRPF - BAdI: Check tax data

BAL_S_LOG - Application Log: Log header data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

This business add-in (BAdI) is used in component Payroll: Spain (PY-ES). Using this business add-in you can control the data proposed for processing employment tax (IRPF) deductions and payments.

The interface IF_HRPAYES_IRPF consists of the following methods:

  • Calculate the IRPF reduction for employees over the limit (CALC_REDUC_OVER_IRR_INC_LIMIT): this method calculates the reduction of irregular incomes when the irregular income of the employee is higher than the annual limit, which is stored in the payroll constant IRPF: Max. limit irreg.inc. (ILMRI) in the Payroll constantview (V_T511P).
The BAdI reads the personnel number, the adjustment start date, the province and the annual amount of the irregular incomes. After processing this information, the BAdI changes the irregular income reduction on the data element Payroll: Amount(MAXBT).
  • Recalculate amounts of arrears and non-arrears(RECALC_DEDUC_EXP_PREV_YEARS): this method allows changing the value of the wage types for arrears and non-arrears in periods in which incorrect values have been saved on the results table (RT), as described in the SAP Note 2457170. The wage types in question are:
  • No expenses in arrears(/4GA)

  • Exp. retr. prev.fiscal yr(/4HA)

  • Prev.Fis.Yr Exp.In.Arr. (4KA)

  • Prev. Yr. Exp. No Arrears (/4LA)

The BAdI reads the personnel number and the next information of the period to be processed: start date, end date, payroll status and the work center/basic pay table. After processing this information, BAdI changes the results table (RT) in which the wage type values are stored.
  • Define personnel number by the tax payer's reference number(GET_PERNR_FROM_NIF): this method allows the identification of the personnel number of the employee by means of his/her tax payer’s reference number. This method can be used, for example, in case the employee has more than one personnel number for the same tax payer’s reference number.
The BAdI reads the tax payer’s reference number, the validity dates and the information specified in WITHHELD line of the XML file, as a result of the report Mass generation of employment tax data (RPCIR1E0). After processing this information, the BAdI identifies the personnel number.






General Material Data   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3189 Date: 20240523 Time: 214709     sap01-206 ( 56 ms )