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 | Constant | Public | Type reference (TYPE) | PT_ZEINH | '010' | Unit of Time/Measurement | 20030103 | ||
| 2 | Constant | Public | Type reference (TYPE) | PT_ZEINH | '012' | Unit of Time/Measurement | 20030103 | ||
| 3 | Constant | Public | Type reference (TYPE) | PT_ZEINH | '011' | Unit of Time/Measurement | 20030103 | ||
| 4 | Constant | Public | Type reference (TYPE) | PT_ZEINH | '013' | Unit of Time/Measurement | 20030103 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Addition to a Date | 20030103 | |
| 2 | Static method | Protected | Method | Calculations with Months | 20030103 | |
| 3 | Static method | Public | Method | Subtraction from a Date | 20030107 | |
| 4 | Static method | Public | Method | Addition to a Date | 20030107 | |
| 5 | Static method | Protected | Method | Calculations with Months | 20030107 | |
| 6 | 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 | COUNT | Value transfer | Type reference (TYPE) | INT4 | 20030103 | ||||
| 2 | DATE_IN | Call by reference | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030103 | |||
| 3 | DATE_OUT | Value transfer | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030103 | |||
| 4 | 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 | DATE_IN | Call by reference | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030103 | |||
| 2 | DATE_OUT | Value transfer | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030103 | |||
| 3 | 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 | COUNT | Value transfer | Type reference (TYPE) | INT4 | Zählparameter | 20030107 | |||
| 2 | DATE_IN | Call by reference | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030107 | |||
| 3 | DATE_OUT | Value transfer | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030107 | |||
| 4 | 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 | COUNT | Value transfer | Type reference (TYPE) | INT4 | 20030107 | ||||
| 2 | DATE_IN | Call by reference | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030107 | |||
| 3 | DATE_OUT | Value transfer | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030107 | |||
| 4 | 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 | DATE_IN | Call by reference | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030107 | |||
| 2 | DATE_OUT | Value transfer | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030107 | |||
| 3 | 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 | COUNT | Value transfer | Type reference (TYPE) | INT4 | Zählparameter | 20030103 | |||
| 2 | DATE_IN | Call by reference | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030103 | |||
| 3 | DATE_OUT | Value transfer | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20030103 | |||
| 4 | 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 |