F4074ApplyBasketAdjustments

Order and Basket Adjustments

Major Business Rule

Object Name: N4500100

Parent DLL: CDIST

Location: Client/Server

Language: NER

Data Structure

D4500100B - F4074 Apply Basket Adjustments

Special Input Expected
CTIDComputer ID

JOBSJob Number

XLINLine Number

EV01Processing Mode'1' - Interactive Mode '2' - Batch Mode

DOCODocument Number

DCTODocument Type

KCOOKey Company

ITMItem Number - Short

NXTRNext Status

ORPOrder Repriced IndicatorMust be added to SOE grid

SOQSQuantity Shipped

SOBKQuantity Backordered

UOMUnit of Measure as Input

UOM4Unit of Measure - Pricing

APUMUnit of Measure - Entered for Unit PriceMay need to be added to SOE grid

RPRCBasket Price GroupMust be added to SOE grid

UPRCUnit Price

FUPForeign Unit Price

LPRCList Price

FPRCForeign List Price 

OTQYOther Quantity (1/2) Required for batch mode

SONEFuture Quantity CommittedRequired for batch mode

EV02Suppress Error Message'1' - Suppress Error Messages


Special Output Returned

ORPOrder Repriced IndicatorMust be added to SOE grid

UPRCUnit Price

FUPForeign Unit Price

AEXPExtended Amount

FEAForeign Extended Amount

DTAIError Message ID



^

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputeridCTIDcharNONENONE

mnJobnumberJOBSMATH_NUMERICNONENONE

The job number (work station ID) which executed the particular job.

mnLinenumber2XLINMATH_NUMERICNONENONE

Line number.

cEveresteventpoint01EV01charNONENONE

Special Input Expected
EV01ab Processing Mode


Significant Data Values

'1' - Interactive Mode

'2' - Batch  Modeab 


^

mnDocumentorderinvoiceeDOCOMATH_NUMERICNONENONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrdertypeDCTOcharNONENONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szCompanykeyordernoKCOOcharNONENONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnIdentifiershortitemITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szCostcenterMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szStatuscodenextNXTRcharNONENONE

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

cOrderrepricedindicatorORPcharNONENONE

(Future Use) (internal use) Indicates whether this order line has been processed by the Order Repricing facility.  This is used to prevent a 
specific order line from being processed multiple times in error.

mnUnitsquantityshippedSOQSMATH_NUMERICNONENONE

The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this 
item. In the Manufacturing system and Work Order Time Entry, this field can indicate completed or scrapped quantities. The quantity type is 
determined by the type code entered.

mnUnitsquanbackorheldSOBKMATH_NUMERICNONENONE

The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of 
measure defined for this item.

szUnitofmeasureasinputUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szUnitofmeasurepricingUOM4charNONENONE

A user defined code (00/UM) that indicates the unit of measure in which you usually price the item.

szUnitofmeasureentupAPUMcharNONENONE

The basic measurement abbreviation used to designate the quantity of an inventory item. Examples are:    BA bale     LB - pound    BG bag     
MB - per thousand pieces    BU bundle     MF - per thousand feet    BX box MW - per thousand weight      CB - per hundred pieces    PC piece     
CF - per hundred feet     PR - pair  Although entry of cost and price per primary unit of measure is the accepted standard, the user may choose 
to enter cost and price per any of the five basic units of measure available.  If that happens, that unit of measure is recorded separately so 
that all subsequent costing and pricing algorithms will be performed properly.

szRepricebasketpricecatRPRCcharNONENONE

You can assign items with common repricing characteristics to a reprice category on Item Branch/Plant Revisions. You can define different 
categories based on location. Repricing is a technique that the system uses to:     o Accumulate items on order that belong to a common 
repricing category during a batch program     o Compare the aggregate quantities of items on order to the appropriate quantity breaks in the 
reprice category  If the items qualify for an additional discount, that discount is reflected as a change in unit and extended price for each 
qualifying item in the original order line.

mnAmtpriceperunit2UPRCMATH_NUMERICNONENONE

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 
(F4106).

mnAmtforpriceperunitFUPMATH_NUMERICNONENONE

The foreign price per unit.

mnAmtlistpriceperunitLPRCMATH_NUMERICNONENONE

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 
there were no price adjustments applied during Sales Order Entry.  This price is stated in domestic currency.

mnAmountlistpriceforeignFPRCMATH_NUMERICNONENONE

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 
there were no price adjustments applied during Sales Order Entry.  This price is stored in the customer's currency.

cOtherquantity12OTQYcharNONENONE

SALES ORDER PROCESSING DEFINITION: This field determines if the Quantity on Other Sales Order 1 or 2 field in the Item Location file is 
to be updated instead of the Soft Commit or Hard Commit fields. PURCHASING DEFINITION: This field determines if the Quantity on Other 
Purchase Order field is updated in the Item Location file instead of the On Purchase Order field.

mnUnitsquantityfutureSONEMATH_NUMERICNONENONE

The number of inventory units tentatively committed to this order line. Such tentative commitment may occur through the use of Blanket 
Orders, where you have agreed to sell a specified quantity of an item but the delivery date or dates are unknown at the time of the order.  The 
contents of this field will typically have an impact, not on the Committed or On Sales Order fields shown on various screens, but more likely on 
such fields as Quantity 1 or Quantity 2  as shown on the Availability screen (exit from Branch Inventory).

mnAmountextendedpriceAEXPMATH_NUMERICNONENONE

The number of units multiplied by the unit price.

mnAmountforeignextpriceFEAMATH_NUMERICNONENONE

The product of the foreign price times the number of units.

cSuppressErrorMessageEV02charNONENONE

Special Input Expected
EV02ab Suppress Error Message


Significant Data Values

'1' - Suppress Error  Messagesab 


^

szDataitemDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

mnOldOrderTotalMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

mnOldForeignOrderTotalMATH02MATH_NUMERICNONENONE

- - - Good Performance High Value. 

mnNewOrderTotalMATH03MATH_NUMERICNONENONE

- - - Bad Performance Low Value. 

mnNewForeignOrderTotalMATH04MATH_NUMERICNONENONE

Event point for Math Numeric.

mnLinenumberLNIDMATH_NUMERICNONENONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnAdjustmentrevisionlevelAREVMATH_NUMERICNONENONE

This field maintains the current revision level of Advanced Pricing adjustments awarded within a sales order. Adjustments associated with 
a revision level below the current level are considered obsolete.

mnAmountunitcostUNCSMATH_NUMERICNONENONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnAmountforeignunitcostFUCMATH_NUMERICNONENONE

Amount - Foreign Unit Cost

mnAmountextendedcostECSTMATH_NUMERICNONENONE

For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
number of units.

mnAmountforeignextcostFECMATH_NUMERICNONENONE

The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units.

mnProcessIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnTransactionIDTCIDMATH_NUMERICOPTNONE

szCurrencyCodeFromCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

szCurrencyCodeToCRDCcharOPTNONE

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

mnTriangulationRateFromTRR1MATH_NUMERICOPTNONE

The triangulation currency rate used to convert the From currency code to the Triangulation currency code.

mnTriangulationRateToTRR2MATH_NUMERICOPTNONE

The triangulation currency rate that used to convert from the Triangulation currency code to the To currency code.

cCurrencyConversionMethodCRCMcharOPTNONE

A value that specifies which method to use when converting from one currency to another. Valid values are:  Y  Multiplier method. The 
system multiplies the foreign amount by the multiplier exchange rate to calculate the domestic amount. Z Divisor method. The system divides the 
foreign amount by the divisor exchange rate to calculate the domestic amount.

mnCurrencyConverRateCRRMATH_NUMERICOPTNONE

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. 

Related Functions

None

Related Tables

None
F4213AccumeBasketOrderSumRows

F4213AccumeBasketOrderSumRows

Order and Basket Adjustments

Major Business Rule

Object Name: N4500100

Parent DLL: CDIST

Location: Client/Server

Language: NER

Functional Description

Purpose

Sales Order Detail information will be passed to this function, accumulated into summarized basket 
price group and order price group lines and written to the 'F4213' cache.



Setup Notes and Prerequisites

None.


Special Logic

None.



Technical Specification




2.2Related Tables 
Table Table Description
F4211Sales Order Detail

F4201Sales Order Header

'F4213' cacheBasket/Order Reprice cache


2.3Related Business Functions

Source NameFunction Name
B4000520GetItemUoMConversionFactor

X4101GetItemMasterByShortItem

B4300950RetrieveP43250ProcOpts

B4200340VerifyAndGetSalesHdr



2.4 Processing 



1.If basket price group (RPRC not = *Blank),


Execute B4500110 - 'F4213Get/UpdtBsktOrdSumRowsByKey' with ACTN == 4.
If summary entry does not exist in the 'F4213' cache (ERRC = 1)

Move corresponding parm fields to 'F4213' cache.
Move zeroes to line number (LNID) for 'F4213' cache.

Move blanks to order price group (ORPR) for 'F4213' cache.

Move quantity shipped (SOQS) and quantity backordered (SOBK) from parameter to 'F4213' 
cache.

Move unit weight (ITWT) from parameter to 'F4213' cache.
Calculate total quantity (SOQS + SOBK) and move to UORG in 'F4213' cache.

Execute B40000520 - 'GetItemUoMConversionFactor' to convert unit price (UPRC) to transaction 

UOM using UOM4 from parm as from UoM.

Move returned primary UoM to UOM1 in 'F4213' cache.

Calculate domestic extended price (UORG * converted unit price) and move to AEXP in 'F4213' 

cache.

If currency conversion is on,

Apply conversion factor to convert foreign unit price (FUP) to transaction UOM.
Calculate foreign extended price (UORG * converted foreign unit price)and move to FEA in 

'F4213' cache.

Move 1 to Basket Group Line Counter (MATH01) for 'F4213' cache.
Execute B4500100 - 'F4213Get/UpdtBsktOrdSumRowsByKey' with ACTN == 1 to write basket price 
group entry to 'F4213' cache.


Else
Execute B40000520 - 'GetItemUoMConversionFactor' to convert quantity shipped (SOQS), 
quantity backordered (SOBK) and unit weight (ITWT) from parm to transaction unit of measure for 

existing 'F4213' cache entry.

Add converted quantities to values in 'F4213' cache.

Calculate total quantity (converted SOQS + converted SOBK) and add to 'F4213' cache (UORG).
Convert unit price (UPRC) to transaction UoM from 'F4213' cache using UOM4 from parm as from 

UoM.

Calculate domestic extended price (converted total quantity * converted unit price) and add 

to 'F4213' cache.

If currency conversion is on,

Apply conversion factor to convert foreign unit price (FUP) to transaction UOM from 
'F4213' cache.

Calculate foreign extended price (converted total quantity * converted foreign unit 

price) and add to 'F4213' cache.

Add 1 to Basket Group Line Counter (MATH01) for 'F4213' cache.
Execute B4500110 - 'F4213Get/UpdtBsktOrdSumRowsByKey' with ACTN == 2 to update basket price 
group entry in 'F4213' cache.

2.If order price group and not basket price group (ORPR not = *Blank and RPRC = *Blank),


Execute  B4500110 - 'F4213Get/UpdtBsktOrdSumRowsByKey' with ACTN == 4.
If summary entry does not exist in the 'F4213' cache (ERRC == 1)

Move corresponding parm fields to 'F4213' cache.
Move zeroes to line number (LNID) in 'F4213' cache.

Move blanks to basket price group (RPRC) for 'F4213' cache.

Move quantity shipped (SOQS) and quantity backordered (SOBK) from parameter to 'F4213' 
cache.

Move transaction UoM (UOM) from parameter to UoM entered for unit price (APUM) in 'F4213' 

cache.

Move unit weight (ITWT) from parameter to 'F4213' cache.
Calculate total quantity (SOQS + SOBK) and move to UORG in 'F4213' cache.

Execute B40000520 - 'GetItemUoMConversionFactor' to convert unit price (UPRC) to transaction 

UoM using UOM4 from parm as from UoM.

Move returned primary UoM to UOM1 in 'F4213' cache.

Calculate domestic extended price (UORG * converted unit price) and move to AEXP in 'F4213' 

cache.

If currency conversion is on,

Apply conversion factor to convert foreign unit price (FUP) to transaction UoM.
Calculate foreign extended price (total quantity * converted foreign unit price)and move 

to FEA in 'F4213' cache.

Execute B40000520 - 'GetItemUoMConversionFactor' to convert list price (LPRC) to transaction 
UoM using APUM from parm as from UoM.

Calculate extended list price and move to LPRC in 'F4213' cache.

If currency conversion is on,

Apply UoM conversion factor to convert foreign list price (FPRC) to transaction UoM.
Calculate foreign extended list price and move to FPRC in 'F4213' cache.

Execute B4500110 - 'F4213Get/UpdtBsktOrdSumRowsByKey' with ACTN == 1 to write Order Price 
Group entry to 'F4213' cache.


Else

Execute B40000520 - 'GetItemUoMConversionFactor' to convert quantity shipped (SOQS), 
quantity backordered (SOBK) and unit weight (ITWT) from parm to transaction unit of measure for 

existing 'F4213' cache entry.

Add converted quantities to values in 'F4213' cache.

Calculate total quantity (converted SOQS + converted SOBK) and add to 'F4213' cache (UORG).
Convert unit price (UPRC) to transaction UOM from 'F4213' cache and add to 'F4213' cache.

Calculate domestic extended price (total converted quantity * converted unit price) and add 

to 'F4213' cache.

If currency conversion is on,

Apply UoM conversion factor to convert foreign unit price (FUP) to transaction UOM from 
'F4213' cache and add to 'F4213' cache.

Calculate foreign extended price (total converted quantity * converted foreign unit 

price) and add to 'F4213' cache.

Execute B40000520 - 'GetItemUoMConversionFactor' to convert list price (LPRC) to transaction 
UOM from 'F4213' cache using APUM from parm as from UoM.

Calculate extended list price and add to 'F4213' cache.

If currency conversion is on,

Apply UoM conversion factor to convert foreign list price (FPRC) to transaction UOM from 
'F4213' cache.

Calculate foreign extended list price and move to 'F4213' cache.

Add extended cost (ECST) from parameter to 'F4213' cache.
Execute B4500110 - 'F4213Get/UpdtBsktOrdSumRowsByKey' with ACTN == 2 update Order Price 

Group entry in 'F4213' cache.


3.If order price group,

Set reprice indicator (ORP = "R") on parm.

Data Structure for 'F4213' cache.


Data Item Data Structure DescriptionNotes

DOCODocument Number

DCTODocument Type

KCOOKey Company

LNIDLine Number

AN8Address Number 

SHANAddress Number - Ship To

ITMItem Number - Short

PEFJPrice Effective Date

SOQSQuantity Shipped

SOBKQuantity Backordered

ITWTUnit Weight

WTUMWeight Unit of Measure

MCUBusiness Unit

UOMUnit of Measure as Input

UOM1Unit of Measure - Primary

UOM4Unit of Measure - Pricing

APUMUnit of Measure - Entered for Unit Price

LOCNLocation

LOTNLot Number

CRRCurrency Exchange Rate 

CRCDCurrency Code 

TPCTemporary Price (Y/N) 

ASNAdjustment Schedule

RPRCBasket Price Group 

ORPROrder Price Group 

COMMCommitted (H/S) 

UORGQuantity Ordered 

UPRCUnit Price

FUPForeign Unit Price

LPRCList Price

FPRCForeign List Price

AEXPExtended Price

FEAForeign Extended Price

ECSTExtended Cost

APTSPartial Shipments AllowedNeeded for generating F4211 lines for order group adjustments.

Math01Basket Group Line CounterTotal number of lines summarized into basket price group.




Data Structure

D4500100 - F4213 Accumulate Basket Order Summary Rows

Special Input Expected
EV01Processing Mode'1' - Interactive Mode '2' - Batch Mode

DOCODocument Number

DCTODocument Type

KCOOKey Company

AN8Address NumberRequired for interactive mode

SHANAddress Number - Ship To

ITMItem Number - Short

NXTRNext Status

ORPOrder Repriced IndicatorMust be added to SOE grid

PEFJPrice Effective Date

SOQSQuantity Shipped

SOBKQuantity Backordered

ITWTUnit Weight

WTUMWeight Unit of Measure

MCUBusiness Unit

UOMUnit of Measure as Input

UOM4Unit of Measure - Pricing

APUMUnit of Measure - Entered for Unit PriceMay need to be added to SOE grid

LOCNLocation

LOTNLot Number

CRRCurrency Exchange Rate 

TPCTemporary Price (Y/N)May need to be added to SOE grid

RPRCBasket Price GroupMust be added to SOE grid

ORPROrder Price GroupMust be added to SOE grid

COMMCommitted (H/S)May need to be added to SOE grid

ASNAdjustment ScheduleRequired for interactive mode

UPRCUnit Price

FUPForeign Unit Price

LPRCList Price

FPRCForeign List Price

ECSTExtended Cost

CRCDCurrency Code 

APTSPartial Shipments AllowedNeeded for generating F4211 lines for Order Price Groups

EV02Suppress Error Message'1' - Suppress Error Messages


Special Output Returned

ORPOrder Repriced IndicatorMust be added to SOE grid

DTAIError Message ID



^

Parameter NameData ItemData TypeReq/OptI/O/Both
cEveresteventpoint01EV01charNONENONE

Special Input Expected
EV01ab Processing Mode


Significant Data Values

'1' - Interactive Mode

'2' - Batch  Modeab 

^

mnDocumentorderinvoiceeDOCOMATH_NUMERICNONENONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrdertypeDCTOcharNONENONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szCompanykeyordernoKCOOcharNONENONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnAddressnumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnAddressnumbershiptoSHANMATH_NUMERICNONENONE

The address number of the location to which you want to ship this order. The address book provides default values for customer address, 
including street, city, state, zip code, and country.

mnIdentifiershortitemITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szStatuscodenextNXTRcharNONENONE

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

cOrderrepricedindicatorORPcharNONENONE

(Future Use) (internal use) Indicates whether this order line has been processed by the Order Repricing facility.  This is used to prevent a 
specific order line from being processed multiple times in error.

jdDatepriceeffectivedatePEFJJDEDATENONENONE

The system uses the Price Effective Date to determine the base price and all advanced price adjustments.  The value loaded in this date 
is stored in the System Constants File (F4009).

mnUnitsquantityshippedSOQSMATH_NUMERICNONENONE

The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this 
item. In the Manufacturing system and Work Order Time Entry, this field can indicate completed or scrapped quantities. The quantity type is 
determined by the type code entered.

mnUnitsquanbackorheldSOBKMATH_NUMERICNONENONE

The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of 
measure defined for this item.

mnAmountunitweightITWTMATH_NUMERICNONENONE

The weight of one unit of an item, expressed in the primary unit of measure.

szWeightunitofmeasureWTUMcharNONENONE

The unit of measure that indicates the weight of an individual item. Typical weight units of measure are:    GM Gram    OZ Ounce    LB Pound    
KG Kilogram    CW Hundredweight    TN Ton 

szCostcenterMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szUnitofmeasureasinputUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szUnitofmeasurepricingUOM4charNONENONE

A user defined code (00/UM) that indicates the unit of measure in which you usually price the item.

szUnitofmeasureentupAPUMcharNONENONE

The basic measurement abbreviation used to designate the quantity of an inventory item. Examples are:    BA bale     LB - pound    BG bag     
MB - per thousand pieces    BU bundle     MF - per thousand feet    BX box MW - per thousand weight      CB - per hundred pieces    PC piece     
CF - per hundred feet     PR - pair  Although entry of cost and price per primary unit of measure is the accepted standard, the user may choose 
to enter cost and price per any of the five basic units of measure available.  If that happens, that unit of measure is recorded separately so 
that all subsequent costing and pricing algorithms will be performed properly.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

mnCurrencyconverrateovCRRMATH_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. 

cTemporarypriceynTPCcharNONENONE

The Advanced Price Adjustment System will set this flag to Y when the Price Effective Date (PEFJ) is blank or when a line is split during 
commitments or shipment confirmations.  All of the above conditions could cause the Unit Price of a line item to become inaccurate.  You can 
use the Recalculate Sales Order Amount Program (P42950) to recalculate the sales prices.  This flag should be used as a criterion in the Data 
Selections of the DREAM Writer version P42950.

szRepricebasketpricecatRPRCcharNONENONE

You can assign items with common repricing characteristics to a reprice category on Item Branch/Plant Revisions. You can define different 
categories based on location. Repricing is a technique that the system uses to:     o Accumulate items on order that belong to a common 
repricing category during a batch program     o Compare the aggregate quantities of items on order to the appropriate quantity breaks in the 
reprice category  If the items qualify for an additional discount, that discount is reflected as a change in unit and extended price for each 
qualifying item in the original order line.

szOrderrepricecategoryORPRcharNONENONE

Items with common order repricing characteristics are assigned to an order reprice category on the Item Master Revisions screen. 
Categories can be varied at the Location level (fold area). Order repricing is a technique in which items within an order that belong to the same 
repricing category are accumulated during a batch program and their aggregate quantities are compared to the appropriate quantity "breaks" in 
the reprice category. Typical quantity breaks in this situation might be the total weight or the total dollar value of the order as whole. If the 
items qualify for additional discount, that discount is reflected as a flat dollar amount in a new discount line. This facility supplements the repricing 
function and operates in the same batch program.

cCommittedhsCOMMcharNONENONE

A value that indicates whether you specified from which Location and Lot a particular item was to come. If you specified a storage area, the 
program assigns a Hard (H) commit, and subsequent programs will not determine which Location and Lot to use to satisfy the order line. If 
you did not specify a storage area, the program assigns a Soft (S) commit and attempts to determine which Location and Lot records can best 
satisfy the order line quantity. Valid codes are:    S Soft Committed,    H Hard Committed    C Hard Committed by Commitment Program    K Kit 
Master Line (No Commitment)    N Work Order (No Commitment)

szPriceadjustmentschedulenASNcharNONENONE

A user defined code (40/AS) that identifies a price and adjustment schedule. A price and adjustment schedule contains one or more 
adjustment types for which a customer or an item might be eligible. The system applies the adjustments in the sequence that you specify in the 
schedule. You link customers to a price and adjustment schedule through the customer billing instructions. When you enter a sales order, the 
system copies the schedule attached to the sold to address into the order header. You can override this schedule at the detail line level. For 
Agreement Management, this is the Agreement Penalty Schedule. The information in the Agreement Penalty Schedule provides the system 
with the criteria for an agreement to have penalty conditions.

mnAmtpriceperunit2UPRCMATH_NUMERICNONENONE

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 
(F4106).

mnAmtforpriceperunitFUPMATH_NUMERICNONENONE

The foreign price per unit.

mnAmtlistpriceperunitLPRCMATH_NUMERICNONENONE

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 
there were no price adjustments applied during Sales Order Entry.  This price is stated in domestic currency.

mnAmountlistpriceforeignFPRCMATH_NUMERICNONENONE

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 
there were no price adjustments applied during Sales Order Entry.  This price is stored in the customer's currency.

mnAmountextendedcostECSTMATH_NUMERICNONENONE

For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
number of units.

szCurrencycodefromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

cPartialshipmntsallowyAPTScharNONENONE

An option that indicates whether the customer accepts partial line shipments. Valid values are: On The customer accepts partial line 
shipments. No The customer does not accept partial shipments; the entire line must be shipped at one time.

cEveresteventpoint02EV02charNONENONE

Special Input Expected
EV02ab Suppress Error  Messageab 


Significant Data Values

'1' - Suppress Error  Messagesab 


^

szDataitemDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

mnLinenumberLNIDMATH_NUMERICNONENONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnAdjustmentrevisionlevelAREVMATH_NUMERICNONENONE

This field maintains the current revision level of Advanced Pricing adjustments awarded within a sales order. Adjustments associated with 
a revision level below the current level are considered obsolete.

mnAmountforeignextcostFECMATH_NUMERICNONENONE

The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units.

szComputeridCTIDcharNONENONE

mnJobnumberJOBSMATH_NUMERICNONENONE

The job number (work station ID) which executed the particular job.

mnLinenumber2XLINMATH_NUMERICNONENONE

Line number.

mnF42UI11WFLineNoLNIXMATH_NUMERICNONENONE

szLineTypeLNTYcharOPTNONE

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

mnSODtlParentForBsktFGLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnAmountForeignUnitCostFUCMATH_NUMERICOPTNONE

Amount - Foreign Unit Cost

mnAmountUnitVolumeITVLMATH_NUMERICOPTNONE

The cubic units occupied by one inventory item. The definition of the unit itself (cubic feet, yards, meters, and so on) is defined in the volume 
unit of measure.

mnUnitsQuantityCanceledSOCNMATH_NUMERICOPTNONE

The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for 
this item. In manufacturing, this can also be the number of units scrapped to date.

mnAmountUnitCostUNCSMATH_NUMERICOPTNONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnUnitsTransactionQtyUORGMATH_NUMERICOPTNONE

The quantity of units affected by this transaction.

mnUserReservedAmountURATMATH_NUMERICOPTNONE

This is a 15 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

mnAmountOpen1AOPNMATH_NUMERICOPTNONE

The amount of the order, invoice, or voucher that is still unpaid or open. When you enter a document (for example, an order, invoice, or 
voucher), the open amount is the original amount of that document. If you change the original amount, the open amount is reduced by the net 
change. For example,payments, shipments, or receipts against a document result in a reduction of the open balance.

mnDiscountCashCADCMATH_NUMERICOPTNONE

A discount which is passed forward from the manufacturer or mill to the customer based upon the payment terms of the supplier.  Enter 10 
percent as 10.00.

mnDiscountFactorDSPRMATH_NUMERICOPTNONE

The factor that the system applies to the unit price of an inventory item to determine the net price. The system retrieves this value from the 
inventory pricing rules if you have assigned a rule to this item. The pricing rule setup determines if the system multiplies the unit price by this 
value or adds to or deducts from the unit price.

mnDaysPastExpirationEXDPMATH_NUMERICOPTNONE

The number of days allowed before expiration for an item where it still can be used or sold to a specific customer.  When negative, this 
number indicates the number of days after expiration for an item where it still can be used or sold to a specific customer. For example, if the 
expiration date for item 1001 is 06/01/98:     o A value of 15 in Days Before Expiration means that this specific customer only accepts this item up to 
05/15/98.     o A value of -15 in Days Before Expiration means that this specific customer accepts this item up to 06/15/98.

mnFromPotencyFRMPMATH_NUMERICOPTNONE

A number that indicates the minimum potency or percentage of active ingredients acceptable for an item. The system displays a warning 
message if you try to purchase or issue items that do not meet the minimum acceptable potency. The system does not allow you to sell items 
that do not meet the minimum acceptable potency.

mnGrossWeightGRWTMATH_NUMERICOPTNONE

Essentially a memo field at present, this value is intended to reflect the fact that many inventory items are always packaged in the same 
way for shipment to the customer.  This packaging in turn effectively adds to the shipment weight for the item.  Since much of the mainstream 
freight calculations depend upon a weight basis for their accuracy, the ability to store a gross weight which reflects the estimated additional 
weight of standard packaging was deemed to be a worthwhile enhancement. (Future Use)

mnUnitsQuantityFutureSONEMATH_NUMERICOPTNONE

The number of inventory units tentatively committed to this order line. Such tentative commitment may occur through the use of Blanket 
Orders, where you have agreed to sell a specified quantity of an item but the delivery date or dates are unknown at the time of the order.  The 
contents of this field will typically have an impact, not on the Committed or On Sales Order fields shown on various screens, but more likely on 
such fields as Quantity 1 or Quantity 2  as shown on the Availability screen (exit from Branch Inventory).

mnExtendedCostTransferTCSTMATH_NUMERICOPTNONE

This is the cost of transferring inventory from one branch to another.  The method of calculating this transfer cost is maintained in the Inter 
Branch Sales Markup Revisions (P3403).

mnThruPotencyTHRPMATH_NUMERICOPTNONE

A number that indicates the maximum potency or percentage of active ingredients that is acceptable for an item. The system displays a 
warning message if you try to purchase or issue items that have a potency that exceeds the maximum potency acceptable. The system does 
not allow you to sell items that have a potency that exceeds the maximum potency acceptable.

mnDiscountTradeTRDCMATH_NUMERICOPTNONE

Percentage by which the system reduces the price of each item. This is the only discount that will be applied. You can override it if you 
enter a price. Enter the percentage as a whole number (that is, 5 for 5%).

mnUnitsOpenQuantityUOPNMATH_NUMERICOPTNONE

The original quantity for the order detail line, plus or minus any changes to that quantity, minus all quantities shipped, received, and 
vouchered to date.

mnUnitsPrimaryQtyOrderPQORMATH_NUMERICOPTNONE

The quantity ordered by the customer expressed in the primary stocking unit of measure.

mnQuantityRelievedQRLVMATH_NUMERICOPTNONE

Unit relieved (future use).

mnQuantityShippedToDateQTYTMATH_NUMERICOPTNONE

The number of units which have passed through the Sales Update process. In Workorder Processing, this field identifies the total quantity 
completed or consumed on a workorder to date basis.

cBasketAccumulationRuleBSKTAcharOPTNONE

A code that specifies whether an item or an item group is included for basket-level summation or  item-level summation, or both. Valid 
values are: Blank Include the item or item group for summation. The system does not require an order minimum when using this value. 1 Include the 
item or item group for summation. The system requires an order minimum when using this value. 2 Exclude the item or item group from 
summation.

cBasketPricingRuleBSKTPcharOPTNONE

A code that indicates whether the system applies a standard basket adjustment or exception pricing to an item or an item group. Valid 
values are: Blank Apply a standard basket adjustment. 1 Apply exception pricing. 2 Do not apply standard basket adjustments or exception pricing.

cEnhancedBasketYNEV01charOPTNONE

An option that specifies the type of processing for an event.

szBasketUOMUOMcharOPTNONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

mnProcessIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnTransactionIDTCIDMATH_NUMERICOPTNONE

mnItemGroupKeyIDIGIDMATH_NUMERICOPTNONE

A number that identifies an item group or an order detail pricing group. Each pricing group is comprised of either item category codes (for 
an item group) or sales order detail field values (for an order detail group). For every unique combination of values in the pricing group, the 
system assigns a number (key ID) to identify the group. The system retrieves this number from the Next Numbers program (P0002) for the 
system code 40 and the line number 5.

ocProcessingModeEV01charOPTNONE

An option that specifies the type of processing for an event.

szAgreementNoDMCTcharOPTNONE

A unique number your company assigns to identify a particular agreement. You might want to assign some significance to the agreement 
number (for example,an agreement type code, location, year, and so forth). An agreement might have multiple supplements to record 
addendum or changes, for example.

szDutyStatusDTYScharOPTNONE

A user defined code (system 40, type DS) identifying the duty status of an order line. You should only specify this value for duty reporting. 
The system supplies a default value based on the End Use preference. You can override this value at order entry.

szHeaderBranchPlantEMCUcharOPTNONE

A business unit is an accounting entity required for management reporting. It can be a profit center, department, warehouse location, job, 
project, work center, branch/plant, and so forth. This business unit is from the business unit entered on the header of a sales/purchase order for 
reporting purposes. This data is always right justified on entry (for example, CO123 would appear as _______CO123).  A security mechanism 
has been provided to inhibit users from entering or locating business units outside the scope of their authority.

szEndUseEUSEcharOPTNONE

User defined code (system 40, type EU) identifying the end use of an order line and used for duty reporting only. The system supplies a 
default value based on the End Use preference. You may override this value at order entry.

szRateCodeFrieghtMiscFRATcharOPTNONE

The user defined code (system 41/type RT) for freight rate. This designates the amount that the customer is charged for postage, freight, or 
other miscellaneous expenses for an order.

szItemGroupPRGRcharOPTNONE

A user defined code (system 40/type PI) that identifies an inventory price group for an item. Inventory price groups have unique pricing 
structures that direct the system to incorporate discounts or markups on items on sales and purchase orders. The discounts or markups are 
based on the quantity, dollar amount, or weight of the item ordered. When you assign a price group to an item, the item takes on the same pricing 
structure defined for the inventory price group. You must assign an inventory price group to the supplier or customer, as well as to the item, for 
the system to interactively calculate discounts and markups on sales orders and purchase orders.

szShippingCommodityClassSHCMcharOPTNONE

A user defined code (41/E) that represents an item property type or classification (for example, international shipment handling). The 
system uses this code to sort and process similar items. This field is one of three classification categories available primarily for inventory and 
shipping purposes.

szShippingConditionsCodeSHCNcharOPTNONE

A code (table 41/C) that represents an item property type or classification,such as special shipping conditions. The system uses this code 
to sort and process like items. This field is one of three classification categories available primarily for inventory and shipping purposes.

szStopCodeSTOPcharOPTNONE

The stop code is a user defined code (system 42, type SP) that represents the stop on a delivery route. This field is one of several factors 
used by the freight summary facility to calculate potential freight charges for an order. For picking, you can use the stop code with the route and 
zone codes to group all items that are to be loaded onto a delivery vehicle for a specific route. You set up the default for each of these fields 
on the Customer Billing Instructions form.

szPriceCode1UPC1charOPTNONE

User defined code (system 40, type P1) you can use to control pricing adjustments. You can associate this code with a preference 
profile. When you specify a price code 1 in the preference, it fills or overrides this field in the sales order detail.

szPriceCode2UPC2charOPTNONE

User defined code (system 40, type P2) you can use to control pricing adjustments. You can associate this code with a preference 
profile. When you specify a price code 2, the system fills this field in the sales order detail.

szPriceCode3UPC3charOPTNONE

User defined code (system 40, type P3) you can use to control pricing adjustments. You can associate this code with a preference 
profile. Price code 3 is not visible on the sales order, but the system includes it in the detail file.

szDualUOMUOM2charOPTNONE

A user defined code (00/UM) that indicates an alternate unit of measure for the item.

mnDualQtySQORMATH_NUMERICOPTNONE

If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens.

Related Functions

None

Related Tables

None
div style="margin-left: 0.750000in">Execute B40000520 - 'GetItemUoMConversionFactor' to convert quantity shipped (SOQS), 

quantity backordered (SOBK) and unit weight (ITWT) from parm to transaction unit of measure for 

existing 'F4213' cache entry.

Add converted quantities to values in 'F4213' cache.

Calculate total quantity (converted SOQS + converted SOBK) and add to 'F4213' cache (UORG).
Convert unit price (UPRC) to transaction UOM from 'F4213' cache and add to 'F4213' cache.

Calculate domestic extended price (total converted quantity * converted unit price) and add 

to 'F4213' cache.

If currency conversion is on,

Apply UoM conversion factor to convert foreign unit price (FUP) to transaction UOM from 
'F4213' cache and add to 'F4213' cache.

Calculate foreign extended price (total converted quantity * converted foreign unit 

price) and add to 'F4213' cache.

Execute B40000520 - 'GetItemUoMConversionFactor' to convert list price (LPRC) to transaction 
UOM from 'F4213' cache using APUM from parm as from UoM.

Calculate extended list price and add to 'F4213' cache.

If currency conversion is on,

Apply UoM conversion factor to convert foreign list price (FPRC) to transaction UOM from 
'F4213' cache.

Calculate foreign extended list price and move to 'F4213' cache.

Add extended cost (ECST) from parameter to 'F4213' cache.
Execute B4500110 - 'F4213Get/UpdtBsktOrdSumRowsByKey' with ACTN == 2 update Order Price 

Group entry in 'F4213' cache.


3.If order price group,

Set reprice indicator (ORP = "R") on parm.

Data Structure for 'F4213' cache.


Data Item Data Structure DescriptionNotes

DOCODocument Number

DCTODocument Type

KCOOKey Company

LNIDLine Number

AN8Address Number 

SHANAddress Number - Ship To

ITMItem Number - Short

PEFJPrice Effective Date

SOQSQuantity Shipped

SOBKQuantity Backordered

ITWTUnit Weight

WTUMWeight Unit of Measure

MCUBusiness Unit

UOMUnit of Measure as Input

UOM1Unit of Measure - Primary

UOM4Unit of Measure - Pricing

APUMUnit of Measure - Entered for Unit Price

LOCNLocation

LOTNLot Number

CRRCurrency Exchange Rate 

CRCDCurrency Code 

TPCTemporary Price (Y/N) 

ASNAdjustment Schedule

RPRCBasket Price Group 

ORPROrder Price Group 

COMMCommitted (H/S) 

UORGQuantity Ordered 

UPRCUnit Price

FUPForeign Unit Price

LPRCList Price

FPRCForeign List Price

AEXPExtended Price

FEAForeign Extended Price

ECSTExtended Cost

APTSPartial Shipments AllowedNeeded for generating F4211 lines for order group adjustments.

Math01Basket Group Line CounterTotal number of lines summarized into basket price group.