ValidateAAI

Validate AAI

Minor Business Rule

Object Name: B0000046

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

This function will validate an AAI (optionally including a GL Offset) has been set up in the AAI file 
(F0012).  A parameter exists (cValidateSetupOnly) to only validate the AAI.  If this parameter is 

equal to '1', validation of the account will not be performed

Data Structure

D0000046 - Validate AAI

Parameter NameData ItemData TypeReq/OptI/O/Both
szItemcodeITEMcharNONENONE

A hard-coded field that defines an account or range of accounts used for a particular function. For example, item GLG4 defines the retained 
earnings account, which is used for annual close purposes. During processing, programs use the item number and company number to find 
the correct account to debit or credit. Along with company, the item (or range) is the key to the AAI table.

szGlclassGLCcharNONENONE

A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates 
the value that you enter to the AAI item RC (for Accounts Receivable) or PC (for Accounts Payable) to locate the trade account. For 
example, if you enter TRAD, the system searches for the AAI item RCTRAD (for receivables) or PCTRAD (for payables).  You can assign up to four 
alphanumeric characters to represent the G/L offset or you can assign the three-character currency code (if you enter transactions in a 
multicurrency environment). You must, however, set up the corresponding AAI item for the system to use; otherwise, the system ignores the G/L 
offset and uses the account that is set up for PC or RC for the company specified.  If you set up a default value in the G/L Offset field of the 
customer or supplier record, the system uses the value during transaction entry unless you override it.  Note: Do not use code 9999. It is reserved for 
the post program and indicates that offsets should not be created.

szCompanyCOcharNONENONE

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.

szCostcenterMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

cErrorFlagEV01charNONENONE

An option that specifies the type of processing for an event.

szAcCostCentreMCU0charNONENONE

An alphanumeric field that identifies a separate entity within a business for which you want to track costs. For example, a business unit might 
be a warehouse location, job, project, work center, branch, or plant.

szAcObjectOBJcharNONENONE

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.

szAcSubsidiarySUBcharNONENONE

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

szAccountIDAIDcharNONENONE

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

szAccountNumberANIcharNONENONE

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

cValidateSetUpOnlyEV02charNONENONE

An option that specifies the type of processing for an event.

szErrorMessageIDEKEYcharNONENONE

A 4-digit number assigned to all errors. When this number is used in the error message facility (F7 from any form), you may enter a specific 
error message number and press F13 to automatically exit to the revisions program referenced within the text of the error message. This 
function applies only to error messages that refer to items such as user defined codes.

Related Functions

XX0901 Validate Account Number

Related Tables

F0012 Automatic Accounting Instructions Master