SAP ABAP Class CL_TBA_PERIODS_SERVICES (Service Class for Periods BAdIs)
Hierarchy
☛
PI_BASIS (Software Component) Basis Plug-In
⤷ CA-GTF-TRB (Application Component) Financial Risk Management Basis
⤷ FTRMP_SFWS_C01S01 (Package) Treasury Basis Objects - Switched Objects EHP7 of EA-FINSERV
⤷ CA-GTF-TRB (Application Component) Financial Risk Management Basis
⤷ FTRMP_SFWS_C01S01 (Package) Treasury Basis Objects - Switched Objects EHP7 of EA-FINSERV
Properties
Class | CL_TBA_PERIODS_SERVICES | |
Short Description | Service Class for Periods BAdIs | |
Super Class | ||
Instantiability of a Class | 0 | Private |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | FTRMP_SFWS_C01S01 | Treasury Basis Objects - Switched Objects EHP7 of EA-FINSERV |
Created | 20120726 | SAP |
Last change | 20130531 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ABAP | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_TBA_PERIODS_SERVICES has no interface implemented.
Friends
Class CL_TBA_PERIODS_SERVICES has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | C_HIGHDATE | Constant | Private | Type reference (TYPE) | SYDATUM | '99991231' | Highest Date | 20120726 | |
2 | C_MONDAY | Constant | Public | Type reference (TYPE) | SCAL-INDICATOR | '1' | Fatory calendar flag | 20130711 | |
3 | C_PERIODTYPE_CP | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'CP' | DCS Period | 20120726 | |
4 | C_PERIODTYPE_EP | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'EP' | Type of Contract Period | 20130116 | |
5 | C_PERIODTYPE_PSP | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'PSP' | Type of Contract Period | 20120726 | |
6 | C_PERIODTYPE_QP | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'QP' | Type of Contract Period | 20120727 | |
7 | C_PERIODTYPE_TP | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'TP' | Type of Contract Period | 20120726 | |
8 | C_SATURDAY | Constant | Public | Type reference (TYPE) | SCAL-INDICATOR | '6' | Fatory calendar flag | 20130118 | |
9 | C_WEDNESDAY | Constant | Public | Type reference (TYPE) | SCAL-INDICATOR | '3' | Fatory calendar flag | 20130115 | |
10 | GO_PERIODS_SERVICES | Static Attribute | Public | Object reference (TYPE REF TO) | CL_TBA_PERIODS_SERVICES | Service Class for Periods BAdIs | 20120726 | ||
11 | MT_MONTH_NAMES | Instance attribute | Private | See coding | 20120727 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CHECK_1ST_WEDNESDAY | Instance method | Public | Method | Check if the day is the 1st wednesday in a month | 20130123 |
2 | CHECK_3RD_WEDNESDAY | Instance method | Public | Method | Check if the day is the 3rd wednesday in a month | 20130115 |
3 | CHECK_DATE | Instance method | Private | Method | CHeck if the resulted day of a calulation is a valid date | 20120726 |
4 | CHECK_MONDAY | Instance method | Public | Method | Check if the day is a Monday | 20130711 |
5 | CHECK_SATURDAY | Instance method | Public | Method | Check if the day is a saturday | 20130118 |
6 | CHECK_WEDNESDAY | Instance method | Public | Method | Check if the day is a wednesday | 20130118 |
7 | CLASS_CONSTRUCTOR | Static method | Public | Constructor | 20120726 | |
8 | GET_LAST_DATE_OF_MONTH | Static method | Public | Method | Determine Last Day of a Month | 20120726 |
9 | GET_MONTH_NAME | Instance method | Public | Method | Get name of month | 20120727 |
10 | GET_NTH_LAST_WORKDAY | Instance method | Public | Method | Get the n-th last working day in a month | 20120727 |
11 | IS_WORKDAY | Static method | Public | Method | Check if the day is a work day/business day | 20120726 |
12 | SHIFT_DATE_TO_WORKDAY | Instance method | Public | Method | Shift the date if it is not on a business day | 20130116 |
13 | SHIFT_MONTH | Instance method | Public | Method | Shift the month using an offset | 20120726 |
14 | SHIFT_WORKDAY | Instance method | Public | Method | Shift the workday using an offset | 20120726 |
15 | SHIFT_WORKDAY_ON_CURRENT_SHIFT | Instance method | Public | Method | Shift the workday using an offset (with Current Date shift) | 20120802 |
Events
Class CL_TBA_PERIODS_SERVICES has no event.
Types
Class CL_TBA_PERIODS_SERVICES has no local type.
Method Signatures
Method CHECK_1ST_WEDNESDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130123 | ||
2 | Returning | RV_1ST_WEDNESDAY | Value transfer | Type reference (TYPE) | FLAG | Indicator, if date is 1st Wednesday of a month | 20130123 |
Method CHECK_1ST_WEDNESDAY on class CL_TBA_PERIODS_SERVICES has no exception.
Method CHECK_3RD_WEDNESDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130115 | ||
2 | Returning | RV_3RD_WEDNESDAY | Value transfer | Type reference (TYPE) | FLAG | General Flag | 20130115 |
Method CHECK_3RD_WEDNESDAY on class CL_TBA_PERIODS_SERVICES has no exception.
Method CHECK_DATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | ||
2 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 |
Method CHECK_DATE on class CL_TBA_PERIODS_SERVICES has no exception.
Method CHECK_MONDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130711 | ||
2 | Returning | RV_MONDAY | Value transfer | Type reference (TYPE) | FLAG | General Flag | 20130711 |
Method CHECK_MONDAY on class CL_TBA_PERIODS_SERVICES has no exception.
Method CHECK_SATURDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130118 | ||
2 | Returning | RV_SATURDAY | Value transfer | Type reference (TYPE) | FLAG | General Flag | 20130118 |
Method CHECK_SATURDAY on class CL_TBA_PERIODS_SERVICES has no exception.
Method CHECK_WEDNESDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130118 | ||
2 | Returning | RV_WEDNESDAY | Value transfer | Type reference (TYPE) | FLAG | General Flag | 20130118 |
Method CHECK_WEDNESDAY on class CL_TBA_PERIODS_SERVICES has no exception.
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_TBA_PERIODS_SERVICES has no parameter.
Method CLASS_CONSTRUCTOR on class CL_TBA_PERIODS_SERVICES has no exception.
Method GET_LAST_DATE_OF_MONTH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20120726 | ||
2 | Returning | RV_LAST_DAY_OF_MONTH | Value transfer | Type reference (TYPE) | DATS | 20120726 |
Method GET_LAST_DATE_OF_MONTH on class CL_TBA_PERIODS_SERVICES has no exception.
Method GET_MONTH_NAME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_KTX | Call by reference | Type reference (TYPE) | T247-KTX | Month short text | 20120727 | ||
2 | Exporting | EV_LTX | Call by reference | Type reference (TYPE) | T247-LTX | Month long text | 20120727 | ||
3 | Importing | IV_MONTH | Call by reference | Type reference (TYPE) | T247-MNR | Month number | 20120727 |
Method GET_MONTH_NAME on class CL_TBA_PERIODS_SERVICES has no exception.
Method GET_NTH_LAST_WORKDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120727 | ||
2 | Importing | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | SKALID | Factory calendar | 20120727 | ||
3 | Importing | IV_NTH | Call by reference | Type reference (TYPE) | I | 0 | 20120727 | ||
4 | Returning | RV_NTH_LAST_WORKDAY | Value transfer | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120727 |
Method GET_NTH_LAST_WORKDAY on class CL_TBA_PERIODS_SERVICES has no exception.
Method IS_WORKDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | ||
2 | Importing | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | WFCID | Factory Calendar | 20120726 | ||
3 | Returning | RV_IS_WORKDAY | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20120726 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_TBA_CALENDAR_EVALUATION | Calendar Evaluation | 20120726 |
Method SHIFT_DATE_TO_WORKDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | EV_KEYDATE | Value transfer | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130116 | ||
2 | Importing | IV_CORRECT_OPTION | Call by reference | Type reference (TYPE) | SCAL-INDICATOR | '+' | Fatory calendar flag | 20130118 | |
3 | Importing | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | SKALID | Factory calendar | 20130116 | ||
4 | Importing | IV_KEYDATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130116 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_TBA_CALENDAR_EVALUATION | Excepion Class for Calendar Evaluation | 20130116 |
Method SHIFT_MONTH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | ||
2 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | ||
3 | Importing | IV_DIRECTION | Call by reference | Type reference (TYPE) | CHAR1 | '+' | Single-Character Flag | 20120726 | |
4 | Importing | IV_MONTHS | Call by reference | Type reference (TYPE) | INT2 | Natural number | 20120726 |
Method SHIFT_MONTH on class CL_TBA_PERIODS_SERVICES has no exception.
Method SHIFT_WORKDAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | ||
2 | Importing | IV_CORRECT_OPTION | Call by reference | Type reference (TYPE) | SCAL-INDICATOR | Fatory calendar flag | 20120726 | ||
3 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | ||
4 | Importing | IV_DAYS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20120726 | ||
5 | Importing | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | WFCID | Factory Calendar | 20120726 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_TBA_CALENDAR_EVALUATION | Calendar Evaluation | 20120726 |
Method SHIFT_WORKDAY_ON_CURRENT_SHIFT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120802 | ||
2 | Importing | IV_DAYS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20120802 | ||
3 | Importing | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | WFCID | Factory Calendar | 20120802 | ||
4 | Returning | RV_DATE | Value transfer | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120802 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_TBA_CALENDAR_EVALUATION | Calendar Evaluation | 20120802 |
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in | 740 |