EditAltCurrAPAAIs

F0012 Edit Alternate Currency AP AAIs

Minor Business Rule

Object Name: N0400500

Parent DLL: CFIN

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
The purpose of this business function is to edit the A/P AAIs P7, PY and PZ for the alternate currency gain/loss and offset.

Error 085H is received if (1) there's no AAI P7set up for your bank account's company, (2) the account specified by P7 for your bank account's company 

does not exist in F0901, or (3) the account specified by P7 for your bank account's company is a monetary account (i.e, F0901 currency code is not blank).  

Note that there is no default Company 00000 logic here.  Also, if the base company of the account specified by P7 for your bank account's company is not 

equal to your bank account's company, error 085I is received.  


So, if your bank account is in Company 00001 (USD), you have to set up an AAI item P7, company 00001, pointing to a valid nonmonetary account 

belonging to a USD company.


When editing AAI's PY and PZ, error 087C is received if either PY or PZ has not been set up in F0012.  It looks for PY/PZ in the following order.... 

• payment currency code and bank account's company (e.g., AAI item PYEUR, company 00001)
• voucher's g/l class and bank account's company (e.g., AAI item PY4110, company 00001)
• blank and bank account's company (e.g., AAI item PY, company 00001)
• payment currency code and default company (e.g., AAI item PYEUR, company 00000)
• voucher's g/l class and default company (e.g., AAI item PY4110, company 00000)
• blank and default company (e.g., AAI item PY, company 00000)

Error 087B is received if the account specified by PY or PZ is not set up in F0901.


Error 087D is received (1) if the account specified by PY or PZ is a monetary account or (2) if the base company of the account specified by PY or PZ is 

not equal to your bank account's company.



1.2Setup Notes and Prerequisites


1.3Special Logic



^

Data Structure

D0400500 - F0012 Edit Alternate Currency AP AAIs

Parameter NameData ItemData TypeReq/OptI/O/Both
szAAI_To_EditITEMcharOPTNONE

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.

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.

szGlClassGLCcharOPTNONE

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.

szCurrencyCodeCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

szVoucherBaseCurrencyCodeCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

szErrorDataItemDTAIcharOPTNONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

None