SAP ABAP IMG Activity HRPAYCHQSTC0_EMP_ACI (BAdI: Override Data for Withholding Tax Vaud)
Hierarchy
SAP_HRCCH (Software Component) Sub component SAP_HRCCH of SAP_HR
   PY-CH (Application Component) Switzerland
     PC02 (Package) HR Payroll: Switzerland
IMG Activity
ID HRPAYCHQSTC0_EMP_ACI BAdI: Override Data for Withholding Tax Vaud  
Transaction Code S_L4H_49001515   (empty) 
Created on 20100816    
Customizing Attributes HRPAYCHQSTC0_EMP_ACI   BAdI: Override Data for Withholding Tax Vaud 
Customizing Activity HRPAYCHQSTC0_EMP_ACI   BAdI: Override Data for Withholding Tax Vaud 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HRPAYCHQSTC0_EMP_ACI    

Use

This Business Add-In (BAdI) is used in the Payroll Switzerland (PY-CH) component.

You can use this BAdI to change the rules that determine how the system recognizes certain events that are relevant for withholding tax accounting. You can also override data that is saved in the XML file for withholding tax accounting.

This BAdI contains the following methods:

  • CHANGE_EVENTS

    You can use this method to override the rules for detecting events. For more information, see CHANGE_EVENTS.

  • GET_ACTIVITY_RATE

    You can use this method to override how the capacity utilization level is evaluated. By default, the system reads the information about the capacity utilization level from the Planned Working Time (0007) infotype. If you store the information about the capacity utilization level in the Basic Pay (0008) infotype in the system, however, you read infotype 0008 in this method (import parameter IT_P0008) and return the correct capacity utilization level (return parameter EV_ACT_RATE).

  • CHANGE_OUTPUT_EE

    You can use this method to override all of the data in the output structure for the employee and employee's salary (XML tag <decompteContribuable> and all subordinate tags).

  • CHANGE_OUTPUT_ER

    You can use this method to override all of the data specified in the XML output structure for the employer (declaration period, employer number, total amount of withholding tax and commission).

  • GET_LOCAL_SCHEMA_LOC

    You can use this method to specify the local path where you have saved the XML schema definition (for example, D:\XML\xsdEmpAci\liste-impot-source4.xsd).

  • ADD_ER_LR_ZERO

    You use this method to specify the employer and the employer number, if you want to create an overall list for a period without persons liable to withholding tax. For more information see, ADD_ER_LR_ZERO.

Requirements

Standard settings

This BAdI is not activated in the standard system.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

See also

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
HRPAYCHQSTC0_EMP_ACI CH Switzerland
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG HRPAYCHQSTC0_EMP_ACI 0 HLA0003800 Evaluations/Statistics 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20100824 
SAP Release Created in