Functional Description
Purpose
The purpose of this business function is to retrieve the company for the Business Unit
(Branch/Plant) provided in the data structure, rectrieve the domestic currency of that company, and then retrieve
the decimals for that currency and to assign the decimals to all the Math Numerics provided. This is
used mainly at the data base trigger level where it is run automatically when currency processing is
on.
Technical Specification
If BusinessUnit is equal to blanks/NULL then end processing.
Using the business function GetCompanyFromBusUnit retrieve the company number.
Using company, run the JDB API JDB_RetrieveF0010RowUsingCompanyNumber retrieve the currency code from
the company record cached.
Using the currency code from the company, run the JDB API JDB_RetrieveF0013RowUsingCurrencyCode to
retrieve the decimals for the currency from the cache. This currency code gets used in the
jdeMathSetCurrCode as a parameter for the domestic amounts.
Run the API's jdeMathSetDecimals and jdeMathSetCurrCode to set the currency decimals and currency
code for each of the 15 Math Numeric amounts in the data structure.
NOTE: There is a template created by Roger Chan that can be used to assist in writing this business
function.
D1100011 - Decimal Trigger Get By MCU
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szBranchPlant | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnDomesticAmount01 | AN01 | MATH_NUMERIC | NONE | NONE |
A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount02 | AN02 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount03 | AN03 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount04 | AN04 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount05 | AN05 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount06 | AN06 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount07 | AN07 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount08 | AN08 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount09 | AN09 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount10 | AN10 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount11 | AN11 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount12 | AN12 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount13 | AN13 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount14 | AN14 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
| ||||
mnDomesticAmount15 | AN15 | MATH_NUMERIC | NONE | NONE |
Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company
|
B0000130 Retrieve Company From Business Unit |
F0010 Company Constants | ||||
F0013 Currency Codes |