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 | ![]() |
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 | ![]() |
Constant | Private | Type reference (TYPE) | D | '19790101' | Valid-from date | 20020923 | |
2 | ![]() |
Constant | Private | Type reference (TYPE) | BOOLE_D | IF_HRPA_BOOLE_D=>FALSE | Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") | 20021016 | |
3 | ![]() |
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 | ![]() |
Static method | Public | Method | Adds No. of Months to Date | 20020904 |
2 | ![]() |
Static method | Public | Method | Adfd No. of Weeks to Date | 20020904 |
3 | ![]() |
Static method | Public | Method | Adds No. of Years to Date | 20020904 |
4 | ![]() |
Static method | Private | Method | Determines No. of Days per Year | 20021105 |
5 | ![]() |
Static method | Public | Method | Determines First Day of Calendar Week for Particular Year | 20021105 |
6 | ![]() |
Static method | Public | Method | Determines First Day of Week (Shifted) | 20021105 |
7 | ![]() |
Static method | Public | Method | Determines First Day of a Week | 20021017 |
8 | ![]() |
Static method | Public | Method | Determines First Day in Previous Month | 20021218 |
9 | ![]() |
Static method | Public | Method | Calculates Last Day of Current Month | 20021108 |
10 | ![]() |
Static method | Public | Method | Determines Last Day of Previous Month | 20021111 |
11 | ![]() |
Static method | Public | Method | Determines Number of Last Weekday | 20021105 |
12 | ![]() |
Static method | Public | Method | Determines Week in Which Date Lies (Shifted) | 20021216 |
13 | ![]() |
Static method | Public | Method | Determines Week in Which Date Lies (Shifted) | 20021105 |
14 | ![]() |
Static method | Public | Method | Determines Number of Weekday | 20021105 |
15 | ![]() |
Static method | Public | Method | Determines Number of Weekday (Shifted) | 20021105 |
16 | ![]() |
Static method | Public | Method | Subtracts No. of Months from Date | 20020904 |
17 | ![]() |
Static method | Public | Method | Subtracts No. of Weeks from Date | 20021219 |
18 | ![]() |
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 | ![]() |
DATE | Value transfer | Type reference (TYPE) | BEGDA | Berechnetes Datum | 20021017 | ||
2 | ![]() |
MONTHS | Call by reference | Type reference (TYPE) | I | Anzahl Monate | 20021017 | ||
3 | ![]() |
START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum auf das Monate addiert werden | 20021017 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
DATE | Value transfer | Type reference (TYPE) | BEGDA | Berechnetes Datum | 20021017 | ||
2 | ![]() |
START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum auf das Wochen addiert werden | 20021017 | ||
3 | ![]() |
WEEKS | Call by reference | Type reference (TYPE) | I | Anzahl Wochen | 20021017 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
DATE | Value transfer | Type reference (TYPE) | BEGDA | Berechnetes Datum | 20021017 | ||
2 | ![]() |
START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum auf das Jahre addiert werden | 20021017 | ||
3 | ![]() |
YEARS | Call by reference | Type reference (TYPE) | I | Anzahl Jahre | 20021017 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum des betreffenden Jahres | 20021105 | ||
2 | ![]() |
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 | ![]() |
DATE | Call by reference | Type reference (TYPE) | BEGDA | Ermitteltes Datum | 20021105 | ||
2 | ![]() |
IS_OK | Call by reference | Type reference (TYPE) | BOOLE_D | Datenelement zur Domäne BOOLE: TRUE (='X') und FALSE (=' ') | 20021105 | ||
3 | ![]() |
MESSAGE_HANDLER | Call by reference | Object reference (TYPE REF TO) | IF_HRPA_MESSAGE_HANDLER | HR-Stammdaten: Meldungen | 20021105 | ||
4 | ![]() |
WEEK | Call by reference | Type reference (TYPE) | NWEEK | Woche, deren erster Tag gesucht ist | 20021105 | ||
5 | ![]() |
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 | ![]() |
DATE_IN | Call by reference | Type reference (TYPE) | BEGDA | Datum | 20021105 | ||
2 | ![]() |
DATE_OUT | Value transfer | Type reference (TYPE) | BEGDA | Ermitteltes Datum | 20021105 | ||
3 | ![]() |
MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Ländergruppierung | 20021105 | ||
4 | ![]() |
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 | ![]() |
DATE_IN | Call by reference | Type reference (TYPE) | BEGDA | Datum | 20021105 | ||
2 | ![]() |
DATE_OUT | Value transfer | Type reference (TYPE) | BEGDA | Ermitteltes Datum | 20021105 | ||
3 | ![]() |
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 | ![]() |
DATE_IN | Call by reference | Type reference (TYPE) | BEGDA | Datum | 20021218 | ||
2 | ![]() |
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 | ![]() |
DATE_IN | Call by reference | Type reference (TYPE) | BEGDA | Datum | 20021108 | ||
2 | ![]() |
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 | ![]() |
DATE_IN | Call by reference | Type reference (TYPE) | BEGDA | Datum | 20021111 | ||
2 | ![]() |
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 | ![]() |
LAST_DAY_IN_WEEK | Value transfer | Type reference (TYPE) | I | Nummer des letzten Tages der Woche | 20021105 | ||
2 | ![]() |
MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Ländergruppierung | 20021105 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum | 20021216 | ||
2 | ![]() |
MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Ländergruppierung | 20021216 | ||
3 | ![]() |
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 | ![]() |
DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum | 20021105 | ||
2 | ![]() |
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 | ![]() |
DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum für das Wochentag bestimmt werden soll | 20021105 | ||
2 | ![]() |
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 | ![]() |
DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum für das Wochentag bestimmt werden soll | 20021105 | ||
2 | ![]() |
MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Ländergruppierung | 20021105 | ||
3 | ![]() |
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 | ![]() |
DATE | Value transfer | Type reference (TYPE) | BEGDA | Berechnetes Datum | 20021017 | ||
2 | ![]() |
MONTHS | Call by reference | Type reference (TYPE) | I | Anzahl Monate | 20021017 | ||
3 | ![]() |
START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum von dem subtrahiert wird | 20021017 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
DATE | Value transfer | Type reference (TYPE) | BEGDA | Berechnetes Datum | 20021219 | ||
2 | ![]() |
START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum auf das Wochen addiert werden | 20021219 | ||
3 | ![]() |
WEEKS | Call by reference | Type reference (TYPE) | I | Anzahl Wochen | 20021219 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
DATE | Value transfer | Type reference (TYPE) | BEGDA | Berechnetes Datum | 20021017 | ||
2 | ![]() |
START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Datum zu dem addiert wird | 20021017 | ||
3 | ![]() |
YEARS | Call by reference | Type reference (TYPE) | I | Anzahl Jahre | 20021017 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
HR: Stammdaten, unerfüllte Nachbedingung | 20021219 |
History
Last changed by/on | SAP | 20021219 |
SAP Release Created in | 200 |