SAP ABAP Class CL_HRPAD_DATE_COMPUTATIONS_UN (NPO: Date Caluculations)
Hierarchy
☛
SAP_HRCUN (Software Component) Sub component SAP_HRCUN of SAP_HR
⤷
PY-NPO (Application Component) Non Profit Organizations
⤷
PBUN (Package) Master Data Non Profit Organizations
⤷
⤷
Properties
| Class | CL_HRPAD_DATE_COMPUTATIONS_UN | |
| Short Description | NPO: Date Caluculations | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | PBUN | Master Data Non Profit Organizations |
| Created | 20060807 | SAP |
| Last change | 20071120 | 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_UN has no interface implemented.
Friends
Class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | 20060807 | ||
| 2 | Constant | Private | Type reference (TYPE) | BOOLE_D | IF_HRPA_BOOLE_D=>FALSE | Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") | 20060807 | ||
| 3 | Constant | Private | Type reference (TYPE) | BOOLE_D | IF_HRPA_BOOLE_D=>TRUE | Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") | 20060807 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Adds No. of Months to Date | 20060807 | |
| 2 | Static method | Public | Method | Adfd No. of Weeks to Date | 20060807 | |
| 3 | Static method | Public | Method | Adds No. of Years to Date | 20060807 | |
| 4 | Static method | Private | Method | Determines No. of Days per Year | 20060807 | |
| 5 | Static method | Public | Method | Determines First Day of Calendar Week for Particular Year | 20060807 | |
| 6 | Static method | Public | Method | Determines First Day of Week (Shifted) | 20060807 | |
| 7 | Static method | Public | Method | Determines First Day of a Week | 20060807 | |
| 8 | Static method | Public | Method | Determines First Day in Previous Month | 20060807 | |
| 9 | Static method | Public | Method | Calculates Last Day of Current Month | 20060807 | |
| 10 | Static method | Public | Method | Determines Last Day of Previous Month | 20060807 | |
| 11 | Static method | Public | Method | Determines Number of Last Weekday | 20060807 | |
| 12 | Static method | Public | Method | Determines Week in Which Date Lies (Shifted) | 20060807 | |
| 13 | Static method | Public | Method | Determines Week in Which Date Lies (Shifted) | 20060807 | |
| 14 | Static method | Public | Method | Determines Number of Weekday | 20060807 | |
| 15 | Static method | Public | Method | Determines Number of Weekday (Shifted) | 20060807 | |
| 16 | Static method | Public | Method | Subtracts No. of Months from Date | 20060807 | |
| 17 | Static method | Public | Method | Subtracts No. of Weeks from Date | 20060807 | |
| 18 | Static method | Public | Method | Subtracts No. of Years from Date | 20060807 |
Events
Class CL_HRPAD_DATE_COMPUTATIONS_UN has no event.
Types
Class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Calculated Date | 20060807 | |||
| 2 | MONTHS | Call by reference | Type reference (TYPE) | I | Number of Months | 20060807 | |||
| 3 | START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Date to Which Months Are Added | 20060807 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | HR: Stammdaten, unerfüllte Nachbedingung | 20060807 |
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 | Calculated Date | 20060807 | |||
| 2 | START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Date to Which Weeks Are Added | 20060807 | |||
| 3 | WEEKS | Call by reference | Type reference (TYPE) | I | Number of weeks | 20060807 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | HR: Stammdaten, unerfüllte Nachbedingung | 20060807 |
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 | Calculated Date | 20060807 | |||
| 2 | START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Date to Which Years Are Added | 20060807 | |||
| 3 | YEARS | Call by reference | Type reference (TYPE) | I | Number of Years | 20060807 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | HR: Stammdaten, unerfüllte Nachbedingung | 20060807 |
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 | Date of Relevant Year | 20060807 | |||
| 2 | NUMBER_DAYS | Value transfer | Type reference (TYPE) | I | No. of Days in Year | 20060807 |
Method GET_DAYS_PER_YEAR on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Determined date | 20060807 | |||
| 2 | IS_OK | Call by reference | Type reference (TYPE) | BOOLE_D | Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ") | 20060807 | |||
| 3 | MESSAGE_HANDLER | Call by reference | Object reference (TYPE REF TO) | IF_HRPA_MESSAGE_HANDLER | HR Master Data: Messages | 20060807 | |||
| 4 | WEEK | Call by reference | Type reference (TYPE) | NWEEK | Week Whose First Day Is Sought | 20060807 | |||
| 5 | YEAR | Call by reference | Type reference (TYPE) | NYEAR | Relevant Calendar Year | 20060807 |
Method GET_FIRST_DAY_CALENDAR_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date | 20060807 | |||
| 2 | DATE_OUT | Value transfer | Type reference (TYPE) | BEGDA | Determined date | 20060807 | |||
| 3 | MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Country Grouping | 20060807 | |||
| 4 | WEEK | Call by reference | Type reference (TYPE) | I | 1 | Week (1 = Current Week / Nth Subsequent Week) | 20060807 |
Method GET_FIRST_DAY_IN_SHIFTED_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date | 20060807 | |||
| 2 | DATE_OUT | Value transfer | Type reference (TYPE) | BEGDA | Determined date | 20060807 | |||
| 3 | WEEK | Call by reference | Type reference (TYPE) | I | 1 | Week (1 = Current Week / Nth Subsequent Week) | 20060807 |
Method GET_FIRST_DAY_IN_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date | 20060807 | |||
| 2 | DATE_OUT | Value transfer | Type reference (TYPE) | BEGDA | Determined date | 20060807 |
Method GET_FIRST_DAY_PREVIOUS_MONTH on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date | 20060807 | |||
| 2 | DATE_OUT | Value transfer | Type reference (TYPE) | BEGDA | Determined date | 20060807 |
Method GET_LAST_DAY_IN_MONTH on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date | 20060807 | |||
| 2 | DATE_OUT | Value transfer | Type reference (TYPE) | BEGDA | Determined date | 20060807 |
Method GET_LAST_DAY_PREVIOUS_MONTH on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Number of Last Day of Week | 20060807 | |||
| 2 | MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Country Grouping | 20060807 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | HR: Stammdaten, unerfüllte Vorbedingung | 20060807 |
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 | Date | 20060807 | |||
| 2 | MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Country Grouping | 20060807 | |||
| 3 | WEEK | Value transfer | Type reference (TYPE) | NWEEK | Calendar Week | 20060807 |
Method GET_SHIFTED_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date | 20060807 | |||
| 2 | WEEK | Value transfer | Type reference (TYPE) | NWEEK | Calendar Week | 20060807 |
Method GET_WEEK on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date for Which Weekday to be Determined | 20060807 | |||
| 2 | WEEKDAY | Value transfer | Type reference (TYPE) | I | Number of Weekday, e.g.: Monday = 1 | 20060807 |
Method GET_WEEKDAY_NUMBER on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Date for Which Weekday to be Determined | 20060807 | |||
| 2 | MOLGA | Call by reference | Type reference (TYPE) | MOLGA | Country Grouping | 20060807 | |||
| 3 | WEEKDAY | Value transfer | Type reference (TYPE) | I | Number of Weekday, e.g.: Monday = 1 | 20060807 |
Method GET_WEEKDAY_NUMBER_SHIFTED on class CL_HRPAD_DATE_COMPUTATIONS_UN 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 | Calculated Date | 20060807 | |||
| 2 | MONTHS | Call by reference | Type reference (TYPE) | I | Number of Months | 20060807 | |||
| 3 | START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Date From Which Subtracted | 20060807 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | HR: Stammdaten, unerfüllte Nachbedingung | 20060807 |
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 | Calculated Date | 20060807 | |||
| 2 | START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Date to Which Weeks Are Added | 20060807 | |||
| 3 | WEEKS | Call by reference | Type reference (TYPE) | I | Number of weeks | 20060807 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | HR: Stammdaten, unerfüllte Nachbedingung | 20060807 |
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 | Calculated Date | 20060807 | |||
| 2 | START_DATE | Call by reference | Type reference (TYPE) | BEGDA | Date to Which Added | 20060807 | |||
| 3 | YEARS | Call by reference | Type reference (TYPE) | I | Number of Years | 20060807 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | HR: Stammdaten, unerfüllte Nachbedingung | 20060807 |
History
| Last changed by/on | SAP | 20071120 |
| SAP Release Created in |