Functional Description
Purpose
This function is used in the program R099102 - Repost Account Ledger. Its primary use is to
accumulate F0902 account balances (from posted F0911 transactions) in a cache table for amount ledgers and
corresponding unit ledgers, and either clear or load account information, or terminate cache records.
Associated information includes [Account ID, Century, Fiscal Year, Fiscal Quarter, Ledger Type,
Subledger Type, Subledger, CRCD, CRCX, and Period Amounts 1-14]. After the cache has been loaded with the
account information, use the internal function (within this same business function)
"I0900158_RetrieveRecordFromCache" to retrieve the account records sequentially.
Technical Specification
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
AIDszAccountIDI Pass in the
desired account
ID of record to
load, OR a
blank for the
"clear cache"
mode or termi-
nate cache" mode.
CTRYmnCenturyI/O
FYmnFiscalYearI/O
FQszFiscalQtrI/O
LTszLedgerTypeI/O
ULTszUnitsLedgerTypeI/O
SBLszSubledgerI/O
SBLTcSubledgerTypeI/O
CRCDszCurrencyCodeFromI/O
CRCXszCurrencyCodeDenomI/O
PNmnPeriodNumberI/O
AAmnAmountI/O
UmnUnitsAmountI/O
DL010szCacheNameI/OReqA 50-character
string variable
should be null
when passed in
the first time.
The actual cache
name will be returned on the
initial call.
This same cache
name should then
be reused upon
subsequent calls
until termination
before exiting
the program.
EV01cProcessingModeIReq
2.2Related Tables
Table Table Description
2.3Related Business Functions
Source NameFunction Name
2.4Processing
If cProcessingModeFlag is equal to 'C':
Copy amounts from the BSFN data structure to the specified cache table, accumulating amounts for each
ledger type/subledger/crcd.
Clearing the cache:
amount ledger and corresponding units ledger'85 called from F0911 AID/CTRY/FQ/LT level break footer).
Loading the cache.
Retrieve the period number passed in and copy or add the amount passed in to the corresponding
bucket amount.
to the corresponding cache elements.
If the unit amount passed in is non-zero, repeat the above steps for the units ledger.
Terminating the cache:
D0900158 - Cache Process Repost Account Ledger
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szAccountID | AID | char | OPT | NONE |
A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. | ||||
mnCentury | CTRY | MATH_NUMERIC | OPT | NONE |
The calendar century associated with the year. Enter is the first two digits of
the year. For example, 19 indicates any year beginning with 19
| ||||
mnFiscalYear | FY | MATH_NUMERIC | OPT | NONE |
A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal
| ||||
szFiscalQtr | FQ | char | OPT | NONE |
A data field reserved for future use. | ||||
szLedgerType | LT | char | OPT | NONE |
A user defined code (09/LT) that specifies the type of ledger, such as AA (Actual Amounts), BA (Budget Amount), or AU (Actual Units). You
| ||||
szUnitsLedgerType | ULT | char | OPT | NONE |
The units ledger is relational to the amount ledger. The first character in both ledgers is the same. The second character in the units ledger
| ||||
szSubledger | SBL | char | OPT | NONE |
A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an
| ||||
cSubledgerType | SBLT | char | OPT | NONE |
A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger
| ||||
szCurrencyCodeFrom | CRCD | char | OPT | NONE |
A code that identifies the currency of a transaction. | ||||
szCurrencyCodeDenom | CRCX | char | OPT | NONE |
A code that indicates the currency in which an amount is denominated. | ||||
mnPeriodNumber | PN | MATH_NUMERIC | OPT | NONE |
A number indicating the current accounting period. This number, used in conjunction with the Company Constants table (F0010) and the
| ||||
mnAmount | AA | MATH_NUMERIC | OPT | NONE |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
mnUnitsAmount | U | MATH_NUMERIC | OPT | NONE |
The quantity of something that is identified by a unit of measure. For example, it can be the number of barrels, boxes, cubic yards, gallons,
| ||||
szCacheName | DL010 | char | REQ | BOTH |
A general description. | ||||
cProcessingMode | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. |
None |
None |