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 TRPM 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 CLS_CALCULATOR Static Attribute Private Object reference (TYPE REF TO) CL_OLD_SAC_CALCULATOR_CAL Buffered SAC Calculator 20000720
2 CLS_COMPANY_CODE Static Attribute Private Type reference (TYPE) BUKRS Company Code of Buffered SAC Calculator 20000720
3 CLS_LOANS_CONTRACT Static Attribute Private Type reference (TYPE) RANL Loan Number of Buffered SAC Calculator 20000720
4 CLS_SECURITY_ID Static Attribute Private Type reference (TYPE) VVRANLW ID Number of Buffered SAC Calculator 20000720
5 COMPANY_CODE Instance attribute Private Type reference (TYPE) BUKRS Company Code 20000720
6 FLG_TEST_MODE Instance attribute Private Type reference (TYPE) I Test Mode On/Off 20000720
7 LOANS_CONTRACT Instance attribute Private Type reference (TYPE) RANL Loan Number 20000720
8 LOANS_MASTER_DATA Instance attribute Private See coding Loan Master Data 20000720
9 SECURITY_ID Instance attribute Private Type reference (TYPE) VVRANLW ID number 20000720
10 SEC_MASTER_DATA Instance attribute Private See coding Security Master Data 20000720
Methods
# Method Level Visibility Method type Description Created on
1 ADJUST_BY_ACCRUED_INTEREST Instance method Private Method Corrects the SAC Value with the Accrued Interest Factor 20000720
2 CALCULATE_EFFECTIVE_RATE Instance method Private Method Calculates the Effective Interest Rate 20000720
3 CALCULATE_NOMINAL Instance method Private Method Gets Added Nominal Vale of all Transferred Flows 20000720
4 CALCULATE_PRESENT_VALUE Instance method Private Method Calculates the SAC Present Value on the Key Date 20000720
5 CALCULATE_SAC_VALUE Instance method Public Method Calculates the SAC Present Value for a Cash Flow 20000720
6 CALC_ACCRUED_INTEREST_BEGIN Instance method Private Method Calculates Accrued Interest for Interest Paid in Advance 20000720
7 CALC_ACCRUED_INTEREST_FOR_END Instance method Private Method Calculates Accrued Interest for Interest Paid in Arrears 20000720
8 CALC_CASH_FLOW_FOR_LOAN Instance method Private Method Calculates the FIMA Cash Flow Again for a Loan 20000720
9 CALC_CASH_FLOW_FOR_SECURITY Instance method Private Method Calculates the FIMA Cash Flow Again for a Security 20000720
10 CHECK_INTEREST_PAYMENT Instance method Private Method Checks if Interest is Paid in Advance or in Arrears 20000720
11 CLS_GET_SAC_CALCULATOR Static method Public Method Gets a SAC Calculator for a Loan or a Security 20000720
12 CONSTRUCTOR Instance method Public Constructor Constructor 20000720
13 DELETE_FLOWS_FOR_ZERO_POSITION Instance method Private Method Deletes Flows for Zero Position 20000720
14 FILTER_INCREASE_FLOWS Instance method Private Method Filters the Flows that Increase Nominal/Units 20000720
15 GET_INTEREST_CALC_METHOD Instance method Private Method Gets Interest Calculation Method 20000720
16 LOAD_MASTER_DATA_FOR_LOAN Instance method Private Method Loads Master Data for Cash Flow Calculation for a Loan 20000720
17 LOAD_MASTER_DATA_FOR_SEC Instance method Private Method Loads Master Data for Cash Flow Calculation for a Security 20000720
18 RECALCULATE_CASH_FLOW 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 Changing CH_SAC_AMOUNT Call by reference Type reference (TYPE) TPM_POSITION_AMT Anzupassender SAC-Wert 20000720
2 Importing IM_KEYDATE Value transfer Type reference (TYPE) DATUM Stichtag 20000720
3 Importing 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 Exporting EX_EFFECTIVE_RATE Value transfer Type reference (TYPE) PEFFZINS Effektivzins 20000720
2 Importing IM_EFFECTIVE_RATE_METHOD Value transfer Type reference (TYPE) SEFFMETH Effektivzinsmethode 20000720
3 Importing IM_KEYDATE Value transfer Type reference (TYPE) DATUM Stichtag 20000720
4 Importing 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 Exporting EX_NOMINAL_AMOUNT Value transfer Type reference (TYPE) TPM_NOMINAL_AMT Nominalwert 20000720
2 Exporting EX_NUMBER_OF_UNITS Value transfer Type reference (TYPE) TPM_UNITS Anzahl Stücke 20000720
3 Importing 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 Exporting EX_SAC_AMOUNT Value transfer Type reference (TYPE) TPM_POSITION_AMT SAC-Barwert 20000720
2 Importing IM_EFFECTIVE_RATE Value transfer Type reference (TYPE) PEFFZINS Effektivzins 20000720
3 Importing IM_KEYDATE Value transfer Type reference (TYPE) DATUM Stichtag 20000720
4 Importing 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 Exporting EX_SAC_AMOUNT Value transfer Type reference (TYPE) TPM_POSITION_AMT SAC Betrag 20000720
2 Exporting EX_SAC_EFFECTIVE_RATE Value transfer Type reference (TYPE) PEFFZINS Effektivzins der SAC-Berechnung 20000720
3 Importing IM_EFFECTIVE_RATE_METHOD Value transfer Type reference (TYPE) SEFFMETH Effektivzinsberechnungsmethode 20000720
4 Importing IM_KEYDATE Value transfer Type reference (TYPE) DATUM Stichtag 20000720
5 Importing IM_TAB_BASIC_FLOWS Call by reference Type reference (TYPE) TRPM_IT_VZZBEPP Grundlegende Bewegungen 20000720
# Exception Resumable Description Created on
1 CALCULATION_FAILED Fehler in der Berechnung 20000720
2 EFF_RATE_METHOD_NOT_QUALIFIED Effektivzinsberechnungsemethode nicht gefüllt 20000720
3 KEYDATE_NOT_QUALIFIED 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 Exporting EX_ACCRUED_INTEREST_AMT Call by reference Type reference (TYPE) TPM_POSITION_AMT Stückzinsbetrag 20000720
2 Importing IM_KEYDATE Call by reference Type reference (TYPE) DATUM Stichtag 20000720
3 Importing 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 Exporting EX_ACCRUED_INTEREST_AMT Call by reference Type reference (TYPE) TPM_POSITION_AMT Stückzinsbetrag 20000720
2 Importing IM_KEYDATE Call by reference Type reference (TYPE) DATUM Stichtag 20000720
3 Importing 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 Exporting EX_TAB_FLOWS Call by reference Type reference (TYPE) TRPM_IT_VZZBEPP Neu berechneter Cash Flow 20000720
2 Importing 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 CALCULATION_FAILED 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 Exporting EX_TAB_FLOWS Call by reference Type reference (TYPE) TRPM_IT_VZZBEPP Neuer Cash Flow 20000720
2 Importing 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 CALCULATION_FAILED 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 Exporting EX_FLG_AT_BEGIN_OF_PERIOD Value transfer Type reference (TYPE) C Flag: Vorschüssige Zinsen 20000720
2 Importing IM_KEYDATE Value transfer Type reference (TYPE) DATUM Stichtag 20000720
3 Importing 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 Exporting EX_SAC_CALCULATOR Value transfer Object reference (TYPE REF TO) CL_OLD_SAC_CALCULATOR_CAL Referenz auf SAC-Rechner 20000720
2 Importing IM_COMPANY_CODE Value transfer Type reference (TYPE) BUKRS Buchungskreis 20000720
3 Importing IM_LOANS_CONTRACT Value transfer Type reference (TYPE) RANL Darlehensnummer 20000720
4 Importing IM_SECURITY_ID Value transfer Type reference (TYPE) VVRANLW Wertpapier 20000720
# Exception Resumable Description Created on
1 INPUT_DATA_NOT_QUALIFIED 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 Importing IM_COMPANY_CODE Call by reference Type reference (TYPE) BUKRS Buchungskreis 20000720
2 Importing IM_LOANS_CONTRACT Call by reference Type reference (TYPE) RANL Darlehensvertrag 20000720
3 Importing IM_SECURITY_ID Call by reference Type reference (TYPE) VVRANLW Wertpapier 20000720
# Exception Resumable Description Created on
1 INPUT_DATA_NOT_QUALIFIED 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 Changing 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 Exporting EX_TAB_INCREASE_FLOWS Call by reference Type reference (TYPE) TRPM_IT_VZZBEPP Bestandserhöhende Bewegungen 20000720
2 Importing 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 Importing IM_KEYDATE Value transfer Type reference (TYPE) DATUM Stichtag 20000720
2 Returning 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 Exporting EX_TAB_FLOWS Call by reference Type reference (TYPE) TRPM_IT_VZZBEPP Neuer Finanzstrom 20000720
2 Importing IM_TAB_FLOWS Call by reference Type reference (TYPE) TRPM_IT_VZZBEPP Grundlage für Finanzstromberechnung 20000720
# Exception Resumable Description Created on
1 CALCULATION_FAILED Fehler in der Finanzstromberechnung 20000720
History
Last changed by/on SAP  20050109 
SAP Release Created in 462_10