SAP ABAP IMG Activity PAY_IN_PTAX_1100 (BAdI: Overwrite Professional Tax details)
Hierarchy
SAP_HRCIN (Software Component) Sub component SAP_HRCIN of SAP_HR
   PY-IN (Application Component) India
     P40C (Package) HR customizing: India
IMG Activity
ID PAY_IN_PTAX_1100 BAdI: Overwrite Professional Tax details  
Transaction Code S_L7D_24002786   (empty) 
Created on 20110519    
Customizing Attributes PAY_IN_PTAX_1100   BAdI: Overwrite Professional Tax details 
Customizing Activity PAY_IN_PTAX_1100   BAdI: Overwrite Professional Tax details 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HR_IN_PTX_REG    

Title

BAdI: Overwrite the PTax details

Use

This Business Add-In is used in the Professional Tax (PY-IN) component.

This Add-In enables you to overwrite the region for a Professional Tax (PTax) Group that is maintained in Professional Tax Grouping Details (V_T7INP1) table. Once you implement this BAdI, the system, while reporting PTax details, checks if you have maintained a region for the Ptax Group here. If no, the system reports the Region Certificate Number maintained in the Professional Tax Grouping Details (V_T7INP1) table.If you have maintained a value in this BAdI, the system overwrites the value maintained in Professional Tax Grouping Details (V_T7INP1) table, with this value.

You can Customize the values in this BAdI as per your requirements using the method GET_PTX_DETAILS.

This method has the following parameters:

  • Personnel area / subarea grouping for Professional tax
  • Structure for PTax details

Sample code:

METHOD if_ex_hr_in_ptx_reg~get_ptx_details.

**sample code to overwrite the ptax details

**Overwrite flag is used to identify the overwritten value.

*

**Professional tax registration certificate number

* ptax_det-rgcrt_x = 'X'. "Overwrite flag

* ptax_det-rgcrt = '123456'.

*

**Zone number

* ptax_det-zonum_x = 'X'. "Overwrite flag

* ptax_det-zonum = '12332'.

*

**Division number

* ptax_det-divsn_x = 'X'. "Overwrite flag

* ptax_det-divsn = '17534'.

*

**Professional tax office circle number

* ptax_det-nocrl_x = 'X'. "Overwrite flag

* ptax_det-nocrl = '102364'.

*

**Name of Professional tax office circle

* ptax_det-nmcrl_x = 'X'. "Overwrite flag

* ptax_det-nmcrl = 'Sample Circle name'.

ENDMETHOD.

Prerequisites

You should only carry out this step if both of the following points apply:

  • The SAP standard processes do not suit your needs
  • You are a competent ABAP/4 programmer

Default

In the standard system, the Business Add-In is not activated.

Activities

After calling up the IMG activity, a dialog box appears, in which the existing implementations are displayed. Choose Change, and proceed as follows:

  1. From the tab index, choose Interface.
  2. Place the cursor on the method, and double-click to enter method processing.
  3. Enter the coding for the implementation between the statements method if_ex_hr_in_cco_processing ~ <Name of method> and endmethod.
  4. Save and implement your coding. Return to the Edit Implementation screen.
  5. Save the entries on the Edit Implementation screen.

    Note: You can also change the implementation, and then activate it at a later time. In such a case, end the processing stage at this point.

  6. Choose Activate

    The coding you stored in the method will be run when the application program is executed.

Example

To display the sample code, choose Goto -> Sample Code -> Display.

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
PAY_IN_PTAX_1100 IN India
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20110519 
SAP Release Created in