Functional Description
Purpose
This business function will provide the shipment confirmation edit line with the functionality to
calculate and verify the ship, cancel, and backorder quantities.
Setup Notes and Prerequisites
Special Logic
Technical Specification
2.3Related Business Functions
Source NameFunction Name
B4200200.CF4201 Get Hold Code, Order Totals and Information
2.4Processing
1.If the Entered Quantity Shipped (SOQS-parm) is >= 0
//
// If not confirming the entire quantity and the backorder and cancel quantities have not been
changed
//
If the Ship Quantity Difference-wf is > 0 and the Entered Backorder Quantity (SOBK-parm) = Original
Backorder Quantity (SOBK-parm) and the Entered Cancel Quantity (SOCN-parm) = Original Cancel Quantity
(SOCN-parm)
//
// If processing option set to auto BO or cancel remaining quantity not shipped
//
If Automatic BO or Cancel (EV07-parm) = '1'
Call business function F4201 Get Hold Code, Order Totals and Information (B4200200.C) and save the
following value:
SH Backorders Allowed Flag-wf
If the Backorder Allowed Flags are = 'Y' in the F4101, F4102, F4201 and F4211
//
// If backorder and partial ship are both allowed, backorder the difference. If
backorder is allowed but not partial ship, backorder the entire qty.
//
If the Partial Ship Allowed Flag (APTS-parm) = 'Y'
set the Quantity Backordered-dwf = Ship Quantity Difference-wf + Original Backorder Quantity
(SOBK-parm)
else
set the Quantity Backordered-dwf = Original Ship Quantity (SOQS-parm)
set the Quantity Shipped-dwf = 0
endif
//
// If backorder is not allowed and partial ship is allowed, cancel the remaining qty. If backorder
and partial ship are both not allowed, cancel the entire quantity to be shipped.
//
else
If Partial Ship Flag (APTS-parm) = 'Y'
set Quantity Canceled-dwf = Entered Quantity Cancel (SOCN-parm) + Ship Quantity Difference-wf
else
set Quantity Canceled-dwf = Original Ship Quantity (SOQS-parm)
set Quantity Shipped-dwf = 0
endif
endif
set Ship Quantity Difference-wf = 0
endif
else
//
// If overshipping and the backorder and cancel quantities have not been changed, add additional
qty to the order quantity.
//
If the Ship Quantity Difference-wf < 0
and the Entered Backorder Quantity (SOBK-parm) = Original Backorder Quantity (SOBK-parm)
and the Entered Cancel Quantity (SOCN-parm) = Original Cancel Quantity (SOCN-parm)
set Quantity Ordered-dwf = Quantity Ordered (UORG-parm) - Ship Quantity Difference-wf
endif
set Ship Quantity Difference-wf = 0
endif
else
//
// Credit orders.
// If overshipping and processing option not set to allow this, issue error.
//
If the Entered Quantity Shipped (SOQS-parm) < Original Quantity Shipped (SOQS-parm) and Prevent
Overshipping (EV06-parm) = '1'
set error message '2717' and exit this edit
endif
//
// If partial confirming a line, subtract the remaining qty from the ordered qty.
//
If Ship Quantity Difference-wf >= 0
or Entered Quantity Backordered (SOBK-parm) is not = Original Quantity Backordered (SOBK-parm)
or Entered Quantity Cancel (SOCN-parm) is not = Original Quantity Cancel (SOCN-parm)
//
// If overshipping, add the additional qty to the order quantity.
//
If Ship Quantity Difference-wf > 0
and Entered Quantity Backordered (SOBK-parm) = Original Quantity Backordered (SOBK-parm)
and Entered Quantity Cancel (SOCN-parm) = Original Quantity Cancel (SOCN-parm)
set Quantity Ordered-dwf = Entered Quantity Ordered (UORG-parm) - Ship Quantity Difference-wf
endif
set Ship Quantity Difference-wf = 0
endif
endif
2.Verify that the quantities balance. Set Balance Quantity-wf = Entered Quantity Shipped
(SOQS-parm) + Entered Quantity Backordered (SOBK-parm) + Entered Quantity Canceled (SOCN-parm). If Balance
Quantity-wf is not = Quantity Ordered (UORG-parm), set error message 0505.
^
D4200790D - Calculate New Quantities
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderType | DCTO | char | NONE | NONE |
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
| ||||
szOrderCompany | KCOO | char | NONE | NONE |
A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a
| ||||
mnOriginalShipQuantity | SOQS | MATH_NUMERIC | NONE | NONE |
The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this
| ||||
mnEnteredShipQuantity | SOQS | MATH_NUMERIC | NONE | NONE |
The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this
| ||||
mnOriginalBackorderQuantity | SOBK | MATH_NUMERIC | NONE | NONE |
The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of
| ||||
mnEnteredBackorderQuantity | SOBK | MATH_NUMERIC | NONE | NONE |
The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of
| ||||
mnOriginalCancelQuantity | SOCN | MATH_NUMERIC | NONE | NONE |
The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for
| ||||
cAutoBOCancel | EV07 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cIMBackAllowed | BACK | char | NONE | NONE |
An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item
| ||||
cIBBackAllowed | BACK | char | NONE | NONE |
An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item
| ||||
cSDBackAllowed | BACK | char | NONE | NONE |
An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item
| ||||
cPartialShipFlag | APTS | char | NONE | NONE |
An option that indicates whether the customer accepts partial line shipments. Valid values are:
On
The customer accepts partial line
| ||||
cPreventOvership | EV06 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnEnteredCancelQuantity | SOCN | MATH_NUMERIC | NONE | NONE |
The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for
| ||||
mnOrderQuantity | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
mnShipQuantityDifference | SOQS | MATH_NUMERIC | NONE | NONE |
The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this
| ||||
cSHBackAllowed | BACK | char | OPT | NONE |
An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item
| ||||
szCostCenter | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
cConfiguredItemFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
mnOriginalSecondaryQuantity | SQOR | MATH_NUMERIC | OPT | NONE |
If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens. | ||||
mnEnteredSecondaryQuantity | SQOR | MATH_NUMERIC | OPT | NONE |
If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens. | ||||
mnSecondaryShipQtyDifference | SQOR | MATH_NUMERIC | OPT | NONE |
If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens. | ||||
cDualPickingProcessOption | DPPO | char | OPT | NONE |
An option that determines for a dual unit of measure item whether the system uses the primary or secondary unit of measure for the following
| ||||
cDualUnitOfMeasureItem | DUAL | char | OPT | NONE |
An option that indicates that the system must maintain inventory balances and record transactions for an item in a secondary unit of
| ||||
mnConvertedSecondaryQuantity | SOQS | MATH_NUMERIC | OPT | NONE |
The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this
| ||||
mnConvFactorTranstoSecondary | CONV | MATH_NUMERIC | OPT | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
mnSecondaryOrderQuantity | UORG | MATH_NUMERIC | OPT | NONE |
The quantity of units affected by this transaction. | ||||
mnDecimalsforRounding_SQOR | MATH01 | MATH_NUMERIC | OPT | NONE |
- - - Good Performance Low Value. | ||||
mnDecimalsforRounding_SOQS | MATH01 | MATH_NUMERIC | OPT | NONE |
- - - Good Performance Low Value. | ||||
cCIBackAllowed | BACK | char | OPT | NONE |
An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item
| ||||
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
| ||||
mnConvFactorSecondarytoTrans | CONV | MATH_NUMERIC | OPT | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. |
None |
None |