SAP ABAP IMG Activity OHADOE589 (Activate Prohibited Activities Using BAdI (Filter 01/MGBV))
Hierarchy
SAP_HRCDE (Software Component) Sub component SAP_HRCDE of SAP_HR
   PY-DE (Application Component) Germany
     PC01 (Package) HR Payroll: Germany
IMG Activity
ID OHADOE589 Activate Prohibited Activities Using BAdI (Filter 01/MGBV)  
Transaction Code S_L4H_49002417   (empty) 
Created on 20110929    
Customizing Attributes OHADOE589   Activate Maternity Protection Law Prohibited Activities Using BAdI 
Customizing Activity OHADOE589   Activate Maternity Protection Law Prohibited Activities Using BAdI 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HRPAY00_B_APPL_VALIDITY    

Use

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.

Requirements

Standard settings

Activities

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 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 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 table 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 and for operation APPL within calculation rules.

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

Example

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_begda_validity = '99991231'.

ENDMETHOD.

Set the filter value to the attribute that comprises the country grouping and the subapplication, and activate the implementation.

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
OHADOE589 DE Germany
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20110930 
SAP Release Created in