Ansicht
Dokumentation

HR_PBS_00_CA_01B - Override Calculation Module

HR_PBS_00_CA_01B - Override Calculation Module

PERFORM Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

A class is assigned to the calculation modules provided by the SAP standard system to perform the relevant calculation.

You can use this Customizing activity to assign an alternative customer-specific class to the calculation modules. This class is then used instead of the SAP class when the calculation is called.

The customer-specific class must inherit from the SAP class so that it contains the necessary methods and interfaces.

In the standard system, no overrides of calculation modules are delivered.

If you want to specify an alternative calculation to the SAP standard delivery for a calculation module, you create a class in the customer namespace that inherits from the SAP class. You can change the calculation made in the SAP method by redefining individual methods.

Although this is not a modification, redefining a method only makes sense under certain conditions:

  • The SAP class provides special methods whose purpose is to prepare specific values; these special methods are intentionally available for adjustment by customers.

or

  • The alternative customer processing can be performed once the logic of the SAP methods are run. In this case, when you redefine the methods, the method of the superclass is called first and then the customer-specific processing is run.

Otherwise, there is a risk that the customer processing will differ too much from the standard processing and a greater adjustment effort will be required on the customer side for corrections or legal changes. In case of doubt, contact our consultants or development team.

For the calculation module VAVH provided in the SAP standard system, you want to define a different start date for inclusion of the legal age limit. In the SAP class CL_HRDEPBSCA_VAVH, a method CUST_BEGINN_ANPASSUNG_AG exists that was created especially for this purpose.

In this case, you create a customer-specific class (for example, ZZCL_HRDEPBSCA_VAVH) that inherits from the SAP class CL_HRDEPBSCA_VAVH. In your class, you redefine the method CUST_BEGINN_ANPASSUNG_AG and specify the start date you require using the parameter E_AB_EINVF.

In the Customizing activity, you enter your own customer-specific class for the module VAVH.

Calculation Module Valid from Valid to Name Class/Interface
VAVH 01.01.2009 31.12.9999 Pension Pay Reductions, Section 14.3 ZZCL_HRDEPBSCA_VAVH

In this case, as of January 1, 2009, your customer-specific class ZZCL_HRDEPBSCA_VAVH is called for calculation for the calculation module VAVH.






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

Length: 3415 Date: 20240523 Time: 190635     sap01-206 ( 57 ms )