Ansicht
Dokumentation

PAY_DE_AVMG_270 - BAdI: Limitation of Contract Models and Modules

PAY_DE_AVMG_270 - BAdI: Limitation of Contract Models and Modules

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

Business Add-In (BAdI) HRPAYDE_B_AVM_INFTY is used to limit the validity of contract models and modules in infotypes German Pension Reform D(0699) and VBL/ZVE Data(0051).

You can depict the following requirements, for example:

  • Limit contract models for various company areas using infotype Organizational Assignment(0001)
  • Prevent obsolete contract models from being created again and displayed in the value help
  • For contract models that can be enhanced, limit the valid modules using the employee subgroup For example, you can allow different modules for industrial workers and salaried employees.
  • Limit contract models using an investment institute that has already been entered

The use of this BAdI is optional. You only need to implement it if you have different requirements to that of the standard SAP system.

You can create your own BAdI implementation to limit the contract models or modules in the records of infotypes German Pension Reform D(0699) and VBL/ZVE Data(0051). Implement a class with interface IF_HRPAYDE_AVM_INFTY. The methods defined in the interface allow you to determine limitations for the contract models or modules. You can use the sample class delivered in the standard SAP system for this purpose.

Interface IF_HRPAYDE_AVM_INFTY contains the following methods:

  • LIMIT_INPUT_VTMOD:You can use this method to limit the valid contract models of an infotype record. Delete the invalid contract models from table CT_BAUST.
  • LIMIT_INPUT_BAUST: You can use this method to limit the valid modules of an infotype record. Delete the invalid modules from table CT_BAUST.

If you do not want to limit the valid modules or contract models, do not implement the corresponding method.

Explanation of the Sample Implementation Delivered

The sample implementation implements the following application scenario:

  • The contract models for the pay scale supplementary pension (starting with character B) should only be displayed for employees with infotype Construction Pay: Funds Procedure in the value help for the contract model.
  • In the public sector area, no contract models for the SP compulsory insurance (starting with characters OP) are displayed in infotype German Pension Reform D(0699). Only these contract models should be shown in infoype VBL/ZVE Data (0051).

Sample class CL_HRPAYDE_IM_AVM_INFTY implements interface IF_HRPAYDE_AVM_INFTY and method LIMIT_INPUT_VTMOD limits the authorized contract models:

  • In infotype VBL/ZVE-Daten(0051), only the contract models that have a descriptor starting with the letters OP remain in table CT_VTMOD.
  • In infotype German Pension Reform D (0699) the contract models that have a descriptor that does not start with OP remain. If an infotype record Construction Pay: Funds Procedure (0189) exists for the validity period of infotype record German Pension Reform D (0699), the method then deletes all contract models from table CT_VTMOD that have a descriptor starting with the letter B.

As the class does not have its own implementation of method LIMIT_INPUT_BAUST, the modules remain unchanged.

As of January 1, 2019, contract models VTM1 and VTM2 should no longer be used when creating infotypes German Pension Reform D(0699) and VBL/ZVE Data(0051). You should, therefore, hide both contract models in the value help and prevent them from being entered as of January 1, 2019.

Please proceed as follows:

  • Create your own implementation of the BAdI. In step Create Implementation Class, choose BAdI definition HRPAYDE_B_AVM_INFTY. In the subsequent window, select sample class CL_HRPAYDE_IM_AVM_INFTYand choose Copy Sample Class.
  • Method LIMIT_INPUT_VTMOD can be found in the customer-defined class you have created. It contains the code from the sample class. Change it as follows: If the validity start of infotype record 0699 (IV_BEGDA) is greater than January 1, 2019, then delete contract models VTM1and VTM2from table CT_VTMOD.
  • Then activate the enhancement implementation.





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

Length: 5854 Date: 20240523 Time: 210823     sap01-206 ( 87 ms )