SAP ABAP Class CL_TBA_TENOR_SERVICES (Service class for Tenor definition)
Hierarchy
☛
PI_BASIS (Software Component) Basis Plug-In
⤷
CA-GTF-TRB (Application Component) Financial Risk Management Basis
⤷
FTR_BASIS_DATA_ACCESS (Package) Treasury Basis Objects - Data Access
⤷
⤷
Properties
| Class | CL_TBA_TENOR_SERVICES | |
| Short Description | Service class for Tenor definition | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | FTR_BASIS_DATA_ACCESS | Treasury Basis Objects - Data Access |
| Created | 20120709 | 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_TENOR_SERVICES has no interface implemented.
Friends
Class CL_TBA_TENOR_SERVICES has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Type reference (TYPE) | TBAY_KEYDATE_BY_TENOR_BUFFER | Determine Keydate by Tenor Buffer | 20130301 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | TBAY_KEYDATE_BY_TENOR_BUFFER | List of Potential Keydate/Tenor Combinations | 20130415 | |||
| 3 | Static Attribute | Private | Type reference (TYPE) | GT_TBAS_TENOR_COMM | Puffertable Tenor definition | 20120710 | |||
| 4 | Static Attribute | Private | Type reference (TYPE) | TBAY_TENOR_USE | Tenor Usage | 20130426 | |||
| 5 | Static Attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20130321 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Checks if tenor usage exists | 20130426 | |
| 2 | Static method | Public | Method | Determine key date from date and Tenor | 20120709 | |
| 3 | Static method | Public | Method | Determine potential key date from date and Tenor | 20130415 | |
| 4 | Static method | Public | Method | Get List of all available Tenor Definitions | 20130321 | |
| 5 | Static method | Public | Method | Get Tenor definition | 20120709 | |
| 6 | Static method | Public | Method | Get List of all available Tenor Usages | 20130426 | |
| 7 | Static method | Public | Method | Shift Date by Tenor | 20130306 |
Events
Class CL_TBA_TENOR_SERVICES has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | GT_TBAS_TENOR_COMM | Private | See coding | 20120710 | gt_tbas_tenor_comm TYPE SORTED TABLE OF tbas_tenor_comm WITH UNIQUE KEY tenor
|
Method Signatures
Method CHECK_TENOR_USE_EXISTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_EXISTS | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20130426 | ||||
| 2 | IV_MIC | Call by reference | Type reference (TYPE) | TBA_MIC | Market Identifier Code | 20130426 | |||
| 3 | IV_PRICETYPE | Call by reference | Type reference (TYPE) | TBA_PRICETYPE | Type of Price Quotation | 20130426 | |||
| 4 | IV_TENOR | Call by reference | Type reference (TYPE) | TBA_TENOR | Time to Maturity | 20130426 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception thrown when input param invalid | 20130426 |
Method DETERMINE_KEYDATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_KEYDATE_PERIOD | Call by reference | Type reference (TYPE) | TBAS_DCS_PERDS | DCS Period | 20130319 | |||
| 2 | EV_KEYDATE | Call by reference | Type reference (TYPE) | TBA_KEYDATE | Derivative Contract Key Date | 20130319 | |||
| 3 | IV_BASE_DATE | Call by reference | Type reference (TYPE) | DATS | Date in CHAR format | 20120709 | |||
| 4 | IV_DCSID | Call by reference | Type reference (TYPE) | TBA_DCSID | Derivative Contract Specification ID | 20130110 | |||
| 5 | IV_START_DATE | Call by reference | Type reference (TYPE) | DATS | SY-DATUM | Start Date for Period Determination | 20130409 | ||
| 6 | IV_TENOR | Call by reference | Type reference (TYPE) | TBA_TENOR | special quotations to identify the relevant key date | 20120709 | |||
| 7 | RV_KEYDATE | Value transfer | Type reference (TYPE) | DATS | Date in CHAR format | 20120709 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception class for invalid customizing | 20130110 | ||
| 2 | Exception thrown when input param invalid | 20120709 |
Method DETERMINE_POTENTIAL_KEYDATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_POTENTIAL_KEYDATE | Call by reference | Type reference (TYPE) | TBA_KEYDATE | Derivative Contract Key Date | 20130415 | |||
| 2 | IV_BASE_DATE | Call by reference | Type reference (TYPE) | DATS | Base Date, for which Key Date shall be determined | 20130415 | |||
| 3 | IV_DCSID | Call by reference | Type reference (TYPE) | TBA_DCSID | Derivative Contract Specification ID | 20130415 | |||
| 4 | IV_SHIFT_TO_WORKDAY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Shift Base Date + Time to Maturity to Workday | 20130417 | ||
| 5 | IV_TENOR | Call by reference | Type reference (TYPE) | TBA_TENOR | special quotations to identify the relevant key date | 20130415 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception class for invalid customizing | 20130415 | ||
| 2 | Exception thrown when input param invalid | 20130415 |
Method GET_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_TENOR | Value transfer | Type reference (TYPE) | TBAY_TENOR_COMM | List of Tenor Definitions | 20130321 |
Method GET_LIST on class CL_TBA_TENOR_SERVICES has no exception.
Method GET_TENOR_DEFINITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TENOR | Call by reference | Type reference (TYPE) | TBA_TENOR | special quotations to identify the relevant key date | 20120709 | |||
| 2 | RS_TBAS_TENOR | Value transfer | Type reference (TYPE) | TBAS_TENOR_COMM | Communication structure Tenor definition | 20120709 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception thrown when input param invalid | 20120709 |
Method GET_TENOR_USE_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_TENOR_USE | Value transfer | Type reference (TYPE) | TBAY_TENOR_USE | Tenor Usage | 20130426 |
Method GET_TENOR_USE_LIST on class CL_TBA_TENOR_SERVICES has no exception.
Method SHIFT_DATE_BY_TENOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Value transfer | Type reference (TYPE) | DATS | Date in CHAR format | 20130306 | |||
| 2 | IV_BASE_DATE | Call by reference | Type reference (TYPE) | DATS | Date in CHAR format | 20130306 | |||
| 3 | IV_TENOR | Call by reference | Type reference (TYPE) | TBA_TENOR | special quotations to identify the relevant key date | 20130306 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception thrown when input param invalid | 20130306 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 740 |