SAP ABAP Class CL_HRPAYVE_SENIORITY (Type for Seniority Calculation)
Hierarchy
SAP_HRCVE (Software Component) Sub component SAP_HRCVE of SAP_HR
   PY-VE (Application Component) Venezuela
     PC17 (Package) Payroll - Venezuela
Properties
Class CL_HRPAYVE_SENIORITY  
Short Description Type for Seniority Calculation    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PC17   Payroll - Venezuela 
Created 20120614   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_HRPAYVE_SENIORITY has no forward declaration.
Interfaces
Class CL_HRPAYVE_SENIORITY has no interface implemented.
Friends
Class CL_HRPAYVE_SENIORITY has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_ADVANCED_PAYMENTS Constant Public Type reference (TYPE) PVE_SENTP 'AS' 20130326
2 GC_PARTIAL_BALANCE Constant Public Type reference (TYPE) PVE_SENTP 'TA' 20130326
3 GC_QUARTERLY_SENIORITY Constant Public Type reference (TYPE) P_99SOPTIO '0' Seniority by Quarter 20120719
4 GO_INSTANCE Static Attribute Private Object reference (TYPE REF TO) CL_HRPAYVE_SENIORITY Type for Seniority Calculation 20120719
5 MV_LAST_CURRENCY_DATE Instance attribute Private Type reference (TYPE) D 20130326
6 MV_LAST_USED_CURRENCY Instance attribute Private Type reference (TYPE) WAERS 20130326
Methods
# Method Level Visibility Method type Description Created on
1 CALCULATE_COMPENSATION Instance method Public Method Calculates highest amount between paid seniority and RA 20121219
2 CALCULATE_RETRO_DIFFERENCE Instance method Public Method Calculates the difference amount bet. paid seniority and RA 20121219
3 CALCULATE_SENIORITY_RETRO Instance method Private Method Calculates the seniority amount with 30 days/year 20121219
4 CALCULATE_SEN_3_MONTHS Instance method Private Method Calculates the seniority amount with less than 3 months 20121219
5 CALCULATE_VACATION_BONUS Instance method Public Method Calculate Vacation Bonus 20120719
6 CALCULATE_YEARS_FOR_RETRO Instance method Private Method Calculates the number of years valid for the RA 20121219
7 CONVERT_CURRENCY Instance method Public Method Performs currency conversion 20130326
8 GET_AMOUNT_PAID_IN_SEN_EVAL Instance method Private Method Returns the sum of the payments of table SEN_EVAL 20121219
9 GET_INSTANCE Static method Public Method Returns an instance of the type 20120719
10 GET_PAYROLL_RESULT_READER Instance method Protected Method Returns an instance of the payroll reader 20130326
11 GET_QUARTER_SEN_START Instance method Public Method Returns the start date of the configuration option 20120813
12 GET_SENIORITY_TYPE Instance method Public Method Returns the Configuration Option value for Seniority 20120719
13 READ_FULL_SEN_EVAL Instance method Public Method Takes full seniority table 20130326
Events
Class CL_HRPAYVE_SENIORITY has no event.
Types
Class CL_HRPAYVE_SENIORITY has no local type.
Method Signatures

Method CALCULATE_COMPENSATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SEN_EVAL Call by reference Type reference (TYPE) HRPAYVE_SEN_EVAL Severance/Seniority 20121219
2 Importing IV_BASE_REM Call by reference Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219
3 Importing IV_FIRE_DATE Call by reference Type reference (TYPE) ENDDA Valid to 20121219
4 Importing IV_HIRE_DATE Call by reference Type reference (TYPE) BEGDA Valid from date 20121219
5 Returning RV_AMOUNT Value transfer Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219

Method CALCULATE_COMPENSATION on class CL_HRPAYVE_SENIORITY has no exception.

Method CALCULATE_RETRO_DIFFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SEN_EVAL Call by reference Type reference (TYPE) HRPAYVE_SEN_EVAL Severance/Seniority 20121219
2 Importing IV_BASE_REM Call by reference Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219
3 Importing IV_FIRE_DATE Call by reference Type reference (TYPE) ENDDA Valid to 20121219
4 Importing IV_HIRE_DATE Call by reference Type reference (TYPE) BEGDA Valid from date 20121219
5 Returning RV_AMOUNT Value transfer Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219

Method CALCULATE_RETRO_DIFFERENCE on class CL_HRPAYVE_SENIORITY has no exception.

Method CALCULATE_SENIORITY_RETRO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BASE_REMUN Call by reference Type reference (TYPE) MAXBT Payroll result: Result table 20121219
2 Importing IV_FIRE_DATE Call by reference Type reference (TYPE) ENDDA Valid to 20121219
3 Importing IV_HIRE_DATE Call by reference Type reference (TYPE) BEGDA Valid from date 20121219
4 Returning RV_AMOUNT Value transfer Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219

Method CALCULATE_SENIORITY_RETRO on class CL_HRPAYVE_SENIORITY has no exception.

Method CALCULATE_SEN_3_MONTHS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BASE_REM Call by reference Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219
2 Importing IV_FIRE_DATE Call by reference Type reference (TYPE) ENDDA Valid to 20121219
3 Importing IV_HIRE_DATE Call by reference Type reference (TYPE) BEGDA Valid from date 20121219
4 Returning RV_AMOUNT Value transfer Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219

Method CALCULATE_SEN_3_MONTHS on class CL_HRPAYVE_SENIORITY has no exception.

Method CALCULATE_VACATION_BONUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DAILY_AMOUNT Call by reference Type reference (TYPE) MAXBT Personnel payroll: Amount 20120719
2 Importing IT_P0001 Call by reference Type reference (TYPE) P0001_TAB Personnel master record infotype 0001 (Org. Assignment) 20120719
3 Importing IT_P0007 Call by reference Type reference (TYPE) P0007_TAB Personnel master record Infotype 0007 (Theor. work schedule) 20120719
4 Importing IT_P0008 Call by reference Type reference (TYPE) P0008_TAB Personnel master record Infotype 0007 (Theor. work schedule) 20120719
5 Importing IT_P0016 Call by reference Type reference (TYPE) P0016_TAB Personnel master record Infotype 0016 (Contract elements) 20120719
6 Importing IV_BASE_REMUN Call by reference Type reference (TYPE) MAXBT Personnel payroll: Amount 20120719
7 Importing IV_DATE Call by reference Type reference (TYPE) DATUM Date 20120719
8 Importing IV_YEARS_IN_COMPANY Call by reference Type reference (TYPE) P Employee Seniority 20120719

Method CALCULATE_VACATION_BONUS on class CL_HRPAYVE_SENIORITY has no exception.

Method CALCULATE_YEARS_FOR_RETRO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FIRE_DATE Call by reference Type reference (TYPE) ENDDA Valid to 20121219
2 Importing IV_HIRE_DATE Call by reference Type reference (TYPE) BEGDA Valid from date 20121219
3 Returning RV_YEARS Value transfer Type reference (TYPE) NUMC4 Number of days 20121219

Method CALCULATE_YEARS_FOR_RETRO on class CL_HRPAYVE_SENIORITY has no exception.

Method CONVERT_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_SEN_EVAL Call by reference Type reference (TYPE) HRPAYVE_SEN_EVAL 20130326
2 Importing IV_DATE Call by reference Type reference (TYPE) D 20130326

Method CONVERT_CURRENCY on class CL_HRPAYVE_SENIORITY has no exception.

Method GET_AMOUNT_PAID_IN_SEN_EVAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SEN_EVAL Call by reference Type reference (TYPE) HRPAYVE_SEN_EVAL Severance/Seniority 20121219
2 Returning RV_AMOUNT Value transfer Type reference (TYPE) MAXBT Personnel payroll: Amount 20121219

Method GET_AMOUNT_PAID_IN_SEN_EVAL on class CL_HRPAYVE_SENIORITY has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RO_INSTANCE Value transfer Object reference (TYPE REF TO) CL_HRPAYVE_SENIORITY Type for Seniority Calculation 20120719

Method GET_INSTANCE on class CL_HRPAYVE_SENIORITY has no exception.

Method GET_PAYROLL_RESULT_READER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RO_PAYROLL_RESULT_READER Value transfer Object reference (TYPE REF TO) CL_HR_PAY_ACCESS 20130326

Method GET_PAYROLL_RESULT_READER on class CL_HRPAYVE_SENIORITY has no exception.

Method GET_QUARTER_SEN_START Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) DATUM Date 20120813
2 Returning RV_BEGDA Value transfer Type reference (TYPE) DATUM Date 20120813

Method GET_QUARTER_SEN_START on class CL_HRPAYVE_SENIORITY has no exception.

Method GET_SENIORITY_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) DATUM Date 20120719
2 Returning RV_SENIORITY Value transfer Type reference (TYPE) P_99SOPTVA Value for configuration option 20120719

Method GET_SENIORITY_TYPE on class CL_HRPAYVE_SENIORITY has no exception.

Method READ_FULL_SEN_EVAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_SEN_EVAL Call by reference Type reference (TYPE) HRPAYVE_SEN_EVAL 20130326
2 Importing IV_FIRE_DATE Call by reference Type reference (TYPE) ENDDA 20130326
3 Importing IV_HIRE_DATE Call by reference Type reference (TYPE) BEGDA 20130326
4 Importing IV_PERNR Call by reference Type reference (TYPE) PERNR-PERNR 20130326
5 Returning RT_FULL_SEN_EVAL Value transfer Type reference (TYPE) HRPAYVE_SEN_EVAL 20130326

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