Ansicht
Dokumentation

HR_PBS_01_VERSFR_1B - Activate Automatic Calculation Using BAdI (Filter 01/VAMV)

HR_PBS_01_VERSFR_1B - Activate Automatic Calculation Using BAdI (Filter 01/VAMV)

BAL_S_LOG - Application Log: Log header data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

For this subapplication, the validity period is specified using the Business Add-In (BAdI) HRPAY00_B_APPL_VALIDITY. This BAdI is filter-dependent and permits the implementation only for the intended subapplications.

If you do not want to activate this subapplication generally and instead want to activate it only for certain employees based on their organizational assignment, you can do this using a custom implementation of the BAdI.

Select the relevant filter value from the list of available combinations. The combinations consist of the two-character country ID and the four-character name of the subapplication.

In the method GET_VALID_PERIOD, you can define the validity of the subapplication depending on the organizational assignment of the affected employee.

The importing parameter IS_ORG_TRF is available for the evaluation. It contains the personnel number and data from the Organizational Assignment (0001) and Basic Pay (0008) infotypes.

Important:
During calculation, the BAdI is evaluated in two ways, analogous to its use in the tables T596C and T596D. In the first method of evaluation, it checks whether the subapplication is valid on the given key date. In the second method of evaluation, it determines the total validity period, meaning that the return values of the BAdIs consist of the Valid-From date EV_BEGDA_VALIDITY and the Valid-To date EV_ENDDA_VALIDITY.

If time periods are specified for the subapplication in Customizing tables T596C or T596D, the validity period defined by the BAdI does not have priority and instead modifies the time periods specified in the Customizing tables. It is not possible to use this BAdI to deactivate the validity periods specified in tables T596C and T596D.

The evaluation of the BAdI also applies for payroll function IF with parameter APPL within schemas or for operation APPL within calculation rules.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

You want to activate the subapplication as of January 1, 2012 for all employees not assigned to employee subgroup OB. The subapplication is to be invalid for employees assigned to employee subgroup OB.

To do this, you create a customer-specific implementation in which the code for the method GET_VALID_PERIOD may appear as follows:


METHOD if_hrpay00_appl_validity~get_valid_period.
* Validity for subapplication XXXX only valid for employee
* subgroups not equal to 'OB'.

* Check employee subgroup 'OB'
 IF is_org_trf-persk = 'OB'.
    CLEAR clear ev_begda_validity.
    CLEAR clear ev_endda_validity.
    RETURN.
  ENDIF.

 ev_begda_validity = '20120101'.  " Start date 01/01/2012
  ev_endda_validity = '99991231'.

ENDMETHOD.

Set the filter value to the attribute that comprises the HCM localization and the subapplication, and activate the implementation.






rdisp/max_wprun_time - Maximum work process run time   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 5274 Date: 20240523 Time: 193826     sap01-206 ( 126 ms )