F1721BeginDocTotalsCache

F1721 Totals Cache MBF

Minor Business Rule

Object Name: B1702250

Parent DLL: CCRIN

Location: Client/Server

Language: C









Data Structure

D1702250A - F1721 BeginDoc - Totals Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobNumber_MATH01MATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

Related Functions

None

Related Tables

None
F1721EditLineTotalsCache

F1721EditLineTotalsCache

F1721 Totals Cache MBF

Minor Business Rule

Object Name: B1702250

Parent DLL: CCRIN

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this master business function is to calculate a total for each account processed by R17321, Amortization Workfile Generation and 

store the running totals in a cache.  Once all of the detail records have been processed, the total for each account is printed from the cache at the end of the 

report.  There are three functions within this master business function: F1721BeginDocTotalsCache, F1721EditLineTotalsCache, and 

F1721EndDocTotalsCache. F1721EditLineTotalsCache attempts to fetch the debit and credit account numbers from the cache.  If the fetch is successful, the amortization 

amount of the current line is added to the previous total in the cache.  If the fetch is not successful, a new record is added to the cache.  

F1721EndDocTotalsCache is called after all detail records have been processed.  This function reads the first record from the cache and returns the debit account 

number, credit account number, and total to be printed on the report.  After the record is read, it is deleted from the cache.  This function is called from within 

a loop, to cycle through all the records in the cache.  The flag IsCacheEmpty is set to Y when the last record has been read from the cache.


1.2Setup Notes and Prerequisites

F1721BeginDocTotalsCache is called from the report header, F1721EditLineTotalsCache is called from both the Contract Detail and Second Line of 

Detail sections, and F1721EndDocTotalsCache is called from a columnar section at the end of the report.


Data Structure

D1702250B - F1721 EditLine - Totals Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
szDebitAccount_ANIANIcharOPTNONE

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

szCreditAcount_ANIANIcharOPTNONE

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

mnAmortizationAmount_AAAAMATH_NUMERICOPTNONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

mnJobNumber_MATH01MATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

Related Functions

None

Related Tables

None
F1721EndDocTotalsCache

F1721EndDocTotalsCache

F1721 Totals Cache MBF

Minor Business Rule

Object Name: B1702250

Parent DLL: CCRIN

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this master business function is to calculate a total for each account processed by R17321, Amortization Workfile Generation and 

store the running totals in a cache.  Once all of the detail records have been processed, the total for each account is printed from the cache at the end of the 

report.  There are three functions within this master business function: F1721BeginDocTotalsCache, F1721EditLineTotalsCache, and 

F1721EndDocTotalsCache. F1721EditLineTotalsCache attempts to fetch the debit and credit account numbers from the cache.  If the fetch is successful, the amortization 

amount of the current line is added to the previous total in the cache.  If the fetch is not successful, a new record is added to the cache.  

F1721EndDocTotalsCache is called after all detail records have been processed.  This function reads the first record from the cache and returns the debit account 

number, credit account number, and total to be printed on the report.  After the record is read, it is deleted from the cache.  This function is called from within 

a loop, to cycle through all the records in the cache.  The flag IsCacheEmpty is set to Y when the last record has been read from the cache.


1.2Setup Notes and Prerequisites

F1721BeginDocTotalsCache is called from the report header, F1721EditLineTotalsCache is called from both the Contract Detail and Second Line of 

Detail sections, and F1721EndDocTotalsCache is called from a columnar section at the end of the report.


Data Structure

D1702250C - F1721 EndDoc - Totals Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
szDebitAccount_ANIANIcharOPTNONE

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

szCreditAccount_ANIANIcharOPTNONE

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

mnAccountTotal_AAAAMATH_NUMERICOPTNONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

clsCacheEmpty_EV01EV01charOPTNONE

An option that specifies the type of processing for an event.

mnJobNumber_MATH01MATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

Related Functions

None

Related Tables

None