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
⤷
⤷
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 | 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 | Constant | Private | Type reference (TYPE) | SYDATUM | '99991231' | Highest Date | 20120726 | ||
| 2 | Constant | Public | Type reference (TYPE) | SCAL-INDICATOR | '1' | Fatory calendar flag | 20130711 | ||
| 3 | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'CP' | DCS Period | 20120726 | ||
| 4 | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'EP' | Type of Contract Period | 20130116 | ||
| 5 | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'PSP' | Type of Contract Period | 20120726 | ||
| 6 | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'QP' | Type of Contract Period | 20120727 | ||
| 7 | Constant | Public | Type reference (TYPE) | TBA_PERIODTYPE | 'TP' | Type of Contract Period | 20120726 | ||
| 8 | Constant | Public | Type reference (TYPE) | SCAL-INDICATOR | '6' | Fatory calendar flag | 20130118 | ||
| 9 | Constant | Public | Type reference (TYPE) | SCAL-INDICATOR | '3' | Fatory calendar flag | 20130115 | ||
| 10 | Static Attribute | Public | Object reference (TYPE REF TO) | CL_TBA_PERIODS_SERVICES | Service Class for Periods BAdIs | 20120726 | |||
| 11 | Instance attribute | Private | See coding | 20120727 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Check if the day is the 1st wednesday in a month | 20130123 | |
| 2 | Instance method | Public | Method | Check if the day is the 3rd wednesday in a month | 20130115 | |
| 3 | Instance method | Private | Method | CHeck if the resulted day of a calulation is a valid date | 20120726 | |
| 4 | Instance method | Public | Method | Check if the day is a Monday | 20130711 | |
| 5 | Instance method | Public | Method | Check if the day is a saturday | 20130118 | |
| 6 | Instance method | Public | Method | Check if the day is a wednesday | 20130118 | |
| 7 | Static method | Public | Constructor | 20120726 | ||
| 8 | Static method | Public | Method | Determine Last Day of a Month | 20120726 | |
| 9 | Instance method | Public | Method | Get name of month | 20120727 | |
| 10 | Instance method | Public | Method | Get the n-th last working day in a month | 20120727 | |
| 11 | Static method | Public | Method | Check if the day is a work day/business day | 20120726 | |
| 12 | Instance method | Public | Method | Shift the date if it is not on a business day | 20130116 | |
| 13 | Instance method | Public | Method | Shift the month using an offset | 20120726 | |
| 14 | Instance method | Public | Method | Shift the workday using an offset | 20120726 | |
| 15 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130123 | |||
| 2 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130115 | |||
| 2 | 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 | EV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | |||
| 2 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130711 | |||
| 2 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130118 | |||
| 2 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130118 | |||
| 2 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20120726 | |||
| 2 | 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 | EV_KTX | Call by reference | Type reference (TYPE) | T247-KTX | Month short text | 20120727 | |||
| 2 | EV_LTX | Call by reference | Type reference (TYPE) | T247-LTX | Month long text | 20120727 | |||
| 3 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120727 | |||
| 2 | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | SKALID | Factory calendar | 20120727 | |||
| 3 | IV_NTH | Call by reference | Type reference (TYPE) | I | 0 | 20120727 | |||
| 4 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | |||
| 2 | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | WFCID | Factory Calendar | 20120726 | |||
| 3 | RV_IS_WORKDAY | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20120726 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Calendar Evaluation | 20120726 |
Method SHIFT_DATE_TO_WORKDAY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_KEYDATE | Value transfer | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130116 | |||
| 2 | IV_CORRECT_OPTION | Call by reference | Type reference (TYPE) | SCAL-INDICATOR | '+' | Fatory calendar flag | 20130118 | ||
| 3 | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | SKALID | Factory calendar | 20130116 | |||
| 4 | IV_KEYDATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20130116 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | EV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | |||
| 2 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | |||
| 3 | IV_DIRECTION | Call by reference | Type reference (TYPE) | CHAR1 | '+' | Single-Character Flag | 20120726 | ||
| 4 | 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 | EV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | |||
| 2 | IV_CORRECT_OPTION | Call by reference | Type reference (TYPE) | SCAL-INDICATOR | Fatory calendar flag | 20120726 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120726 | |||
| 4 | IV_DAYS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20120726 | |||
| 5 | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | WFCID | Factory Calendar | 20120726 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120802 | |||
| 2 | IV_DAYS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20120802 | |||
| 3 | IV_FACTORY_CALENDAR_ID | Call by reference | Type reference (TYPE) | WFCID | Factory Calendar | 20120802 | |||
| 4 | RV_DATE | Value transfer | Type reference (TYPE) | SYDATUM | Current Date of Application Server | 20120802 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Calendar Evaluation | 20120802 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 740 |