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.
2 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
^
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 Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCompany | CO | char | OPT | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szDocumentTypePurchase | PDCT | char | OPT | NONE |
A value that is hard-coded in the originating programs and passed to the Accounts Payable system.
In Accounts Receivable, the document
| ||||
szCostCenter | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
cErrorCode | ERRC | char | OPT | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
szAcctNoDebit | ANI | char | OPT | NONE |
A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:
o Standard account
| ||||
szObjectAccountDebit | OBJ | char | OPT | NONE |
The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into
| ||||
szSubsidiaryDebit | SUB | char | OPT | NONE |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
szCostCenterDebit | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szAcctNoCredit | ANI | char | OPT | NONE |
A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:
o Standard account
| ||||
szObjectAccountCredit | OBJ | char | OPT | NONE |
The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into
| ||||
szSubsidiaryCredit | SUB | char | OPT | NONE |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
szCostCenterCredit | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szAccountIdDebit | AID | char | OPT | NONE |
A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. | ||||
szAccountIdCredit | AID | char | OPT | NONE |
A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. | ||||
mnAaiTableNumber | ANUM | MATH_NUMERIC | OPT | NONE |
A number used to specify sequence and retrieve accounting information. | ||||
szErrorReason | VL01 | char | OPT | NONE |
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
| ||||
szGlClassDebit | GLC | char | OPT | NONE |
A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates
| ||||
szGlClass | AA10 | char | OPT | NONE |
This item is used scrub Specification Data fields that are 10 character alpha fields. |
None |
None |