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
⤷ 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 | A_FEATURE_CRULE | Constant | Public | Type reference (TYPE) | MERK1 | 'CRULE' | Characteristic name | 20030220 | |
2 | A_ID_UNIT_DAYS | Constant | Public | Type reference (TYPE) | PT_ZEINH | '010' | Days | 20030219 | |
3 | A_ID_UNIT_MONTHS | Constant | Public | Type reference (TYPE) | PT_ZEINH | '012' | Month | 20030219 | |
4 | A_ID_UNIT_YEARS | Constant | Public | Type reference (TYPE) | PT_ZEINH | '013' | Years | 20030219 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ADD_DURATION_NU_DATE | Static method | Public | Method | Add duration (value+unit) to a date | 20030220 |
2 | CHECK_COUPLE_NUMBER_UNIT | Static method | Public | Method | 20060828 | |
3 | CHECK_TIME_UNIT_PSF | Static method | Public | Method | Check time unit is exclusively days, months or years | 20030219 |
4 | CONVERT_DEC3_CRULE_DURATION | Static method | Public | Method | Convert duration by calc.rule: value+unit->days+months+years | 20030219 |
5 | CONVERT_DEC3_DURATION | Static method | Public | Method | Convert duration: value+unit->days+months+years | 20030219 |
6 | READ_FUNCTIONS_CRULE_INFTY | 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 | Importing | BEGDA | Value transfer | Type reference (TYPE) | BEGDA | Start date | 20030220 | ||
2 | Importing | DURNU | Value transfer | Type reference (TYPE) | HRFRPBS_DURNU | Duration expressed in the form of length/unity | 20030220 | ||
3 | Exporting | ENDDA | Value transfer | Type reference (TYPE) | ENDDA | Valid until | 20030220 | ||
4 | Importing | T525U | Call by reference | Type reference (TYPE) | T525U | Conversion rules for calculating seniority | 20030220 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CALCULATION_ERROR | 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 | Importing | IV_TIME_NUMBER | Call by reference | Type reference (TYPE) | P06_DURAU | 20060828 | |||
2 | Importing | IV_TIME_UNIT | Call by reference | Type reference (TYPE) | PT_ZEINH | Time/measurement unit | 20060828 | ||
3 | Exporting | 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 | Importing | TIME_UNIT | Value transfer | Type reference (TYPE) | PT_ZEINH | Time/measurement unit | 20030219 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | INVALID_UNIT | Unit invalid | 20030219 |
Method CONVERT_DEC3_CRULE_DURATION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | DURAT | Value transfer | Type reference (TYPE) | PSEN_DURATION_DEC | Duration in years, months and days with decimals | 20030219 | ||
2 | Importing | DURNU | Value transfer | Type reference (TYPE) | HRFRPBS_DURNU | Duration expressed in the form of length/unity | 20030219 | ||
3 | Importing | 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 | Internal error | 20030219 |
Method CONVERT_DEC3_DURATION Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | DURAT | Call by reference | Type reference (TYPE) | PSEN_DURATION_DEC | Duration in years, months and days with decimals | 20030219 | ||
2 | Importing | 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 | Importing | INFTY | Value transfer | Type reference (TYPE) | INFTY | Infotype | 20030220 | ||
2 | Importing | LAND1 | Value transfer | Type reference (TYPE) | LAND1 | Country key | 20030220 | ||
3 | Importing | MOLGA | Value transfer | Type reference (TYPE) | MOLGA | Country group | 20030220 | ||
4 | Importing | SUBTY | Value transfer | Type reference (TYPE) | SUBTY | SsType | 20030220 | ||
5 | Exporting | T525U | Value transfer | Type reference (TYPE) | T525U | Conversion rules for calculating seniority | 20030220 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | FEATURE_ERROR | Error during reading of the characteristic | 20030220 |
History
Last changed by/on | SAP | 20071120 |
SAP Release Created in | 200 |