CurrencyCodesSet

Currency Codes Set

Major Business Rule

Object Name: B0000113

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

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

Data Structure

D0000113 - Currency Codes Set

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyCOcharNONENONE

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.

szObjectOBJcharNONENONE

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.

szSubsidiarySUBcharNONENONE

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

szLedgerTypeLTcharNONENONE

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 
can set up multiple, concurrent accounting ledgers within the general ledger to establish an audit trail for all transactions.

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

szTransactionCurrencyCodeCRDCcharNONENONE

Special Input Expected
This is the transaction currency code as found in the F0911 record, GLCRCD field.




^

szCRCDCurrencyCodeCRCDcharNONENONE

Special Output Returned
This is the value that will be put in GBCRCD of the Account Balance record (F0902).


^

szCRCXCurrencyCodeCRCXcharNONENONE

Special Output Returned
This is the value that will be put in GBCRCX of the Account Balance record (F0902).


^

szAccountCurrencyCodeCCD0charNONENONE

Special Input Expected
This is the account currency code as found in F0901.  It is returned from XX0901.


^

Related Functions

B0000115 AAI Range Of Accounts +
B0000128 Retrieve Company Currency Code

Related Tables

F0025 Ledger Type Master File