Ansicht
Dokumentation

OHAUTX00379 - BAdI: Define if retro differences of WTA override calculates in for period

OHAUTX00379 - BAdI: Define if retro differences of WTA override calculates in for period

General Material Data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Payroll (PY-US) component. You can use this BAdI to allow you to update the system behavior for Work Tax Area override retrocalculation. You can implement the methods below according to your business scenarios.

Method CARRY_OVER_RETRO_DIFFERENCES:

This method can be implemented to allow or block the carrying over of overrides. To have tax overrides evaluated in the for-period, set parameter CV_CARRY_OVER to false (abap_false/blank).

NOTE

The BAdI provides some importing parameters to allow you validate for which specific scenarios you would like the tax overrides to be evaluated in the for-period. We recommend you always validate if the parameter IV_AMOUNT_CHANGED is abap_false before executing the validations of any other parameters. If you would like to perform your validations when the parameter IV_AMOUNT_CHANGED is abap_true, you should be aware of the consequences.

In addition, we also recommend to validate the ALPparameters to ensure the employee has a time information (where can be a WTA override assigned). Be aware that simply setting CV_CARRY_OVER to False(abap_false/blank) without any validation, may cause undesirable side effects.

EXAMPLE

In payroll period 01.2016, the Work Tax Area is entered as California (CA) in the employee's infotype 0208

and in infotype 2002, the Work Tax Area override is entered as Arizona (AZ).

The amount corresponding to the hours that the employee worked in AZ is USD 116.

After payroll is run for period 01.2016, the tax assignment is changed to Oregon (OR).

No changes are made to the gross amount.

When payroll period 02.2016 is run, the USTAX payroll function is carrying over the following:

  • USD -116 wages to CA and
  • USD 116 to OR in:
  • Difference table used for tax retrocalculation (XDFRT) in the for-period 01.2016

  • Balance table used for tax retrocalculation (BAL) or Unbalance table used for tax retrocalculation (UNB) payroll result tables (BAL and UNB table in the in-period 02.2016)

Method CARRY_OVER_IT208_RETRO_DIFF:

This method can be implemented to have the amount differences forwarded to the current period (table XDFRT) without tax authority assignment. Set CV_CARRY_OVERto false (abap_false/blank), and the differences will be forwarded without tax authority assignment. This means that the tax will be calculated considering the tax authority from the current Work Tax Area (0208) infotype (valid in the in-period).

EXAMPLE

During the retrocalculation, when there is a retroactive amount update in Attendances(2002) or Employee Remuneration Info (2010) infotypes, without Work Tax Area override, the system forwards the amount (payroll table XDFRT) to the current period. The system forwards this amount with the tax authority from the Work Tax Area (0208) infotype that was valid in the for-period.

As a consequence, the tax is calculated for that authority in the in-period.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitionstab in the BAdI Builder (transaction SE18).

Further Information

For information about implementing BAdIs as part of the enhancement framework,

see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform

Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library:

Function-Oriented View -> Application Server -> Application Server ABAP -> Application Development on AS ABAP -> ABAP Customer Development -> Enhancement Framework.






General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 4904 Date: 20240523 Time: 173951     sap01-206 ( 88 ms )