Ansicht
Dokumentation

PAY_DE_AVMG_470 - BAdI: Central Functions of Mandatory ER Allowance

PAY_DE_AVMG_470 - BAdI: Central Functions of Mandatory ER Allowance

ABAP Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

BAdI HRPAYDE_B_AVM_GEN_AGZ is used to make customer-specific changes to routines used for calculating the ER allowance in the standard SAP system. This is only necessary if you require a different functionality than those provided in the standard SAP system.

Before making any changes, you have checked carefully if a different logic is really necessary.

This implementation is used for central functions when calculating the ER allowance. As an overview, the implementations actively used in the standard SAP system and selected methods are described here.

Interface: IF_HRPAYDE_AVM_GEN_AGZ
Class: CL_HRPAYDE_IM_AVM_BART_GEN

Methods:

  • BEENDE_FIKTIVBERECHNUNG
    If the social insurance actually saved is required for the calculation of the ER allowance (calculation type SPTZ - Saved SI Contribution (Exact Fictitious Calculation)), this is calculated and provided using the relevant fictitious runs in payroll. This method determines after how many fictitious runs no further run has to be executed.
  • VERTEILE_ZUSCHUSS
    This method is required to distribute several modules that receive an ER allowance in the amount of the actually saved social insurance. The distribution is done proportionately in the amount of the amounts converted by the employee.
    After distributing the ER allowance, in the case of modules with a minimum formation, a comparison is made between the proportionately saved social insurance contributions and the comparison value.
  • BERECHNE_AUFTEILUNG
    This method calculates the distribution of the saved social insurance contributions among the modules. It is called in method VERTEILE_ZUSCHUSS.
    If the amount of a ER allowance module may not be changed in a retroactive accounting period due to an individual transfer, the method only distributes the rest of the saved social insurance contributions among the remaining ER allowance modules.
  • VERGLEICHE_ZUSCHUSS_PRO_BAUST
    In the case of ER allowance modules with minimum formation, this method compares the social insurance contributions that were saved proportionately for this module with the ER allowance resulting from the alternative calculation. It reads this comparison value from attribute MV_VERGLEICHSBETRAG of the instance of the class that made this calculation. It is called in method VERTEILE_ZUSCHUSS.
    If you use your own calculation type for the minimum formation, derive your class from class CL_HRPAYDE_IM_AVM_BART_MINF.

    Example of a distribution in the standard SAP system:
    An employee has two remuneration conversions whereby an ER allowance in the amount of the social insurance actually saved is granted for each one.

    Remuneration conversion (EUW) of employee
    EUW 1: EUR 600.00
    EUW 2: EUR 400.00
    Social insurance actually saved (/5S2) EUR 100.00
    Distribution of saved social insurance:
    ER alllowance for EUW 1: 60% = EUR 60.00
    ER alllowance for EUW 2: 40% = EUR 40.00

Payroll function DAVMG AGZ calculates the allowance for each ER Allowance module using the calculation rule stored in Customizing. For employer allowances with a fictitious calculation, only one figure for total savings of social insurance contributions can be determined in the fictitious run (wage type /5S2). The SAP standard implementation of BAdI HRPAYDE_AVM_BART_GEN distributes the total savings among the ER allowance modules with fictitious calculation in relation to the conversion amounts.

In retroactive accounting periods, the transfer amount of a contract does not change. Therefore, the amounts of modules that belong to a contract with individual transfer remain unchanged. This does not apply if subapplication ZVUW is active or indicator Recalculation Allowed has been set in module Customizing for the ER allowance module. If the saved social insurance contributions change in a retroactive accounting period as a result of the remuneration conversion, the SAP standard implementation of BAdI HRPAYDE_AVM_BART_GEN only distributes this difference accordingly among the ER allowance modules without individual transfer.

Example:

An employee has three AVmG contracts, one of which has an individual transfer. Each ER allowance module subsidizes the remuneration conversion module in the same contract. The allowance amounts to the saved social insurance contributions (wage type /5S2) amounting to a total of EUR 60.00.

Contract Individual transfer Amount Rem. Conv. Amount ER All.
PK 01 X 400.00 40.00
PK 02   100.00 10.00
PK 03   100.00 10.00

The saved social insurance contributions change retroactively from EUR 60.00 to EUR 64.00. As the transfer amount may not change, the additional EUR 4.00 of employer allowance is distributed among both contracts PK 02 and PK 03:






Vendor Master (General Section)   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 6961 Date: 20240523 Time: 200954     sap01-206 ( 142 ms )
Contract Individual transfer Amount Rem. Conv. Amount ER All.
PK 01 X 400.00 40.00
PK 02   100.00 12.00
PK 03   100.00 12.00