Ansicht
Dokumentation

PAY_CL_LRE_004 - BAdI: Electronic Payments Book After Fields Are Created

PAY_CL_LRE_004 - BAdI: Electronic Payments Book After Fields Are Created

CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Payroll Chile(PY-CL) component, by the Electronic Payments Book (RPC_PAYCL_LRE_DRIVER) report.

You can use this BAdI to change fields of the Electronic Payments Book CSV file after all fields have already been calculated and created by the report.

Be careful with changes to fields that compose the sum of the amount in a totals field. If you change only the non-total field, but not its corresponding totals field (or vice versa), it can lead to inconsistencies between these amounts in the final CSV file.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

Implement this BAdI using interface IF_HRPAYCL_B_LRE_FILL_FINAL with method FILL_FINAL.

You can find an example implementation in the BAdI Builder on the Enhancement Spot Element Definitions tab in the Implementation Example Classes section.

The following example implementation is available:

  • CL_EXAM_HRPAYCL_LRE_BADIS
In this example class, the IF_HRPAYCL_B_LRE_FILL_FINAL~FILL_FINAL method shows three different examples of sample method codes to:
  • Example 1: Create a specific field using Master Data information:

It shows how to use the BAdI to create a new field for the employee. See more details of the example in the comments in the method source code.
  • Example 2: Modify an existing field using payroll information:

It shows a scenario where the "Pago indemnización a todo evento" (2331) field is modified by using information taken from the employee's RT. See more details of the example in the comments in the method source code.
  • Example 3: Create a new field with a custom formatter:

It shows a scenario where the "Tasa indemnización a todo evento" (1132) field is created. This field is required to have the decimals values. By standard, if you create a field passing an amount, it will be rounded by the default formatter. In this case, you must create a custom formatter. See more details of the example in the comments in the method source code.

For more information on using Business Add-Ins, refer to the SAP Library under Basis Components ->ABAP Workbench (BC-DWB) ->Changing the SAP Standard (BC)->Business Add-Ins.






ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3083 Date: 20240523 Time: 205621     sap01-206 ( 48 ms )