SAP ABAP Class CL_HR_PSF_UNIT_DURATION_TOOLS (Tools for duration and time unit)
Hierarchy
☛
EA-HRCFR (Software Component) Sub component EA-HRCFR of EA-HR
⤷
PY-FR-PS (Application Component) Öffentlicher Dienst
⤷
PAOC_PAD_FR_PS (Package) HR PS FR: Infotype Decoupling for Public Sector France
⤷
⤷
Properties
| Class | CL_HR_PSF_UNIT_DURATION_TOOLS | |
| Short Description | Tools for duration and time unit | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | PAOC_PAD_FR_PS | HR PS FR: Infotype Decoupling for Public Sector France |
| Created | 20030219 | SAP |
| Last change | 20071120 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_HR_PSF_UNIT_DURATION_TOOLS has no forward declaration.
Interfaces
Class CL_HR_PSF_UNIT_DURATION_TOOLS has no interface implemented.
Friends
Class CL_HR_PSF_UNIT_DURATION_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) | MERK1 | 'CRULE' | Characteristic name | 20030220 | ||
| 2 | Constant | Public | Type reference (TYPE) | PT_ZEINH | '010' | Days | 20030219 | ||
| 3 | Constant | Public | Type reference (TYPE) | PT_ZEINH | '012' | Month | 20030219 | ||
| 4 | Constant | Public | Type reference (TYPE) | PT_ZEINH | '013' | Years | 20030219 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Add duration (value+unit) to a date | 20030220 | |
| 2 | Static method | Public | Method | 20060828 | ||
| 3 | Static method | Public | Method | Check time unit is exclusively days, months or years | 20030219 | |
| 4 | Static method | Public | Method | Convert duration by calc.rule: value+unit->days+months+years | 20030219 | |
| 5 | Static method | Public | Method | Convert duration: value+unit->days+months+years | 20030219 | |
| 6 | Static method | Public | Method | Read feature for intotype and T525U to get calculation rules | 20030220 |
Events
Class CL_HR_PSF_UNIT_DURATION_TOOLS has no event.
Types
Class CL_HR_PSF_UNIT_DURATION_TOOLS has no local type.
Method Signatures
Method ADD_DURATION_NU_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | BEGDA | Value transfer | Type reference (TYPE) | BEGDA | Start date | 20030220 | |||
| 2 | DURNU | Value transfer | Type reference (TYPE) | HRFRPBS_DURNU | Duration expressed in the form of length/unity | 20030220 | |||
| 3 | ENDDA | Value transfer | Type reference (TYPE) | ENDDA | Valid until | 20030220 | |||
| 4 | T525U | Call by reference | Type reference (TYPE) | T525U | Conversion rules for calculating seniority | 20030220 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error in calculation | 20030220 |
Method CHECK_COUPLE_NUMBER_UNIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TIME_NUMBER | Call by reference | Type reference (TYPE) | P06_DURAU | 20060828 | ||||
| 2 | IV_TIME_UNIT | Call by reference | Type reference (TYPE) | PT_ZEINH | Time/measurement unit | 20060828 | |||
| 3 | RV_IS_OK | Call by reference | Type reference (TYPE) | BOOLE_D | BOOLE field data elements: TRUE (='X') and FALSE (=' ') | 20060828 |
Method CHECK_COUPLE_NUMBER_UNIT on class CL_HR_PSF_UNIT_DURATION_TOOLS has no exception.
Method CHECK_TIME_UNIT_PSF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TIME_UNIT | Value transfer | Type reference (TYPE) | PT_ZEINH | Time/measurement unit | 20030219 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Unit invalid | 20030219 |
Method CONVERT_DEC3_CRULE_DURATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DURAT | Value transfer | Type reference (TYPE) | PSEN_DURATION_DEC | Duration in years, months and days with decimals | 20030219 | |||
| 2 | DURNU | Value transfer | Type reference (TYPE) | HRFRPBS_DURNU | Duration expressed in the form of length/unity | 20030219 | |||
| 3 | FMSUM | Call by reference | Type reference (TYPE) | PSEN_FMSUM | Function module for the cumulation of durations | 20030219 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Internal error | 20030219 |
Method CONVERT_DEC3_DURATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DURAT | Call by reference | Type reference (TYPE) | PSEN_DURATION_DEC | Duration in years, months and days with decimals | 20030219 | |||
| 2 | DURNU | Value transfer | Type reference (TYPE) | HRFRPBS_DURNU | Duration expressed in the form of length/unity | 20030219 |
Method CONVERT_DEC3_DURATION on class CL_HR_PSF_UNIT_DURATION_TOOLS has no exception.
Method READ_FUNCTIONS_CRULE_INFTY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | INFTY | Value transfer | Type reference (TYPE) | INFTY | Infotype | 20030220 | |||
| 2 | LAND1 | Value transfer | Type reference (TYPE) | LAND1 | Country key | 20030220 | |||
| 3 | MOLGA | Value transfer | Type reference (TYPE) | MOLGA | Country group | 20030220 | |||
| 4 | SUBTY | Value transfer | Type reference (TYPE) | SUBTY | SsType | 20030220 | |||
| 5 | T525U | Value transfer | Type reference (TYPE) | T525U | Conversion rules for calculating seniority | 20030220 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Error during reading of the characteristic | 20030220 |
History
| Last changed by/on | SAP | 20071120 |
| SAP Release Created in | 200 |