SAP ABAP Class CL_HRPAD_DATE_COMPUTATIONS (Date Calculations)
Hierarchy
EA-HRRXX (Software Component) Sub component EA-HRRXX of EA-HR
   PA-PA (Application Component) Personnel Administration
     PAOC_PAD_DATE_COMPUTATIONS (Package) Date Calculations
Properties
Class CL_HRPAD_DATE_COMPUTATIONS  
Short Description Date Calculations    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status P  SAP Standard Production Program 
Category 0   
Package PAOC_PAD_DATE_COMPUTATIONS   Date Calculations 
Created 20020903   SAP 
Last change 20021219   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_HRPA_BOOLE_D Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_HRPAD_DATE_COMPUTATIONS has no interface implemented.
Friends
Class CL_HRPAD_DATE_COMPUTATIONS has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 A_REFERENCE_DATE Constant Private Type reference (TYPE) D '19790101' Valid-from date 20020923
2 FALSE Constant Private Type reference (TYPE) BOOLE_D IF_HRPA_BOOLE_D=>FALSE Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") 20021016
3 TRUE Constant Private Type reference (TYPE) BOOLE_D IF_HRPA_BOOLE_D=>TRUE Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") 20021016
Methods
# Method Level Visibility Method type Description Created on
1 ADD_MONTHS_TO_DATE Static method Public Method Adds No. of Months to Date 20020904
2 ADD_WEEKS_TO_DATE Static method Public Method Adfd No. of Weeks to Date 20020904
3 ADD_YEARS_TO_DATE Static method Public Method Adds No. of Years to Date 20020904
4 GET_DAYS_PER_YEAR Static method Private Method Determines No. of Days per Year 20021105
5 GET_FIRST_DAY_CALENDAR_WEEK Static method Public Method Determines First Day of Calendar Week for Particular Year 20021105
6 GET_FIRST_DAY_IN_SHIFTED_WEEK Static method Public Method Determines First Day of Week (Shifted) 20021105
7 GET_FIRST_DAY_IN_WEEK Static method Public Method Determines First Day of a Week 20021017
8 GET_FIRST_DAY_PREVIOUS_MONTH Static method Public Method Determines First Day in Previous Month 20021218
9 GET_LAST_DAY_IN_MONTH Static method Public Method Calculates Last Day of Current Month 20021108
10 GET_LAST_DAY_PREVIOUS_MONTH Static method Public Method Determines Last Day of Previous Month 20021111
11 GET_LAST_WEEKDAY_NUMBER Static method Public Method Determines Number of Last Weekday 20021105
12 GET_SHIFTED_WEEK Static method Public Method Determines Week in Which Date Lies (Shifted) 20021216
13 GET_WEEK Static method Public Method Determines Week in Which Date Lies (Shifted) 20021105
14 GET_WEEKDAY_NUMBER Static method Public Method Determines Number of Weekday 20021105
15 GET_WEEKDAY_NUMBER_SHIFTED Static method Public Method Determines Number of Weekday (Shifted) 20021105
16 SUBTRACT_MONTHS_FROM_DATE Static method Public Method Subtracts No. of Months from Date 20020904
17 SUBTRACT_WEEKS_FROM_DATE Static method Public Method Subtracts No. of Weeks from Date 20021219
18 SUBTRACT_YEARS_FROM_DATE Static method Public Method Subtracts No. of Years from Date 20020904
Events
Class CL_HRPAD_DATE_COMPUTATIONS has no event.
Types
Class CL_HRPAD_DATE_COMPUTATIONS has no local type.
Method Signatures

Method ADD_MONTHS_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Berechnetes Datum 20021017
2 Importing MONTHS Call by reference Type reference (TYPE) I Anzahl Monate 20021017
3 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Datum auf das Monate addiert werden 20021017
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20021219

Method ADD_WEEKS_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Berechnetes Datum 20021017
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Datum auf das Wochen addiert werden 20021017
3 Importing WEEKS Call by reference Type reference (TYPE) I Anzahl Wochen 20021017
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20021219

Method ADD_YEARS_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Berechnetes Datum 20021017
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Datum auf das Jahre addiert werden 20021017
3 Importing YEARS Call by reference Type reference (TYPE) I Anzahl Jahre 20021017
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20021219

Method GET_DAYS_PER_YEAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Datum des betreffenden Jahres 20021105
2 Returning NUMBER_DAYS Value transfer Type reference (TYPE) I Anzahl der Tage im Jahr 20021105

Method GET_DAYS_PER_YEAR on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_FIRST_DAY_CALENDAR_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting DATE Call by reference Type reference (TYPE) BEGDA Ermitteltes Datum 20021105
2 Exporting IS_OK Call by reference Type reference (TYPE) BOOLE_D Datenelement zur Domäne BOOLE: TRUE (='X') und FALSE (=' ') 20021105
3 Importing MESSAGE_HANDLER Call by reference Object reference (TYPE REF TO) IF_HRPA_MESSAGE_HANDLER HR-Stammdaten: Meldungen 20021105
4 Importing WEEK Call by reference Type reference (TYPE) NWEEK Woche, deren erster Tag gesucht ist 20021105
5 Importing YEAR Call by reference Type reference (TYPE) NYEAR relevantes Kalenderjahr 20021105

Method GET_FIRST_DAY_CALENDAR_WEEK on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_FIRST_DAY_IN_SHIFTED_WEEK 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) BEGDA Datum 20021105
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Ermitteltes Datum 20021105
3 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Ländergruppierung 20021105
4 Importing WEEK Call by reference Type reference (TYPE) I 1 Woche (1 = aktuelle Woche, bzw. n-te Folgewoche) 20021105

Method GET_FIRST_DAY_IN_SHIFTED_WEEK on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_FIRST_DAY_IN_WEEK 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) BEGDA Datum 20021105
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Ermitteltes Datum 20021105
3 Importing WEEK Call by reference Type reference (TYPE) I 1 Woche (1 = aktuelle Woche, bzw. n-te Folgewoche) 20021105

Method GET_FIRST_DAY_IN_WEEK on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_FIRST_DAY_PREVIOUS_MONTH 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) BEGDA Datum 20021218
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Ermitteltes Datum 20021218

Method GET_FIRST_DAY_PREVIOUS_MONTH on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_LAST_DAY_IN_MONTH 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) BEGDA Datum 20021108
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Ermitteltes Datum 20021108

Method GET_LAST_DAY_IN_MONTH on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_LAST_DAY_PREVIOUS_MONTH 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) BEGDA Datum 20021111
2 Returning DATE_OUT Value transfer Type reference (TYPE) BEGDA Ermitteltes Datum 20021111

Method GET_LAST_DAY_PREVIOUS_MONTH on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_LAST_WEEKDAY_NUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning LAST_DAY_IN_WEEK Value transfer Type reference (TYPE) I Nummer des letzten Tages der Woche 20021105
2 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Ländergruppierung 20021105
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_PRECONDITION HR: Stammdaten, unerfüllte Vorbedingung 20021219

Method GET_SHIFTED_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Datum 20021216
2 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Ländergruppierung 20021216
3 Returning WEEK Value transfer Type reference (TYPE) NWEEK Kalenderwoche 20021216

Method GET_SHIFTED_WEEK on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Datum 20021105
2 Returning WEEK Value transfer Type reference (TYPE) NWEEK Kalenderwoche 20021105

Method GET_WEEK on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_WEEKDAY_NUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Datum für das Wochentag bestimmt werden soll 20021105
2 Returning WEEKDAY Value transfer Type reference (TYPE) I Nummer des Wochentages, z.B: Montag = 1 20021105

Method GET_WEEKDAY_NUMBER on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method GET_WEEKDAY_NUMBER_SHIFTED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DATE Call by reference Type reference (TYPE) BEGDA Datum für das Wochentag bestimmt werden soll 20021105
2 Importing MOLGA Call by reference Type reference (TYPE) MOLGA Ländergruppierung 20021105
3 Returning WEEKDAY Value transfer Type reference (TYPE) I Nummer Wochentages, z.B: Montag = 1 20021105

Method GET_WEEKDAY_NUMBER_SHIFTED on class CL_HRPAD_DATE_COMPUTATIONS has no exception.

Method SUBTRACT_MONTHS_FROM_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Berechnetes Datum 20021017
2 Importing MONTHS Call by reference Type reference (TYPE) I Anzahl Monate 20021017
3 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Datum von dem subtrahiert wird 20021017
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20021219

Method SUBTRACT_WEEKS_FROM_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Berechnetes Datum 20021219
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Datum auf das Wochen addiert werden 20021219
3 Importing WEEKS Call by reference Type reference (TYPE) I Anzahl Wochen 20021219
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20021219

Method SUBTRACT_YEARS_FROM_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DATE Value transfer Type reference (TYPE) BEGDA Berechnetes Datum 20021017
2 Importing START_DATE Call by reference Type reference (TYPE) BEGDA Datum zu dem addiert wird 20021017
3 Importing YEARS Call by reference Type reference (TYPE) I Anzahl Jahre 20021017
# Exception Resumable Description Created on
1 CX_HRPA_VIOLATED_POSTCONDITION HR: Stammdaten, unerfüllte Nachbedingung 20021219
History
Last changed by/on SAP  20021219 
SAP Release Created in 200