SAP ABAP IMG Activity PAY_MX_TERM_031 (BAdI: Determine number of quota days to be settled)
Hierarchy
SAP_HRCMX (Software Component) Sub component SAP_HRCMX of SAP_HR
   PY-MX (Application Component) Mexico
     P32C (Package) Customizing HR Mexico
IMG Activity
ID PAY_MX_TERM_031 BAdI: Determine number of quota days to be settled  
Transaction Code S_AL0_96000614   (empty) 
Created on 20020107    
Customizing Attributes PAY_MX_TERM_031   BAdI: Change calculation of quota days to be settled 
Customizing Activity PAY_MX_TERM_031   BAdI: Change calculation of quota days to be settled 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HR_MX_TRM_VAC_DAYS    

In the standard system, the number of leave quota days to be settled due to work termination is determined using the business add-in Number of Leave Days to be Settled in the Event of Termination (HR_MX_TRM_VAC_DAYS).

You can implement this business add-in to change the way in which this calculation is carried out.

Standard settings

The default code of this business add-in calculates the number of leave quota days to be settled due to termination as follows:

If the employment relationship termination date is after the period end date, the remaining quota days are settled.

If the employment relationship termination date is prior to the period end date (that is, falls within the period), the proportional part of the days worked is settled with a factor calculated in the following way:

Termination date - period start date + 1
------------------------------------------------------------------------
Number of days in the year (TDIAN constant).

The remaining days in the period are compensated but not settled.

Recommendation

This business add-in should only be implemented if:

Standard SAP procedures to not meet your company's requirements.

You have extensive knowledge of ABAP programming.

The business add-in should only be used for the purposes set out above. Any other use is not guaranteed to produce correct results within the system.

If you do decide to implement this business add-in:

Do NOT change the default code.

The recommended procedure is to create an implementation, copy the default code to the implementation, and make the necessary changes only in the copy.

Activities

After implementing the business add-in and copying the default code, the changes to the copy are made in the section of code corresponding to the actual calculation itself.

To implement a business add-in follow the steps shown below:

Tras llamar la actividad IMG accederá primero a una ventana de diálogo en la que deberá indicar un nombre para la implementación.

Si ya se indicaron implementaciones para este add-in empresarial, accederá a una ventana de diálogo en la que se muestran las implementaciones existentes. En esta ventana de diálogo seleccione Crear y continúe de la siguiente manera:

  1. Indique un nombre para la implementación del add-in empresarial en la ventana de diálogo en el campo Implementación y después seleccione Crear.

    Accederá a una imagen inicial para crear las implementaciones del add-in empresarial.

  2. Indique un texto breve para la implementación en la imagen inicial en el campo Texto breve para la implementación.
  3. Seleccione Interfase en la lengüeta.

    En la etiqueta, el campo Nombre de la clase implementada se completa de manera automática, ya que en función del nombre de la implementación se asigna un nombre de clase.

  4. Grabe las entradas y efectúe la asignación a una clase de desarrollo.
  5. Posicione el cursor sobre el método y acceda mediante un doble clic al tratamiento de métodos.
  6. Indique el coding que desea para la implementación entre las instrucciones Método <Nombre-interfase>~ <Nombre del método>- y endmethod.
  7. Grabe y active su coding. Vuelva a la imagen Modificar implementación.
  8. Grabe en la pantalla Modificar implementación.

    Nota: También puede crear una implementación para un add-in empresarial y activarlo más adelante. En este caso, finalice el tratamiento en este momento.

  9. Seleccione Activar.

    Al ejecutar el programa de aplicación se procesa el coding almacenado en el método.

Further notes

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
PAY_MX_TERM_031 MX Mexico
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20020411 
SAP Release Created in 470