1.Functional Description
1.1Purpose
The purpose of this business function is to validate the currency of accounts company
and/or account currency based on the parameters which passed to it. This function also returns
the account currency and accounts companys currency. The function requires account ID, base
currency, and transaction currency.
1.2Setup Notes and Prerequisites
N/A
1.3Special Logic
N/A
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
AIDszAccountIdIYThe account to be validated
BCRCszBaseCurrencyCodeIYThe base currency code of
transaction
CRCDszTransactionCurrencyCodeIYThe transaction currency of
transaction
ITEMszItemNumberINThe AAI Item number that is
related to the above Account ID. This
is an optional field. The function uses
this field and the company number to
provide detail information about the
account in an error message.
COszCompanyINThe company that the above account
ID belongs to. This is an optional
field. The function uses this field and
the item number to provide detail
information about the account in an error
message.
CRCDszAccountCurrencyOThe currency code of account.
It contains valid value only when the
account is a monetary account.
CRCDszAccountCompanyCurrencyOThe currency code of account's
company
2.2Related Tables
N/A
2.3Related Business Functions
Source NameFunction Name
B0000037Retrieve Account Currency
2.4Processing
If currency processing is on,
error.
Retrieve account currency and accounts companys currency by calling function -
B0000037.
If the function call is successful,
If they are different, then set a specific error by using the passed in item
number and company in the error text substitution. Terminate the process with
error.
If account currency is not blank, compare the account currency code to the
passed in Transaction currency code. If they are different, then set a specific
error by using the passed in item number and company in the error text substitution.
Terminate the process with error.
Set error and terminate the process with error.
Terminate the process normally.
D03B0233 - Validate Account Currency
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szAccountId | AID | char | REQ | INPUT |
A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. | ||||
szBaseCurrencyCode | BCRC | char | REQ | INPUT |
A code that represents the currency of the company for a transaction. For a foreign currency transaction, this is the currency code of the
| ||||
szTransactionCurrencyCode | CRCD | char | OPT | INPUT |
A code that identifies the currency of a transaction. | ||||
szItemNumber | ITEM | char | OPT | INPUT |
A hard-coded field that defines an account or range of accounts used for a particular function. For example, item GLG4 defines the retained
| ||||
szCompany | CO | char | OPT | INPUT |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szAccountCurrency | CRCD | char | OPT | OUTPUT |
A code that identifies the currency of a transaction. | ||||
szAccountCompanyCurrency | CRCD | char | OPT | OUTPUT |
A code that identifies the currency of a transaction. |
None |
None |