Purpose
This function is used in the application P09210A - Trial Balance Ledger Comparison. Its primary use
is to track LOD account balances and either clear, initialize, load, load and accumulate, load and
retrieve or just retrieve the level of detail and the associated account information, or terminate cache
records. Associated information includes: Account Level of Detail(Cache Key), Account Number, Long
Account Number, Account Description, Company, Business Unit, Object Account, Subsidiary, Account
Posting Edit Code and Amounts by level of detail.
Technical Specification
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
LDAcAccountLevelOfDetailIReqPass in the
desired account
level of detail,
OR a blank for
the "clear cache"
mode or "terminate
cache" mode. Used
as the key to the
cache.
AIDszAccountIDI/O
ANIszLongAccountNumberI/O
DESCszAccountDescriptionI/O
COszCompanyI/O
MCUszBusinessUnitI/O
OBJszObjectAccountI/O
SUBszSubsidiaryI/O
PECcPostingEditCodeI/O
AAmnAmount01I/O
AAmnAmount02I/O
AAmnAmount03I/O
AAmnAmount04I/O
AAmnAmount05I/O
AAmnAmount06I/O
AAmnAmount07I/O
AAmnAmount08I/O
AAmnAmount09I/O
AAmnAmount10I/O
EV01cProcessingModeFlagIReq
DL010szLODCacheNameI/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 termi-
nation before
exiting the
program.
2.2Related Tables
Table Table Description
2.3Related Business Functions
Source NameFunction Name
2.4Processing
If cProcessingModeFlag is equal to 'C':
Then Load the cache with the specified level of detail information and amounts.
specified cache LOD and roll up amounts to all higher LOD buckets (highest = 1).
LOD without clearing it first. Roll up amounts to all higher LOD buckets.
clearing down to all lower LOD's (lowest = 9).
LOD's (lowest = 9).
Loading the cache:
Copy or add the record information and amounts passed in to LOD cache elements.
If any amount buckets are non-zero, roll up amounts to cache elements of a higher Account
Level Of Detail.
Retrieve from LOD cache:
of detail 9.
D0900159 - Trial Balance LOD Cache Totaling
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cAccountLevelOfDetail | LDA | char | REQ | INPUT |
Pass in the level of detail number. If calling the cache clear or cache termination functions, pass
| ||||
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. | ||||
szLongAccountNumber | ANI | char | OPT | NONE |
A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:
o Standard account
| ||||
szAccountDescription | DESC | char | OPT | NONE |
A description, remark, name, or address. | ||||
szCompany | CO | char | OPT | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szBusinessUnit | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szObjectAccount | OBJ | char | OPT | NONE |
The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into
| ||||
szSubsidiary | SUB | char | OPT | NONE |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
cPostingEditCode | PEC | char | OPT | NONE |
A code that controls G/L posting and account balance updates in the Account Master table (F0901). Valid values are:
Blank
Allows all
| ||||
mnAmount01 | 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
| ||||
mnAmount02 | 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
| ||||
mnAmount03 | 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
| ||||
mnAmount04 | 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
| ||||
mnAmount05 | 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
| ||||
mnAmount06 | 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
| ||||
mnAmount07 | 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
| ||||
mnAmount08 | 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
| ||||
mnAmount09 | 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
| ||||
mnAmount10 | 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
| ||||
cProcessingModeFlag | EV01 | char | REQ | INPUT |
Enter one of the following processing modes:
| ||||
szLODCacheName | DL010 | char | REQ | BOTH |
Choose a 50-character string variable. This variable should be NULL the first time it is passed into
|
None |
None |