SAP ABAP Class CL_OLD_SAC_CALCULATOR_CAL (Treasury: SAC Calculation)
Hierarchy
☛
EA-FINSERV (Software Component) SAP Enterprise Extension Financial Services
⤷
FIN-FSCM-TRM-TM-AC (Application Component) Transfer to Financial Accounting
⤷
FTR_VAL_CALCULATOR (Package) Treasury: Calculations for Valuation and Derived BTs
⤷
⤷
Properties
| Class | CL_OLD_SAC_CALCULATOR_CAL | |
| Short Description | Treasury: SAC Calculation | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | FTR_VAL_CALCULATOR | Treasury: Calculations for Valuation and Derived BTs |
| Created | 20000720 | SAP |
| Last change | 20050109 | 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_OLD_SAC_CALCULATOR_CAL has no interface implemented.
Friends
Class CL_OLD_SAC_CALCULATOR_CAL has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_OLD_SAC_CALCULATOR_CAL | Buffered SAC Calculator | 20000720 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | BUKRS | Company Code of Buffered SAC Calculator | 20000720 | |||
| 3 | Static Attribute | Private | Type reference (TYPE) | RANL | Loan Number of Buffered SAC Calculator | 20000720 | |||
| 4 | Static Attribute | Private | Type reference (TYPE) | VVRANLW | ID Number of Buffered SAC Calculator | 20000720 | |||
| 5 | Instance attribute | Private | Type reference (TYPE) | BUKRS | Company Code | 20000720 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | I | Test Mode On/Off | 20000720 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | RANL | Loan Number | 20000720 | |||
| 8 | Instance attribute | Private | See coding | Loan Master Data | 20000720 | ||||
| 9 | Instance attribute | Private | Type reference (TYPE) | VVRANLW | ID number | 20000720 | |||
| 10 | Instance attribute | Private | See coding | Security Master Data | 20000720 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Corrects the SAC Value with the Accrued Interest Factor | 20000720 | |
| 2 | Instance method | Private | Method | Calculates the Effective Interest Rate | 20000720 | |
| 3 | Instance method | Private | Method | Gets Added Nominal Vale of all Transferred Flows | 20000720 | |
| 4 | Instance method | Private | Method | Calculates the SAC Present Value on the Key Date | 20000720 | |
| 5 | Instance method | Public | Method | Calculates the SAC Present Value for a Cash Flow | 20000720 | |
| 6 | Instance method | Private | Method | Calculates Accrued Interest for Interest Paid in Advance | 20000720 | |
| 7 | Instance method | Private | Method | Calculates Accrued Interest for Interest Paid in Arrears | 20000720 | |
| 8 | Instance method | Private | Method | Calculates the FIMA Cash Flow Again for a Loan | 20000720 | |
| 9 | Instance method | Private | Method | Calculates the FIMA Cash Flow Again for a Security | 20000720 | |
| 10 | Instance method | Private | Method | Checks if Interest is Paid in Advance or in Arrears | 20000720 | |
| 11 | Static method | Public | Method | Gets a SAC Calculator for a Loan or a Security | 20000720 | |
| 12 | Instance method | Public | Constructor | Constructor | 20000720 | |
| 13 | Instance method | Private | Method | Deletes Flows for Zero Position | 20000720 | |
| 14 | Instance method | Private | Method | Filters the Flows that Increase Nominal/Units | 20000720 | |
| 15 | Instance method | Private | Method | Gets Interest Calculation Method | 20000720 | |
| 16 | Instance method | Private | Method | Loads Master Data for Cash Flow Calculation for a Loan | 20000720 | |
| 17 | Instance method | Private | Method | Loads Master Data for Cash Flow Calculation for a Security | 20000720 | |
| 18 | Instance method | Private | Method | Calculates the FIMA Cash Flow Again | 20000720 |
Events
Class CL_OLD_SAC_CALCULATOR_CAL has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | G_TYP_LOAN_CONDITION | Private | See coding | 20000720 | begin of G_TYP_LOAN_CONDITION,
header type vzzkoko,
tab_positions type standard table of vvzzkopo
with non-unique default key,
end of g_typ_loan_condition
|
Method Signatures
Method ADJUST_BY_ACCRUED_INTEREST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CH_SAC_AMOUNT | Call by reference | Type reference (TYPE) | TPM_POSITION_AMT | Anzupassender SAC-Wert | 20000720 | |||
| 2 | IM_KEYDATE | Value transfer | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 3 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Bewegungen | 20000720 |
Method ADJUST_BY_ACCRUED_INTEREST on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method CALCULATE_EFFECTIVE_RATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_EFFECTIVE_RATE | Value transfer | Type reference (TYPE) | PEFFZINS | Effektivzins | 20000720 | |||
| 2 | IM_EFFECTIVE_RATE_METHOD | Value transfer | Type reference (TYPE) | SEFFMETH | Effektivzinsmethode | 20000720 | |||
| 3 | IM_KEYDATE | Value transfer | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 4 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Bewegungen für Effektivzinsberechnung | 20000720 |
Method CALCULATE_EFFECTIVE_RATE on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method CALCULATE_NOMINAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_NOMINAL_AMOUNT | Value transfer | Type reference (TYPE) | TPM_NOMINAL_AMT | Nominalwert | 20000720 | |||
| 2 | EX_NUMBER_OF_UNITS | Value transfer | Type reference (TYPE) | TPM_UNITS | Anzahl Stücke | 20000720 | |||
| 3 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Aufzuaddierende Bewegungen | 20000720 |
Method CALCULATE_NOMINAL on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method CALCULATE_PRESENT_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_SAC_AMOUNT | Value transfer | Type reference (TYPE) | TPM_POSITION_AMT | SAC-Barwert | 20000720 | |||
| 2 | IM_EFFECTIVE_RATE | Value transfer | Type reference (TYPE) | PEFFZINS | Effektivzins | 20000720 | |||
| 3 | IM_KEYDATE | Value transfer | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 4 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Cash Flow, für den Barwert berechnet werden soll | 20000720 |
Method CALCULATE_PRESENT_VALUE on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method CALCULATE_SAC_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_SAC_AMOUNT | Value transfer | Type reference (TYPE) | TPM_POSITION_AMT | SAC Betrag | 20000720 | |||
| 2 | EX_SAC_EFFECTIVE_RATE | Value transfer | Type reference (TYPE) | PEFFZINS | Effektivzins der SAC-Berechnung | 20000720 | |||
| 3 | IM_EFFECTIVE_RATE_METHOD | Value transfer | Type reference (TYPE) | SEFFMETH | Effektivzinsberechnungsmethode | 20000720 | |||
| 4 | IM_KEYDATE | Value transfer | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 5 | IM_TAB_BASIC_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Grundlegende Bewegungen | 20000720 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler in der Berechnung | 20000720 | ||
| 2 | Effektivzinsberechnungsemethode nicht gefüllt | 20000720 | ||
| 3 | Stichtag nicht gefüllt | 20000720 |
Method CALC_ACCRUED_INTEREST_BEGIN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_ACCRUED_INTEREST_AMT | Call by reference | Type reference (TYPE) | TPM_POSITION_AMT | Stückzinsbetrag | 20000720 | |||
| 2 | IM_KEYDATE | Call by reference | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 3 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Finanzstrom | 20000720 |
Method CALC_ACCRUED_INTEREST_BEGIN on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method CALC_ACCRUED_INTEREST_FOR_END Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_ACCRUED_INTEREST_AMT | Call by reference | Type reference (TYPE) | TPM_POSITION_AMT | Stückzinsbetrag | 20000720 | |||
| 2 | IM_KEYDATE | Call by reference | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 3 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Finanzstrom | 20000720 |
Method CALC_ACCRUED_INTEREST_FOR_END on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method CALC_CASH_FLOW_FOR_LOAN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Neu berechneter Cash Flow | 20000720 | |||
| 2 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Grundlage für neuen Cash Flow | 20000720 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler in der Finanzstromberechnung | 20000720 |
Method CALC_CASH_FLOW_FOR_SECURITY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Neuer Cash Flow | 20000720 | |||
| 2 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Tabelle mit Bewegungen zur Cash-Flow-Berechnung | 20000720 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler in der Finanzstromberechnung | 20000720 |
Method CHECK_INTEREST_PAYMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_FLG_AT_BEGIN_OF_PERIOD | Value transfer | Type reference (TYPE) | C | Flag: Vorschüssige Zinsen | 20000720 | |||
| 2 | IM_KEYDATE | Value transfer | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 3 | IM_TAB_FLOWS | Value transfer | Type reference (TYPE) | TRPM_IT_VZZBEPP | Bewegungen | 20000720 |
Method CHECK_INTEREST_PAYMENT on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method CLS_GET_SAC_CALCULATOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_SAC_CALCULATOR | Value transfer | Object reference (TYPE REF TO) | CL_OLD_SAC_CALCULATOR_CAL | Referenz auf SAC-Rechner | 20000720 | |||
| 2 | IM_COMPANY_CODE | Value transfer | Type reference (TYPE) | BUKRS | Buchungskreis | 20000720 | |||
| 3 | IM_LOANS_CONTRACT | Value transfer | Type reference (TYPE) | RANL | Darlehensnummer | 20000720 | |||
| 4 | IM_SECURITY_ID | Value transfer | Type reference (TYPE) | VVRANLW | Wertpapier | 20000720 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Weder Kennummer noch Darlehensnummer gefüllt | 20000720 |
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_COMPANY_CODE | Call by reference | Type reference (TYPE) | BUKRS | Buchungskreis | 20000720 | |||
| 2 | IM_LOANS_CONTRACT | Call by reference | Type reference (TYPE) | RANL | Darlehensvertrag | 20000720 | |||
| 3 | IM_SECURITY_ID | Call by reference | Type reference (TYPE) | VVRANLW | Wertpapier | 20000720 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Weder Kennummer noch Darlehensnummer gefüllt | 20000720 |
Method DELETE_FLOWS_FOR_ZERO_POSITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CH_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Tabelle mit Bewegungen | 20000720 |
Method DELETE_FLOWS_FOR_ZERO_POSITION on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method FILTER_INCREASE_FLOWS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_TAB_INCREASE_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Bestandserhöhende Bewegungen | 20000720 | |||
| 2 | IM_TAB_BASIC_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Grundlegende Bewegungen | 20000720 |
Method FILTER_INCREASE_FLOWS on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method GET_INTEREST_CALC_METHOD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_KEYDATE | Value transfer | Type reference (TYPE) | DATUM | Stichtag | 20000720 | |||
| 2 | RE_CALCULATION_METHOD | Value transfer | Type reference (TYPE) | SZBMETH | Zinsberechnungsmethode | 20000720 |
Method GET_INTEREST_CALC_METHOD on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method LOAD_MASTER_DATA_FOR_LOAN Signature
Method LOAD_MASTER_DATA_FOR_LOAN on class CL_OLD_SAC_CALCULATOR_CAL has no parameter.
Method LOAD_MASTER_DATA_FOR_LOAN on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method LOAD_MASTER_DATA_FOR_SEC Signature
Method LOAD_MASTER_DATA_FOR_SEC on class CL_OLD_SAC_CALCULATOR_CAL has no parameter.
Method LOAD_MASTER_DATA_FOR_SEC on class CL_OLD_SAC_CALCULATOR_CAL has no exception.
Method RECALCULATE_CASH_FLOW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Neuer Finanzstrom | 20000720 | |||
| 2 | IM_TAB_FLOWS | Call by reference | Type reference (TYPE) | TRPM_IT_VZZBEPP | Grundlage für Finanzstromberechnung | 20000720 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Fehler in der Finanzstromberechnung | 20000720 |
History
| Last changed by/on | SAP | 20050109 |
| SAP Release Created in | 462_10 |