ABAccountBalance

AB - Account Balance

Minor Business Rule

Object Name: B83000AB

Parent DLL: CAEC

Location: Client/Server

Language: C

Functional Description

Purpose

Calculate an account's balance. For Income Statement Accounts (GLG6 to GLG12) the balance forward 

(APYC) is not included. For Balance Sheet Accounts the balance forward is included. The signs of the 

balance can be adjusted using the reverse sign parameter. If a 'Y' is passed for BalanceAudit, records 

will be written to the balance audit work table (F83UI001). This function is called by the smart field 

Account Balance (FINRPTAB).

Setup Notes and Prerequisites

This function is designed to run on the event column inclusion in a tabular UBE.


Valid Values for ReverseSign are:

0 = Do not reverse any signs.

1 = Reverse signs for P&L accounts.

2 = Reverse signs for Balance Sheet accounts.


To fully implement Balance Audit, you must call the application P83001 from the section properties of 

a tabular UBE. If this step is not taken, the system values used as the key to the F83UI0001 will not 

be populated and the results of Balance Auditor will be unpredictable.


Special Logic

The balance is calculated as of the period and fiscal year entered in the processing options or from 

the Financial Reporting Date if the processing options are blank. This date is a baseline date that 

may be adjusted through the use of Period or Fiscal year offset. For example, with a period of 6 and a 

+1 in the period offset the account balance will be returned as of period 7. In period or fiscal year 

offset you may supply blank for the current period/fiscal year, a specific period or year, or an offset 

to the current period or year (+1).


This function does not filter records based upon anything other than fiscal year. To select data on a 

basis other than fiscal year, use column level data selection or report level data selection.


Technical Specification

• Call GetCompanyInfo.
• Determine target period number and fiscal year based upon the current values returned by 
GetCompanyInfo and the offsets to period number and fiscal year.

• If the fiscal year of the current record does not match the target fiscal year return a zero.
• If the fiscal year matches the target fiscal year accumulate the period amounts until the target 
period is reached.

• If reverse signs is not equal to zero, reverse the signs based upon AAI ranges.
• If balance audit is equal to yes, call UpdateBalanceAuditWorkfile.
• Return the account balance.


Data Structure

D83000AB - AB - Account Balance

Parameter NameData ItemData TypeReq/OptI/O/Both
mnReturnAmountAAMATH_NUMERICNONENONE

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. 

szLTPeriodNumberOffsetPNOFcharNONENONE

The period number on which you want to base this column. Do one of the following actions: leave the field blank to use the current period, 
enter a specific period number, such as 6, or enter a number that is an offset to the current period number, such as +1 or -1.

szLTFiscalYearOffsetFYOFcharNONENONE

The fiscal year on which you want to base this column. Do one of the following actions: leave the field blank to use the current period, enter 
the last two digits of a specific fiscal year, such as 98, or enter a number that is an offset to the current fiscal year, such as +1 or -1.

mnPOPeriodNumberPNMATH_NUMERICNONENONE

A number indicating the current accounting period.  This number, used in conjunction with the Company Constants table (F0010) and the 
General Constants table (F0009), allows the user to define up to 14 accounting periods. See General Ledger Date.  The current period number 
is used to determine posted before and posted after cut off warning messages.  It is also used as the default accounting period in the 
preparation of financial reports.

szBCCompanyCOcharNONENONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

mnBCFiscalYearFYMATH_NUMERICNONENONE

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 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. 
For example, a fiscal year begins October 1, 1998 and ends September 30, 1999. The end of the first period is October 31, 1998. Specify the 
year 98 rather than 99.

szBCObjectAccountOBJcharNONENONE

The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into 
subcategories. For example, you can divide the Cost Code for labor into regular time, premium time, and burden. Note: If you use a flexible chart of 
accounts and the object account is set to 6 digits, J.D. Edwards recommends that you use all 6 digits. For example, entering 000456 is not 
the same as entering 456 because if you enter 456 the system enters three blank spaces to fill a 6-digit object.

szBCSubsidiarySUBcharNONENONE

A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account.

mnBCPriorYearBucketAPYCMATH_NUMERICNONENONE

The cumulative prior year-end balance. The system uses this amount as the beginning balance for balance sheet and job cost 
accounts. NOTE: Do not confuse this amount with the prior year-end net posting amount. The prior year-end net posting amount includes only the 
postings from the prior year. It does not include the ending balance of the previous year. The prior year-end net postings are typically used for profit 
and loss statement comparisons.

mnBCAmountBucket01AN01MATH_NUMERICNONENONE

A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants table (F0010). The net amount posted is the total of all debits and credits, beginning with the first day of the period through the last 
day of the period.

mnBCAmountBucket02AN02MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010).  The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket03AN03MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket04AN04MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket05AN05MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket06AN06MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket07AN07MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket08AN08MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket09AN09MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket10AN10MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket11AN11MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket12AN12MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket13AN13MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnBCAmountBucket14AN14MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

szBCAccountIDAIDcharNONENONE

A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. 

szBCLedgerTypeLTcharNONENONE

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 
can set up multiple, concurrent accounting ledgers within the general ledger to establish an audit trail for all transactions.

szBCSubledgerSBLcharNONENONE

A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an 
address book number. If you enter a subledger, you must also specify the subledger type.

cBCSubledgerTypeSBLTcharNONENONE

A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger 
editing. On the User Defined Codes form, the second line of the description controls how the system performs editing. This is either hard-coded 
or user defined. Valid values include: A Alphanumeric field, do not edit   N Numeric field, right justify and zero fill   C Alphanumeric field, right 
justify and blank fill  

szBCCurrencyCodeFromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szBCCurrencyCodeDenomCRCXcharNONENONE

A code that indicates the currency in which an amount is denominated.

cSLBalanceAuditBAUDITcharNONENONE

Enter a Y to use the Balance Auditor. Default is not to use Balance Auditor.

szSLProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szSLVersionIDVRIDcharNONENONE

mnSLBalanceAuditSectionNumberBASECNMATH_NUMERICNONENONE

The ID number of a report section or batch process that caused the system to generate balance audit information.

mnSLBalanceAuditColumnNumberBACOLNMATH_NUMERICNONENONE

The column number from a report.

mnSLBalanceAuditRowNumberBAROWNMATH_NUMERICNONENONE

The row number from a report.

szPOFiscalYearFYOWcharNONENONE

A four-digit number that identifies the fiscal year. You can enter a number in this field or leave the field blank to indicate the current fiscal 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. For 
example, a fiscal year begins October 1, 2005, and ends September 30, 2006. The end of the first period is October 31, 2005. Specify the 
year 2005 rather than 2006.

mnReverseSignOWREVSMATH_NUMERICNONENONE

Use this processing option to reverse the sign of amounts printed on reports.  Valid values are:    0 = Do not reverse any signs.    1=  Reverse 
sign for Income Statement accounts (Revenues will print as positive and Expenses as negative).      2 = Reverse sign for Balance Sheet 
accounts (Assets, Liability and Equity will print as positive).        3 = Revenues will print as positive and Expenses will print as positive.

Related Functions

B0000034 Concatenate Object and Subsidiary
B83AUDIT Update Balance Audit Work File - (Financial Reporting)
B83GETCO Get Company Information - (Financial Reporting)

Related Tables

None