1.Functional Description
1.1Purpose
This function is intended to set Currency for various Math Numeric data structures.
1.2Setup Notes and Prerequisites
Need to know "szCurrencyCodeFrom" - base currency.
1.3Special Logic
None
2.Technical Specifications
2.1Parameters:
Data Item Data Structure
DescriptionI/ORequiredNotes
SUPPScSuppressErrorMessageIO
DTAIszErrorMessageIDIO
CRCDszCurrencyCodeFromIR
CRDCszCurrencyCodeToIO
AEXPmnAmountExtendedPriceI/OO
ECSTmnAmountExtendedCostI/OO
UPRCmnAmtUnitPriceI/OO
UNCSmnAmtUnitCostI/OO
FEAmnAmountForeignExtPriceI/OO
FECmnAmountForeignExtCostI/OO
FUPmnAmtForeignUnitPriceI/OO
FUCmnAmtForeignUnitCostI/OO
LPRCmnAmtListUnitPriceI/OO
FPRCmnAmtForeignUnitListPriceI/OO
2.3Related Business Functions
Source NameFunction Name
B0000129RetrieveCurrencyDecimals
2.4Processing
If (szCurrencyCodeFrom not equal BLANK)
Call B0000129 to get number of decimals for Domestic Currency given szCurrencyCodeFrom
If (szCurrencyCodeTo not equal BLANK && not same as szCurrencyCodeFrom)
Call B0000129 to get number of decimals for Foreign Currency given szCurrencyCodeTo
Else
number of decimals for Foreign Currency = number of decimals for Domestic Currency
End If
Else
Use API to set Currency for MathNumeric Input Fields
End If
3.2 Where Used: APPs/UBEs/NERs/BSFNs
Application/Business FunctionApplication/BF
Name
B3201460CalculateItemPriceCost
B3200460F3293EvaluateAndProcessAIR
P32942Configured Item Specifications
B3201730CalculateItemCostPrice
D3201830 - PriceCostUpdateMathCurrency
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cSuppressErrorMessage | SUPPS | char | OPT | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szErrorMessageID | DTAI | char | OPT | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
szCurrencyCodeFrom | CRCD | char | REQ | NONE |
A code that identifies the currency of a transaction. | ||||
szCurrencyCodeTo | CRDC | char | OPT | NONE |
A code that identifies the domestic (base) currency of the company on a transaction. | ||||
mnAmountExtendedPrice | AEXP | MATH_NUMERIC | OPT | NONE |
The number of units multiplied by the unit price. | ||||
mnAmountExtendedCost | ECST | MATH_NUMERIC | OPT | NONE |
For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the
| ||||
mnAmtUnitPrice | UPRC | MATH_NUMERIC | OPT | NONE |
The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table
| ||||
mnAmtUnitCost | UNCS | MATH_NUMERIC | OPT | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
mnAmountForeignExtPrice | FEA | MATH_NUMERIC | OPT | NONE |
The product of the foreign price times the number of units. | ||||
mnAmountForeignExtCost | FEC | MATH_NUMERIC | OPT | NONE |
The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units. | ||||
mnAmtForeignUnitPrice | FUP | MATH_NUMERIC | OPT | NONE |
The foreign price per unit. | ||||
mnAmtForeignUnitCost | FUC | MATH_NUMERIC | OPT | NONE |
Amount - Foreign Unit Cost | ||||
mnAmtListUnitPrice | LPRC | MATH_NUMERIC | OPT | NONE |
The list price in the unit of measure of the base price retrieved from the Base Price File (F4106). This is the price the customer would pay if
| ||||
mnAmtForeignUnitListPrice | FPRC | MATH_NUMERIC | OPT | NONE |
The list price in the unit of measure of the base price retrieved from the Base Price File (F4106). This is the price the customer would pay if
| ||||
mnAmountPOCost | ECST | MATH_NUMERIC | OPT | NONE |
For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the
| ||||
mnAmountForeignPOCost | FEC | MATH_NUMERIC | OPT | NONE |
The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units. | ||||
mnAmountPOUnitCost | UNCS | MATH_NUMERIC | OPT | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
mnAmountForeignPOUnitCost | FUC | MATH_NUMERIC | OPT | NONE |
Amount - Foreign Unit Cost |
None |
None |