Functional Description
Purpose
This function returns account balance information from the F0902 for up to four ledger types. For
each requested ledger type the following values will be returned:
Period Amount
Year to Date Amount
Balance Forward Amount (APYC)
Prior Year Net Amount(APYN)
Cumulative Amount (Year to Date + Balance Forward)
Setup Notes and Prerequisites
If passing a value in subledger other than blank or *, this function assumes the subledger has been
formatted prior to calling this function.
Special Logic
There are four possible scenerios for accumulating amounts by subledger and currency code. Case 1 is
a specific subledger and currency code have been requested. Case 2 is a specific subledger and all
currency codes have been requested. Case 3 is all subledgers and all currency codes have been requested.
Case 4 is all subledgers and a specific currency code have been requested.
The values in the subledger and currency fields determine how the account balances will be rolled
together. (An "*" will indicate all subledgers, and/or all currencies). A blank value in either field
will look for the F0902 with the key value of blank.
Technical Specification
D0900087 - Multi Ledger Account Balance Calculate
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
|---|---|---|---|---|
| szAccountId | AID | char | NONE | NONE |
A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. | ||||
| szCompany | CO | char | NONE | NONE |
Special Input Expected
| ||||
| szSubledger | SBL | char | NONE | NONE |
Special Input Expected
| ||||
| cSubledgerType | SBLT | char | NONE | 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
| ||||
| szCurrency | CRCD | char | NONE | NONE |
Special Input Expected
| ||||
| szLedgerType1 | LT | char | NONE | 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
| ||||
| mnPeriodNumber1 | PN | MATH_NUMERIC | NONE | NONE |
A number indicating the current accounting period. This number, used in conjunction with the Company Constants table (F0010) and the
| ||||
| mnFiscalYear1 | FY | MATH_NUMERIC | NONE | 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
| ||||
| mnCentury1 | CTRY | MATH_NUMERIC | NONE | 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
| ||||
| jdThruDate1 | DGJ | JDEDATE | NONE | NONE |
Special Input Expected
| ||||
| mnPeriodAmount1 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnYTDAmount1 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnCumulativeAmount1 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnBalanceForward1 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnPriorYearNet1 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| szLedgerType2 | LT | char | NONE | NONE |
| ||||
| mnPeriodNumber2 | PN | MATH_NUMERIC | NONE | NONE |
A number indicating the current accounting period. This number, used in conjunction with the Company Constants table (F0010) and the
| ||||
| mnFiscalYear2 | FY | MATH_NUMERIC | NONE | 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
| ||||
| mnCentury2 | CTRY | MATH_NUMERIC | NONE | 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
| ||||
| jdThruDate2 | DGJ | JDEDATE | NONE | NONE |
Special Input Expect
| ||||
| mnPeriodAmount2 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnYTDAmount2 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnCumulativeAmount2 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnBalanceForward2 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnPriorYearNet2 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| szLedgerType3 | LT | char | NONE | NONE |
| ||||
| mnPeriodNumber3 | PN | MATH_NUMERIC | NONE | NONE |
A number indicating the current accounting period. This number, used in conjunction with the Company Constants table (F0010) and the
| ||||
| mnFiscalYear3 | FY | MATH_NUMERIC | NONE | 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
| ||||
| mnCentury3 | CTRY | MATH_NUMERIC | NONE | 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
| ||||
| jdThruDate3 | DGJ | JDEDATE | NONE | NONE |
Special Input Expected
| ||||
| mnPeriodAmount3 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnYTDAmount3 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnCumulativeAmount3 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnBalanceForward3 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnPriorYearNet3 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| szLedgerType4 | LT | char | NONE | 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
| ||||
| mnPeriodNumber4 | PN | MATH_NUMERIC | NONE | NONE |
A number indicating the current accounting period. This number, used in conjunction with the Company Constants table (F0010) and the
| ||||
| mnFiscalYear4 | FY | MATH_NUMERIC | NONE | 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
| ||||
| mnCentury4 | CTRY | MATH_NUMERIC | NONE | 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
| ||||
| jdThruDate4 | DGJ | JDEDATE | NONE | NONE |
Special Input Expected
| ||||
| mnPeriodAmount4 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnYTDAmount4 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnCumulativeAmount4 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnBalanceForward4 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| mnPriorYearNet4 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
| B0900009 Retrieve Companys Begin Date | ||||
| X0903 Fiscal Date Edits + |
| F0902 Account Balances |