Hierarchy
⤷ 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:
- Determining the state for the state tax calculation
- Determining the state tax calculation basis
- Obtaining the state tax
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:
- 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.
- Indique un texto breve para la implementación en la imagen inicial en el campo Texto breve para la implementación.
- 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.
- Grabe las entradas y efectúe la asignación a una clase de desarrollo.
- Posicione el cursor sobre el método y acceda mediante un doble clic al tratamiento de métodos.
- Indique el coding que desea para la implementación entre las instrucciones
Método <Nombre-interfase>~ <Nombre del método>-
yendmethod.
- Grabe y active su coding. Vuelva a la imagen Modificar implementación.
- 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.
- 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 |