SAP ABAP Class CL_HRPT_DATE_TOOLS (Utility Functions for Calculating Date)
Hierarchy
SAP_HRRXX (Software Component) Sub component SAP_HRRXX of SAP_HR
   PT-RC (Application Component) Time Data Recording and Administration
     PT_BLP_TOOLS (Package) BLP: Auxiliary Functions
Properties
Class CL_HRPT_DATE_TOOLS  
Short Description Utility Functions for Calculating Date    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package PT_BLP_TOOLS   BLP: Auxiliary Functions 
Created 20030103   SAP 
Last change 00000000   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_HRPT_DATE_TOOLS has no forward declaration.
Interfaces
Class CL_HRPT_DATE_TOOLS has no interface implemented.
Friends
Class CL_HRPT_DATE_TOOLS has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 UNIT_DAY Constant Public Type reference (TYPE) PT_ZEINH '010' Unit of Time/Measurement 20030103
2 UNIT_MONTH Constant Public Type reference (TYPE) PT_ZEINH '012' Unit of Time/Measurement 20030103
3 UNIT_WEEK Constant Public Type reference (TYPE) PT_ZEINH '011' Unit of Time/Measurement 20030103
4 UNIT_YEAR Constant Public Type reference (TYPE) PT_ZEINH '013' Unit of Time/Measurement 20030103
Methods
# Method Level Visibility Method type Description Created on
1 ADD_DATE Static method Public Method Addition to a Date 20030103
2 ADD_MONTHS Static method Protected Method Calculations with Months 20030103
3 CALC_PERIOD_BEGIN Static method Public Method Subtraction from a Date 20030107
4 CALC_PERIOD_END Static method Public Method Addition to a Date 20030107
5 PERIOD_ADD_MONTHS Static method Protected Method Calculations with Months 20030107
6 SUBTRACT_DATE Static method Public Method Subtraction from a Date 20030103
Events
Class CL_HRPT_DATE_TOOLS has no event.
Types
Class CL_HRPT_DATE_TOOLS has no local type.
Method Signatures

Method ADD_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing COUNT Value transfer Type reference (TYPE) INT4 20030103
2 Importing DATE_IN Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20030103
3 Returning DATE_OUT Value transfer Type reference (TYPE) DATS Feld vom Typ DATS 20030103
4 Importing UNIT Call by reference Type reference (TYPE) PT_ZEINH Zeit-/Masseinheit 20030103

Method ADD_DATE on class CL_HRPT_DATE_TOOLS has no exception.

Method ADD_MONTHS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE_IN Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20030103
2 Returning DATE_OUT Value transfer Type reference (TYPE) DATS Feld vom Typ DATS 20030103
3 Importing MONTHS Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20030103

Method ADD_MONTHS on class CL_HRPT_DATE_TOOLS has no exception.

Method CALC_PERIOD_BEGIN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing COUNT Value transfer Type reference (TYPE) INT4 Zählparameter 20030107
2 Importing DATE_IN Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20030107
3 Returning DATE_OUT Value transfer Type reference (TYPE) DATS Feld vom Typ DATS 20030107
4 Importing UNIT Call by reference Type reference (TYPE) PT_ZEINH Zeit-/Masseinheit 20030107

Method CALC_PERIOD_BEGIN on class CL_HRPT_DATE_TOOLS has no exception.

Method CALC_PERIOD_END Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing COUNT Value transfer Type reference (TYPE) INT4 20030107
2 Importing DATE_IN Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20030107
3 Returning DATE_OUT Value transfer Type reference (TYPE) DATS Feld vom Typ DATS 20030107
4 Importing UNIT Call by reference Type reference (TYPE) PT_ZEINH Zeit-/Masseinheit 20030107

Method CALC_PERIOD_END on class CL_HRPT_DATE_TOOLS has no exception.

Method PERIOD_ADD_MONTHS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE_IN Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20030107
2 Returning DATE_OUT Value transfer Type reference (TYPE) DATS Feld vom Typ DATS 20030107
3 Importing MONTHS Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20030107

Method PERIOD_ADD_MONTHS on class CL_HRPT_DATE_TOOLS has no exception.

Method SUBTRACT_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing COUNT Value transfer Type reference (TYPE) INT4 Zählparameter 20030103
2 Importing DATE_IN Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20030103
3 Returning DATE_OUT Value transfer Type reference (TYPE) DATS Feld vom Typ DATS 20030103
4 Importing UNIT Call by reference Type reference (TYPE) PT_ZEINH Zeit-/Masseinheit 20030103

Method SUBTRACT_DATE on class CL_HRPT_DATE_TOOLS has no exception.
History
Last changed by/on SAP  00000000 
SAP Release Created in 470