Ansicht
Dokumentation

OHIKZMDPA_EHR_002 - BAdI: Generate Additional Agreement Document Number

OHIKZMDPA_EHR_002 - BAdI: Generate Additional Agreement Document Number

CPI1466 during Backup   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

The Business Add-In (BAdI) HRPADKZ_DOCNO_AADA (in enhancement spot HRPADKZ_DOCNO_3467) is used in the Personnel Administration (Kazakhstan) (PA-PA-KZ) component.

You can use this BAdI to generate the document number for an additional agreement in E-HR.

The BAdI contains the following method:

  • GET_APPEND_DOCNO – Generates the document number for the additional agreement

Note: To avoid unwanted side effects, SAP strongly recommends to carefully review filter conditions to avoid multiple instances of the BAdI being executed. You can use transaction SE18 (Business Add-Ins: Definitions) to test filter conditions if necessary.

The BAdI has the following fallback class when no implementation is executed:

  • CL_HRPADKZ_DOCNO_AADA_FALLBACK

In this fallback implementation, Additional Agreement number is generated as a combination of linked Contract Number and a three-digit number that represents the number of an Additional Agreement. This three-digit is picked based on all existing Additional Agreements for specific Contract Data entry (it is greater by 1 then the number of previous Additional Agreement) or is set equal to '001' if no Additional Agreements exist yet.

For information about implementing BAdIs as part of the Enhancement Concept, see SAP Help Portal for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.






ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 1935 Date: 20240523 Time: 165618     sap01-206 ( 40 ms )