SAP ABAP IMG Activity OHAMX_IM254 (BAdI: Specify state for state tax)
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 OHAMX_IM254 BAdI: Specify state for state tax  
Transaction Code S_AC0_52000136   (empty) 
Created on 20041025    
Customizing Attributes OHAMX_IM254   BAdI: State tax 
Customizing Activity OHAMX_IM254   BAdI: State tax 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HR_MX_STATE_TAX    

Use

Before you can calculate state tax, you must determine the state to which the tax corresponds.

You can enter the corresponding state for each employee in the State for State Tax field of the Tax Data infotype (0561)

This Business Add-In allows you to cover additional possibilities for situations that are not covered by that field.

Recommendation

You should only implement this Business Add-In if:

  • The standard SAP procedure does not meet the needs of your company.
  • You have extensive knowledge of ABAP programming.
  • You only use this Business Add-In for the purposes described above. Any other use may not produce correct results in the system.

If you have decided to implement this Business Add-In:

  • DO NOT change the default code.
  • The recommended procedure is to create an implementation, copy the default code into this implementation, and make the necessary changes to this copy only.

This Business Add-In includes the following methods:

Requirements

Standard settings

Activities

Once you have implemented the Business Add-In and copied the default code, make your changes to this copy in the part of the code that corresponds to the calculation itself.

To implement a Business Add-In, follow the steps 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.

Example

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
OHAMX_IM254 MX Mexico
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20041126 
SAP Release Created in 600