DecimalTriggerGetByLT_CRDC_CRCD

Decimal Trigger Get By LT CRDC CRCD

Major Business Rule

Object Name: B1100014

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of this business function is to get the  currency decimals and update the MATH_NUMERIC 

structure for all Math Numerics provided.  This is used mainly at the data base trigger level where it 

is run automatically when currency processing is on.


Setup Notes and Prerequisites


Special Logic




Technical Specification

Use ledger type to run the JDB API JDB_RetrieveF0025RowUsingLedgerType to retrieve the currency code 

from the ledger type record cached.


If the ledger type currency code is not blank, use this currency code to run the JDB API 

JDB_RetrieveF0013RowUsingCurrencyCode to retrieve the decimals for the currency from the cache. Run the API's 

jdeMathSetDecimals and jdeMathSetCurrCode to set the currency decimals and currency code for each of the 

15 DOMESTIC and 15 FOREIGN Math Numeric amounts in the data structure.


If the ledger type currency code is blank and the ledger type is not 'CA', use the base currency code 

to run the JDB API JDB_RetrieveF0013RowUsingCurrencyCode to retrieve the decimals for the currency 

from the cache.  Run the API's jdeMathSetDecimals and jdeMathSetCurrCode to set the currency decimals 

and currency code for each of the 15 DOMESTIC Math Numeric amounts in the data structure.


If the ledger type currency code is blank and the ledger type is not 'CA', use the transaction 

currency code to run the JDB API JDB_RetrieveF0013RowUsingCurrencyCode to retrieve the decimals for the 

currency from the cache.  Run the API's jdeMathSetDecimals and jdeMathSetCurrCode to set the currency 

decimals and currency code for each of the 15 FOREIGN Math Numeric amounts in the data structure.


If the ledger type is 'CA', use the transaction currency code to run the JDB API 

JDB_RetrieveF0013RowUsingCurrencyCode to retrieve the decimals for the currency from the cache.  Run the API's 

jdeMathSetDecimals and jdeMathSetCurrCode to set the currency decimals and currency code for each of the 15 

DOMESTIC and FOREIGN Math Numeric amounts in the data structure.



Data Structure

D1100014 - Decimal Trigger Get By LT CRDC CRCD

Parameter NameData ItemData TypeReq/OptI/O/Both
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.

szBaseCurrencyCodeCRDCcharNONENONE

A code that identifies the domestic (base) currency of the company on a transaction. 

szTransactionCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

mnDomesticAmount01AN01MATH_NUMERICNONENONE

A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants table (F0010). The net amount posted is the total of all debits and credits, beginning with the first day of the period through the last 
day of the period.

mnDomesticAmount02AN02MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010).  The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount03AN03MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount04AN04MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount05AN05MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount06AN06MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount07AN07MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount08AN08MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount09AN09MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount10AN10MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount11AN11MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount12AN12MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount13AN13MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount14AN14MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount15AN15MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount01AN16MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount02AN17MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount03AN18MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount04AN19MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount05AN20MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount06AN21MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount07AN22MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount08AN23MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount09AN24MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount10AN25MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount11AN26MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount12AN27MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount13AN28MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount14AN29MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnForeignAmount15AN30MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

Related Functions

None

Related Tables

F0013 Currency Codes
F0025 Ledger Type Master File