SAP ABAP IMG Activity OHAIN_DL037 (Program Processing Logic for Payment Types)
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 OHAIN_DL037 Program Processing Logic for Payment Types  
Transaction Code S_L6B_69000479   (empty) 
Created on 20030227    
Customizing Attributes OHAIN_DL037   Program Processing Logic for Payment Types 
Customizing Activity OHAXDL037   Program Payments Logic 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OHAXDL037    

Use

This Business Add-In (BAdI) is used in the Payroll component. You use this BAdI to program the processing logic of customer-specific payment types and the accompanying customer-specific wage types for the Loans infotype (0045).You set up the payment types and wage types in the IMG activitiy Set Up Customer Payment Types.

You use this BAdI to change or delete entries in table LO or to create new table entries. Using information from tables T506W (Loan Wage Types) and T506P (Loan Payments), the system transfers the standard payment types and their customer payment types to internal table LO in each payroll period. The system then uses this BAdI to call method ADD_PAYMENTS (Realize Additional Payments) in which you have programed the processing logic for your customer payment types.

Requirements

You have performed the IMG activity Create Customer-Specific Payment Types in Customizing for Payroll under Payroll <Country> -> Loans -> Master Data -> Customer Payment Types.

Standard settings

The Business Add-In is not active in the standard system.

Activities

After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.

If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:

  1. In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.

    The screen for creating BAdI implementations is now displayed.

  2. Enter a short text for the implementation in the Short text for implementation field.
  3. 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.

  4. Save your entries, and assign the implementation to a development class.
  5. Place the cursor on the method, and double-click to enter method processing.
  6. Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
  7. Save and implement your code. Return to the Edit Implementation screen.
  8. Save the entries on the Edit Implementation screen.

    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.

  9. Choose Activate

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

Example

You run payroll monthly in your SAP system.You want employees to be able to make regular special repayments to their loans under certain conditions. To do this, in the IMG activitiy Set Up Csustomer Payment Types define the payment type 9250 and assign it the wage type /LEP.For the payment type, select the indicator Payment valid for an interval.

Example 1

You want your employees to be able to make a special repayment once a year when they receive a certain premium.The premiums do not occur in the same month for all employees.For example, one employee receives a premium every April.In this case you implement the BAdI so that special repayments, which an administrator creates with payment type 9250, are always settled in the month that is specified with the start date for the special repayment with the remuneration of the employee.

In this case, if an administrator specifies the interval 04.01.2003-04.01.2006 for a special repayment with payment type 9250, the repayment can be made each November from 2003 to 2006.If he or she enters the interval 04.01.2003-03.21.2006, the repayment can be made each April from 2003 to 2005.

Example 2

You want your employees to be able to make a special repayment each November because they receive their holiday bonus in November.In this case you implement the BAdI so that special repayments, which an administrator creates with payment type 9250, are always settled in the month that is specified with the start date for the special repayment with the remuneration of the employee.

In this case, if an administrator specifies the interval 04.01.2003-04.01.2006 for a special repayment with payment type 9250, the repayment can be made each November from 2003 to 2005.If he or she enters the interval 08.15.2003-12.31.2008, the repayment can be made each November from 2003 to 2008.

Both examples are stored in the example code. Example 1 is active in the code, example 2 is deactivated. To display the example coding, specify an implementation for the BAdI. Then choose Goto -> Example Coding -> Display and call the coding by double-clicking on the method name.

See also

Methods

Update Additional Payments.

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