SAP ABAP Class CL_HRPAYBR_NOTICE_PERIOD (Class for notice period calculation)
Hierarchy
SAP_HRCBR (Software Component) Sub component SAP_HRCBR of SAP_HR
   PY-BR (Application Component) Brazil
     PC37 (Package) HR settlement: Brazil
Properties
Class CL_HRPAYBR_NOTICE_PERIOD  
Short Description Class for notice period calculation    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PC37   HR settlement: Brazil 
Created 20111213   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_HRPAYBR_NOTICE_PERIOD has no forward declaration.
Interfaces
Class CL_HRPAYBR_NOTICE_PERIOD has no interface implemented.
Friends
Class CL_HRPAYBR_NOTICE_PERIOD has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_ADD_DAYS_PER_YEAR Constant Public Type reference (TYPE) I 3 Extra days of notice by worked year (from 2 years on) 20120224
2 MO_EMPLOYEE Instance attribute Protected Object reference (TYPE REF TO) CL_HRPAYBR_EMPLOYEE Class that encapsulates the employee details 20120224
3 MO_TERMINATION Instance attribute Protected Object reference (TYPE REF TO) CL_HRPAYBR_ACTION Class that encapsulates a personnel action infotype record 20120224
4 MO_TERMINATION_DATA Instance attribute Protected Object reference (TYPE REF TO) CL_HRPAYBR_TERMINATION_DATA Class that encapsulates a record of infotype 0661 20120224
5 MS_TERMINATION Instance attribute Protected Type reference (TYPE) P0000 HR master record: infotype 0000 (Personnel actions) 20120224
6 MS_TERMINATION_DATA Instance attribute Protected Type reference (TYPE) P0661 Termination: general data 20120224
Methods
# Method Level Visibility Method type Description Created on
1 CALCULATE_NOTICE_PERIOD_DAYS Instance method Public Method 20120224
2 CALCULATE_PERIOD Instance method Protected Method 20120224
3 CALCULATE_SENIORITY Instance method Protected Method 20120224
4 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20120224
5 GET_DAYS_FROM_FEATURE Instance method Protected Method 20120224
6 GET_PROPORTIONALITY Instance method Protected Method 20120224
Events
Class CL_HRPAYBR_NOTICE_PERIOD has no event.
Types
Class CL_HRPAYBR_NOTICE_PERIOD has no local type.
Method Signatures

Method CALCULATE_NOTICE_PERIOD_DAYS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_NOTICE_PERIOD_DAYS Value transfer Type reference (TYPE) I Amount of notice period days 20120224
# Exception Resumable Description Created on
1 CX_HRPAYBR_INFTY_NOT_FOUND HR: master data, data shortage 20120224
2 CX_HRPAYBR_RECORD_NOT_FOUND Exception generated when a record is not found in a table 20120224

Method CALCULATE_PERIOD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NOTICE_PERIOD_DAYS Call by reference Type reference (TYPE) I 20120224
2 Returning RV_NOTICE_PERIOD_DAYS Value transfer Type reference (TYPE) I 20120224
# Exception Resumable Description Created on
1 CX_HRPAYBR_INFTY_NOT_FOUND HR: master data, data shortage 20120224

Method CALCULATE_SENIORITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_REF_DATE Call by reference Type reference (TYPE) DATUM Date 20120224
2 Returning RV_YEARS_AT_ORG Value transfer Type reference (TYPE) I 20120224
# Exception Resumable Description Created on
1 CX_HRPAYBR_INFTY_NOT_FOUND Infotypes not found 20120224

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_EMPLOYEE Call by reference Object reference (TYPE REF TO) CL_HRPAYBR_EMPLOYEE Class that encapsulates the employee details 20120224
2 Importing IO_TERMINATION Call by reference Object reference (TYPE REF TO) CL_HRPAYBR_ACTION Class that encapsulates a personnel action infotype record 20120224
3 Importing IO_TERMINATION_DATA Call by reference Object reference (TYPE REF TO) CL_HRPAYBR_TERMINATION_DATA Class that encapsulates a record of infotype 0661 20120224
# Exception Resumable Description Created on
1 CX_HRPAYBR_INFTY_NOT_FOUND HR: master data, data shortage 20120224
2 CX_HRPAYBR_UNBOUND Exception class for zero references 20120224

Method GET_DAYS_FROM_FEATURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DAYS Value transfer Type reference (TYPE) I Fixed amount of days feature BRPRN 20120224
# Exception Resumable Description Created on
1 CX_HRPAYBR_INFTY_NOT_FOUND HR: master data, data shortage 20120224

Method GET_PROPORTIONALITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_YEARS_AT_ORG Call by reference Type reference (TYPE) I 20120224
2 Returning RV_PROPORTIONAL_DAYS Value transfer Type reference (TYPE) I Amount of additional days proportional to seniority 20120224

Method GET_PROPORTIONALITY on class CL_HRPAYBR_NOTICE_PERIOD has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in