Functional Description
Purpose
This function is used to calculate an account's balance for the Online Consolidations application.
Setup Notes and Prerequisites
Special Logic
This function can act either of two ways:
1. Can calculate the account balance for one specific account (Most common use).
To accomplish this pass a "Y" in the cBusinessUnitDetail parameter.
2. Can calculate the account balance for one specific account AND all other accounts that are
underneath this account in Level of Detail across multiple business units. (Used in LOD Online
Consolidations).
To accomplish this pass the requested roll up LOD in the cRequestedLevelOfDetail parameter, and the
Account's actual LOD in the cAccountLevelOfDetail and an "N" in the cBusinessUnitDetail parameter.
Please refer to the Data Structure Attachments for detailed instructions on parameter requirements
and functionality.
Technical Specification
Main BSFN:
Determine Rollup Method
Set F0902 Table Info
Open Account Balances Table (F0902)
If cBusinessUnitDetail = "Y"
If cPostingEditCode != "N"
Call Account Balance Calculate
Else
Fetch record from F092181 based on cAccountID
If cPostingEditCode != "N"
Call Account Balance Calculate
Fetch next record from F092181
While Fetches from F092181 are valid AND Fetched LOD > cAccountLevelOfDetail
If Previous PEC = BLANK AND Previous LOD != cAccountLevelOfDetail
Stop Processing
If Fetched PEC != "N"
Call Account Balance Calculate
Fetch next record from F092181
Account Balance Calculate:
This logic is run for each Ledger Type individually. All date information is relative to which
Ledger Type is being processed. i.e. szLedgerType2 uses jdThruDate2, mnFiscalYear2, etc...
Partially set the key to the Account Balances Table (F0902), based on rollup method.
If szLedgerType != BLANK
method, and calculate that ledger's account balance
F0902 Balance Calculate:
This function will calculate the balance for the specified LT.
While F0902 Fetches are valid
Fetch record from F0902
If Fetch is valid
Add ANxx to Accumulated Period Balance
Add APYN to Accumulated Prior Year Net Posting Amount
If cAddBalanceForwardToYTDAmount = "Y"
Add APYC to the Accumulated YTD Balance
D0900101 - Online Consolidations Calculate Balances
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cFCLevelOfDetail | LDA | char | NONE | NONE |
Special Input Expected
| ||||
szFCSubledger | SBL | char | NONE | NONE |
Special Input Expected
| ||||
cFCSubledgerType | SBLT | char | NONE | NONE |
Special Input Expected
| ||||
szFCCurrencyCode | CRCD | char | NONE | NONE |
Special Input Expected
| ||||
szFCLedgerType1 | LT | char | NONE | NONE |
Special Input Expected
| ||||
szFCLedgerType2 | LT | char | NONE | NONE |
Special Input Expected
| ||||
szFCLedgerType3 | LT | char | NONE | NONE |
Special Input Expected
| ||||
szFCLedgerType4 | LT | char | NONE | NONE |
Special Input Expected
| ||||
mnBCNextNumber | N001 | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
szBCObjectAccount | OBJ | char | NONE | NONE |
Special Input Expected
| ||||
szBCSubsidiary | SUB | char | NONE | NONE |
Special Input Expected
| ||||
cBCPostingEditCode | PEC | char | NONE | NONE |
Special Input Expected
| ||||
cBCLevelOfDetail | LDA | char | NONE | NONE |
Special Input Expected
| ||||
szBCAccountID | AID | char | NONE | NONE |
Special Input Expected
| ||||
cVarianceCalculationMethod | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
cAddBalanceForwardToYTDAmount | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
mnPeriodNumber1 | PN | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPeriodNumber2 | PN | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPeriodNumber3 | PN | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPeriodNumber4 | PN | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnFiscalYear1 | FY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnFiscalYear2 | FY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnFiscalYear3 | FY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnFiscalYear4 | FY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnCentury1 | CTRY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnCentury2 | CTRY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnCentury3 | CTRY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnCentury4 | CTRY | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPeriodAmount1 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPeriodAmount2 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPeriodAmount3 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPeriodAmount4 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnYTDAmount1 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnYTDAmount2 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnYTDAmount3 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnYTDAmount4 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnBalanceForwardAmount1 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnBalanceForwardAmount2 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnBalanceForwardAmount3 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnBalanceForwardAmount4 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPriorYearNetPostingAmount1 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPriorYearNetPostingAmount2 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPriorYearNetPostingAmount3 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnPriorYearNetPostingAmount4 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnVarianceAmount1 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnVarianceAmount2 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnVarianceAmount3 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnVarianceAmount4 | AA | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
cBusinessUnitDetail | EV01 | char | NONE | NONE |
Special Input Expected
|
None |
F0902 Account Balances | ||||
F092181 Online Consolidation Detail File |