Ansicht
Dokumentation

OHAU02B1 - BAdI: Modify disposable net amount for multiple active garnishments orders

OHAU02B1 - BAdI: Modify disposable net amount for multiple active garnishments orders

CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

This step describes how to set up customer-specific enhancements using the optional Business Add-In (BAdI) HRPAYUS_B_DISP_NET_OVERRIDE, which features one method that can be used to fulfill a Garnishment order (disposable net amount) to be deducted from employee's paycheck. The following method is delivered with this Business Add-In:

1. OVERRIDE_DISP_NET

Implement this method if you wish to override the disposable net amount for employees who have active garnishment orders. This BAdI enables you to do the following:

  • Access the information calculated at run time for each garnishment order processed.

  • Have different implementation for each Garnishment type and each state.

  • Adjust the amount calculated to take into account other active garnishments when employee has more than one active.

This BAdI method contains the DNMOD(Disposable Net Model) filter condition. The respective filter value defines which model to use for adjusting the disposable net together with the corresponding texts and is defined in the Define adjustment model texts for the disposable net Customizing activity.

You wish to override the corresponding standard process that is delivered with the standard system with a process of your own and understand that BAdI implementation HRPAYUS_B_DISP_NET_OVERRIDE is provided to meet your specific requirements.

The BAdI described here is optional. Therefore, only implement this BAdI if your enterprise has the need and desire to do so. Thus, the following prerequisite apply to Business Add-Ins for Garnishments:

  • You wish to override the garnishment order configuration to fulfill the deduction of all disposable net amounts you have in the same period instead of deducting according to the priority that is delivered with the standard system with values of your own. To this end, you must implement a Business Add-In along the lines of method OVERRIDE_DISP_NET.

To implement Business Add-In HRPAYUS_B_DISP_NET_OVERRIDE, follow these steps:

1. Execute this IMG step. On the subsequent screen, enter a name for the implementation you wish to create.

2. Choose Create. (Or, alternatively, Edit. The remainder of the documentation for this activity describes the steps to be performed when you create a new implementation.)

Caution

3. Enter a short text for the implementation in the Implementation namefield, then choose Continue.

4. On the subsequent screen, specify an Implementation short text, then choose the Interface tabstrip. The name of the implemented class fields are already found in this tabstrip.

5. Save your entries and assign the implementation to a package.

6. Place the cursor on the method you wish to process, then double-click to initiate method processing.

7. Enter the code for the implementation between the statements method ~ and endmethod.

8. Save and implement your code.

9. Return to the Edit Implementation screen, then save your entries there.

10. If you wish to activate the implementation you have created at a later date, then exit the Edit Implementationscreen without activating the implementation. Otherwise, choose Activatefrom this screen to activate the implementation for immediate use.

In the standard system, you have maintained Disposable Net amount for multiple garnishments in order to have disposable net amounts calculated for a given period. By implementing HRPAYUS_B_DISP_NET_OVERRIDE, the Disposable Net amount can be adjusted within the CL_HRPAYUS_IM_DNET_OVERRIDEclass.

The following parameters are called using the method of this BAdI:

  • IT_GRDOC:Garnishment document infotype is imported with the active documents in the current period and the information on the Garnishment Orders processed so far.
  • IT_GRORD :Garnishment order infotype is imported with the orders that are active in the current period and the information on the Garnishment Orders processed so far.
  • IS_CURRENT_GARN_ORDER:This is the current Garnishment Order that is in process.
  • CV_DISPOSABLE_NET: TheDisposable Net for the current Garnishment Order that is in process. This amount can be changed by this BAdI.





SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 5374 Date: 20240523 Time: 210750     sap01-206 ( 101 ms )