GetDistrAAIandValidateAccount

Get Distribution AAI and Validate Account - Brazil - 43

Minor Business Rule

Object Name: B7601080

Parent DLL: CLOC

Location: Client/Server

Language: C

Business Function Specification

Source NameB7601080DesignerMiriam Kato
Data Structure 
D7601080ProgrammerMiriam Kato
Function Name
 Get Distribution AAI and Validate AccountSystem Code76
Function CategoryAcct
Function UseGET

Revisions Log 
DateProgrammerSAR NumberDescription
06/03/98Miriam Kato1844117Created



1.Functional Description

1.1Purpose
This Business Function gets the account from the Distribution AAI table (B4000350) and validates it with Validate Account Number (X0901) routine. 

1.2Setup Notes and Prerequisites

This business function serves two purposes; the first is to get the accounts for Distribution AAI tables 4385 and 4390 for a Company, Document Type, 
Business Unit and GL Class code; the accounts are validated with the Chart of Accounts server XX0901. If there is a validation error, it status returned is 1; 

it also validates the Account Ids for credit and debit and returns all accounting information for both: business unit, object account, subsidiary and 

account id.


1.3Special Logic

See 2.4  Processing.

Technical Specifications

2.1 Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
COszCompanyIYCompany 

PDCTszPurchDocumentTypeIYPO Document Type

GLCszGLClassCodeIYNew GL Class Code (Code+GLC)

MCUszBusinessUnitIYBusiness Unit

STScReturnErrorOYif 1, no error; 0, error

ANIszAcctNoDebitONAUsed for F0911 Server B7602020 for Debit Account (AAI Table 4385)

OBJszObjectAccountDebitONA"

SUBszSubsidiaryDebitONA"

MCUszBusinessUnitDebitONA"

ANIszAcctNoCreditONAUsed for F0911 Server B7602020 for Credit Account (AAI Table 4390)

OBJszObjectAccountCreditONA

SUBszSubsidiaryCreditONA

MCUszBusinessUnitCreditONA

AIDszAccountIdDebitONAUsed for F0911 Server B7602020 for Debit Account (AAI Table 4385)

AIDszAccountIdCreditONAUsed for F0911 Server B7602020 for Credit Account (AAI Table 4390)



2.2Related Tables 

None.


2.3Related Business Functions

Source NameFunction Name
B7600350Retrieve Distribution AAI

XX0901Validate Account



2.4Processing 

Get MCU, OBJ, SUB from Distribution AAI table 4385 (Debits)
Call XX0901 to validate MCU, OBJ and SUB.

If Account ID is zero

Call XX0901 to get AID

If  ok, return AID

Else, return blank

Endif


Get MCU, OBJ, SUB from Distribution AAI table 4390 (Credits)

Call XX0901 to validate MCU, OBJ and SUB.

If Account ID is zero

Call XX0901 to get AID

If  ok, return AID

Else, return blank

Endif




^

Data Structure

D7601080 - Get Distribution AAI and Validate Account - Brazil    - 42

Data Item Data Structure      I/ORequiredNotes
COszCompany      IYCompany 

PDCTszPurchDocumentTypeIYPO Document Type

GLCszGLClassCode                IYNew GL Class Code (Code+GLC)

MCUszBusinessUnitIYBusiness Unit

STScReturnError       OYif 1, no error; 0, error

ANIszAcctNoDebit       ONAUsed for F0911 Server B7602020 for Debit Account (AAI Table 4385)

OBJszObjectAccountDebitONA"

SUBszSubsidiaryDebitONA"

MCUszBusinessUnitDebitONA"

ANIszAcctNoCredit       ONAUsed for F0911 Server B7602020 for Credit Account (AAI Table 4390)

OBJszObjectAccountCreditONA

SUBszSubsidiaryCreditONA

MCUszBusinessUnitCreditONA


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyCOcharOPTNONE

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.

szDocumentTypePurchasePDCTcharOPTNONE

A value that is hard-coded in the originating programs and passed to the Accounts Payable system. In Accounts Receivable, the document 
type on the purchase order issued by the customer can be entered directly into the Accounts Receivable Ledger (F03B11)

szCostCenterMCUcharOPTNONE

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.

cErrorCodeERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szAcctNoDebitANIcharOPTNONE

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. 

szObjectAccountDebitOBJcharOPTNONE

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.

szSubsidiaryDebitSUBcharOPTNONE

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

szCostCenterDebitMCUcharOPTNONE

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.

szAcctNoCreditANIcharOPTNONE

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. 

szObjectAccountCreditOBJcharOPTNONE

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.

szSubsidiaryCreditSUBcharOPTNONE

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

szCostCenterCreditMCUcharOPTNONE

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.

szAccountIdDebitAIDcharOPTNONE

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

szAccountIdCreditAIDcharOPTNONE

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

mnAaiTableNumberANUMMATH_NUMERICOPTNONE

A number used to specify sequence and retrieve accounting information.

szErrorReasonVL01charOPTNONE

The list of selection values associated with a data selection item in the Dream Writer. This list is generated by the use of the *VALUES 
keyword in data selection setup. Elements 1 and 2 are also used to contain the upper and lower value for the keyword *RANGE used by the 
data selection in the Dream Writer.

szGlClassDebitGLCcharOPTNONE

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.

szGlClassAA10charOPTNONE

This item is used scrub Specification Data fields that are 10 character alpha fields.

Related Functions

None

Related Tables

None