Ansicht
Dokumentation

PY_IN_FORM24_200 - BAdI: Determine Address of Employer Based on Different Parameters

PY_IN_FORM24_200 - BAdI: Determine Address of Employer Based on Different Parameters

rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in Form 24 and Form 16 reporting components of Payroll India (PY-IN).

Implement this BAdI to determine the name and the address of the employer and the CIT address, which is printed on Form 24 or Form 24Q, and Form 16, based on parameters other than the standard.

You have to configure the name of the employer in the ADDR1_VAL structure and the address of the employer in the SADR structure.

This BAdI uses the following methods:

  • GET_ER_ADDRESS
This method has the following input parameters:
  • Employee details

  • Parameter FLT_VAL of method GET_ER_ADDRESS

  • Tax account number of the employer

This method has the following export paraments:
  • Employer Address

  • Address return structure

  • BAdI Active Flag - If this flag is set to X, only then this implementation will be used. Else, the system considers the company code or personal area to fetch the address.

Sample Code
method IF_EX_HR_IN_ER_ADDRESS~GET_ER_ADDRESS.
ADDR1_VAL-NAME1 = 'SAP LABS INDIA PRIVATE LIMITED WHITEFIELD EPIP'.
SADR-NAME1 = 'SAP Labs India'.
SADR-STOCK = '138'.
SADR-STOCK = 'EPIP'.
SADR-STRAS = 'WHITEFIELD'.
SADR-STRS2 = 'BANGALORE'.
flag ='X'.
endmethod.
  • GET_CIT_ADDRESS
This method has the following input parameters:
  • Employee details

  • Parameter FLT_VAL of method GET_ER_ADDRESS

  • Tax account number of the employer

This method has the following export paraments:
  • Employer Address

  • Address return structure

Sample Code
method IF_EX_HR_IN_ER_ADDRESS~GET_CIT_ADDRESS.
ADDR1_VAL-NAME1 = 'Income Tax Authority office'.
SADR-NAME1 = 'IT department of India'.
SADR-STOCK = '148'.
SADR-STOCK = 'Near SBI bank'.
SADR-STRAS = 'Majestic'.
SADR-STRS2 = 'BANGALORE'.
endmethod.

Carry out this activity only if the following conditions apply:

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

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

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.
The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.
  1. Save your entries, and assign the implementation to a development class.
  2. Place the cursor on the method, and double-click to enter method processing.
  3. Enter the code for the implementation between the statements method ~ and endmethod.
  4. Save and implement your code. Return to the Edit Implementation screen.
  5. Save the entries on the After calling up the IMG activity, a dialog box appears, in which the existing implementations are displayed. Choose Change, and proceed as follows:
Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.
  1. Choose Activate.
The code you stored in the method will be run when the application program is executed.






Fill RESBD Structure from EBP Component Structure   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 5089 Date: 20240523 Time: 205820     sap01-206 ( 49 ms )