Functional Description
Purpose
The purpose of this business function is to return the correct values to update the Account Balances
file (F0902) Currency Code (CRCD) and Denominated Currency Code (CRCX) fields when posting or
reposting the Transaction Ledger (F0911).
Setup Notes and Prerequisites
Special Logic
Technical Specification
Initialize the return fields (CRCD - Currency Code and CRCX - Denominated Currency Code) to blank,
as well as (BOOL) bPostByCurrencyFlag to FALSE.
Determine if the ledger is AA or CA. If it is, check to see if this is a monetary account (Account
Master - F0901 currency code is not blank when the account is monetary). If this is a monetary
account, set bPostByCurrencyFlag to TRUE.
If not a monetary account but is the AA or CA ledger, then check company record to see if this
company post by currency code. If the company does post by currency code, check the account
object/subsidiary to see if it falls within one of the AAI ranges of account object/subsidiary for Post By Currency
Code (PBC01 - PBC99, by company or default company 00000). If it does, set bPostByCurrencyFlag to
TRUE.
Move the company currency code into the return parm CRCX. Check if the ledger type has an override
currency code in the Ledger Type Master (F0025). If it does, move it to the return parm CRCX.
If bPostByCurrencyFlag is TRUE, move the transaction currency code into the return parm CRCD. Note
that if this were a monetary account, the transaction currency code and the account currency code
would be the same (edit done at entry time).
If bPostByCurrencyFlag is TRUE and the ledger type is CA, move the transaction currency code into
the return parm CRCX.
'b7'b7
D0000113 - Currency Codes Set
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCompany | CO | char | NONE | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szObject | OBJ | char | NONE | NONE |
The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into
| ||||
szSubsidiary | SUB | char | NONE | NONE |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
szLedgerType | LT | char | NONE | NONE |
A user defined code (09/LT) that specifies the type of ledger, such as AA (Actual Amounts), BA (Budget Amount), or AU (Actual Units). You
| ||||
szDocumentType | DCT | char | NONE | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szTransactionCurrencyCode | CRDC | char | NONE | NONE |
Special Input Expected
| ||||
szCRCDCurrencyCode | CRCD | char | NONE | NONE |
Special Output Returned
| ||||
szCRCXCurrencyCode | CRCX | char | NONE | NONE |
Special Output Returned
| ||||
szAccountCurrencyCode | CCD0 | char | NONE | NONE |
Special Input Expected
|
B0000115 AAI Range Of Accounts + | ||||
B0000128 Retrieve Company Currency Code |
F0025 Ledger Type Master File |