DefaultCurrencyFields

Default Currency Fields

Minor Business Rule

Object Name: B0400001

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This function defaults the Currency Code either from the Address Book, or the Company.  It defaults 

the Currency Rate to Zero, if transaction Currency Code is the same as the Company Currency Code. It 

defaults the Currency Mode based on transaction Currency Code and Company Currency Code.  


Setup Notes and Prerequisites

Related Functions - Retrieve Company Currency Code - B0000128.


Special Logic

The defaults are only performed on an ADD.


Technical Specification


Data Structure

D0000287 - Default Currency Fields

Parameter NameData ItemData TypeReq/OptI/O/Both
szABCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szTranCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

mnCurrencyRateCRRMATH_NUMERICNONENONE

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

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.

cCurrencyModeCRRMcharNONENONE

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

Related Functions

B0000128 Retrieve Company Currency Code

Related Tables

None