PreferenceCalculateCommitments

Preference Calculate Commitments

Major Business Rule

Object Name: B4200850

Parent DLL: CDIST

Location: Client/Server

Language: C




Functional Description


Purpose


Use this function to process the inventory commitment for a sales order detail.  This function will 

perform hard commitments for a sales detail line.  During this process, it will allocate inventory from 

locations in the Item Locations Table (F41021) using the Commitment method.  If inventory needs to be 

allocated from different locations, the sales order detail line will be split according to the 

location.


Setup Notes and Prerequisites



• The calling application should call this function once per sales detail record.

• In the calling application, if the order is on hold (HOLD in the F4201 is not blank), this business 
function should not be called.


• If future committed line (SDSONE > 0) or blanket line (SDOTQY =='1' or '2'), this business function 
should not be called.

• If a warehouse line (SDSWMS=='I'), this business function should not be called.
• If the detail record is canceled (SDNXTR=='999'), this business function should not be called.
• If Inventory Interface Flag (LFIVI) <> 'Y', this business function should not be called.
• If line is a credit line (SDUORG <= 0 or SDSOQS <= 0), this business function should not be called.
• If availability checking is turned on, this function should be called after determining the 
backorder or cancel quantities.




Special Logic


None.


Technical Specification



Related Tables 


Table Table Description

F42UI130Commitment Work File

F40306PreferenceInventory Commitment

F4102      Item Branch

F41001Branch/Plant Constants

F40309PreferenceDelievery Dates


Related Business Functions


Source Name     Function Name

B3100380.CCalculateQuantityAvailableShell

B4000520.CGetItemUoMConversionFactor

B4002120.CPromiseDelDateCalcForPref


B4200780.CGet/Update Commitment Work File

B4002090.CGetPreferenceMaster

B4002140.CF40071/F40072 GetCustomerItemGroup

B4000800.CF40073GetPricingPrefHierarchy


Processing


General Flow of Processing:


1.  If the Commitment Flag != H, C or K
           Continue

     Else

           If the Commitment Flag = H and Location is not blank

                  Write that location specific information to the Work File


1.  If the Header Branch is different from the Default Detail Branch

       If the Detail Branch is blank

          SOE  assigns Detail Branch = Default Detail Branch

          Flow thru # 2


2.  Determine branch to source from: 

     If a Detail Branch is passed into the preference function 

         ( i.e. the user typed in a specific branch or they could be in change mode)

           Use the detail branch to commit from - write to work file & back order to      that 

branch

           Do not perform the preference or sequencing logic ( loops )

      Else

           If it's blank, determine the branch to use.  do sequencing logic - loops.


3.    Information written to F42UI130 work file   Perform Preference Hierarchy & MCU Sequence 

Loops:

           The AS/400 writes records to the work file in the following manner:

               Read the Preference Hierarchy Structure - Builds Sorted List of    

Hierarchys

               

   Retrieves the Item Groups, Customer Groups - if any are set up

               Given the above info - Sets up the keys for the F40306 Preference    Profile 

- Inventory Sourcing File Cycle thru the Sorted Hierarchys One    by One

               

         Fetch the Branches One by One that are set up in the F40306 File

               Get the Availability at each Branch

                   If the Ordered Qty can be filled from 1 branch

                       It writes ONLY that 1 branch to the work file

                   Else the Ordered Qty cannot be filled from 1 branch

                       It writes all branches set up in the sequences ( whether there  

    is qty available or not ) to the work file.  

                       (Note:  Bug on AS/400:  If the same branch is in two difference  

    preference hierarchys the AS/400 retrieves the Qty Avail for the      branch, but 

doesn't note the fact that the Qty Avail is already

                       given to the first preferences branch.  Thus it ships the from

                       the same branch twice, when there really is only enough to ship

                       from 1 branch. )

                       If the Item/Branch combo does not exist in the F41021 file

                             Do Not write that branch to the work file.

     

4.  If no preference set up for item/customer combo:

         use the header branch passed in to commit inventory from.

         write to wf 


5.    It should back order to the first branch set up in the sequence.



6.  Passing the MCU back:

     If the Ordered Qty can be filled from 1 branch

           Passes that mcu back - the mcu that had all the quantity.

     

     If the Ordered Qty cannot be filled from 1 branch 

              If it can fill partial - 

                  passes back the first mcu it filled from

              If it cannot fill any - 

                 passes back the first mcu in the sequence



7.  In Change Mode - Sales Order Entry

       F4211 End Doc needs to know the original branch in case the user changes the

 quantities to another branch.  Inventory needs to be de-committed and

       recommitted to another branch.


8.  In Change Mode - Sales Order Entry

     Since there is a detail branch - let the logic flow thru as normal.

     Inventory will only be commited from the detail branch passed in.



^

Data Structure

D4200850 - Preference Calculate Commitments





Special Input Expected


Parameters:


Data Item Data Structure DescriptionI/ORequiredNotes

DOCO      Sales Order Number       I   Y      Key

DCTO      Sales Order Type             I       Y      Key

KCOO      Sales Order Company       I   Y      Key

LNID      SOE Line Number             I   Y       Key

CTID      ComputerID                   I   Y

JOBS      Job Number                   I   Y

XLIN      Line Number - Work File       I   Y

AN8      Customer Number             I   Y      Sold To  from Sales

                                                            Detail

SHAN      Ship To Address Number       I   Y      Ship To from Sales

                                                            Detail

PA8      Parent Address Number       I   Y      Parent from Sales

                                                            Detail

MCU      Detail Branch/Plant      I/O   N      from Sales Detail

EMCU      Header Branch/Plant       I   Y      form Sales Header

ITM      Short Item Number             I   Y      from Sales Detail

UORG      Order Quantity             I   Y      Sales Detail

SOQS      Shipped Quantity            I/O   Y      Sales Detail

SOBK      Backorder Quantity      I/O   Y      Sales Detail

SOCN      Cancel Quantity            I/O   Y      Sales Detail

LOCN      Location                   I   N      If Location is typed

                                                            in on SOE. Send in

                                                            File Format

LOTN      Lot Number                   I   N      If not blank, send

                                                            from Sales Detail

UOM      Unit of Measure - Trans       I   Y      from Sales Detail

UOM4      Unit of Measure - Pricing I   Y      from Sales Detail

SO06      Preference Commitment FlagI/O   Y      Flag indicating that

                                                            B4200850 has been

                                                            called once before -

                                                            so don't call again.

SO07      Overriden Ship Date FlagI/O   Y      Indicates whether or

                                                            not a Preference

                                                            Hierarchy was set up

                                                            for Delivery Dates.

FRGD      From Grade                   I   N      If OT1Y = 1 or Y

                                                            from Sales Detail

THGD      Thru Grade                   I   N      If OT1Y = 1 or Y

                                                            from Sales Detail

FRMP      From Potency             I   N      If OT2Y = 1 or Y

                                                            from Sales Detail

THRP      Thru Potency             I   N      If OT2Y = 1 or Y

                                                            from Sales Detail

EXDP      Days Before Expiration       I   N      If OT1Y or OT2Y = Y

                                                            from Sales Detail

PDDJ      Promised Ship Date      I/O   Y      from Sales Detail  If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

RSDJ      Promised Delivery Date      I/O   Y      from Sales Detail  If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

DRQJ      Requested Date             I   Y      from Sales Detail

TRDJ      Order Date                   I   Y      from Sales Detail

MOT      Mode of Transport            I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

ROUT      Route                        I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

CARS      Carrier Code            I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

COMM      Commitment Flag            I/O   Y      Sales Detail

BACK      ItemMasterBackOrderFlag       I   Y

BACK      CustomerBackOrderFlag       I   Y

BACK      SOE Backorder Flag       I   Y      Sales Detail

APTS      Allow Partial Shipments       I   Y      Sales Detail

IVI      Inventory Interface       I   Y      From Line Type Master

                                                            (LFIVI)

EV01      ActionCode                   I   N      1=Edit, 2=Update,

                                                            3=Edit & Update,

                                                            4=Delete from Work

                                                              File.  NOT USED as

                                                              of 8/9/96

EV02      POCommitmentProcessing       I   Y      Value from processing

                                                            option #48.

                                                            1 = do commitment

                                                            2 = notify only

EV03      POPreferenceProcessing       I    Y      Value from processing

                                                            option #69 to use

                                                            preference profile

                                                            defaults.  If this

                                                            P.O. = 1, then If

                                                            Preference set up for

                                                            Delivery Dates - use.

VERS      Version ID                   I    Y      Version of preference

                                                            profile (R40400)

PID      Program ID                   I   N

UPMJ      Today's Date             I   N      Optional. If NULL,

                                                            call GetAuditInfo.

TDAY      Time of Day                   I   N      Optional. If NULL,

                                                            call GetAuditInfo.

USER      User ID                   I    N      Optional. If NULL,

                                                            call GetAuditInfo.

JOBN      WorkStationID             I   N      Optional, If NULL call

                                                            GetAuditInfo.

EV02      SuppressErrorMessage       I   N



Special Output Returned


Parameters:


Data Item Data Structure DescriptionI/ORequiredNotes

MCU      Detail Branch/Plant      I/O   N      from Sales Detail

SOQS      Shipped Quantity            I/O   Y      Sales Detail

SOBK      Backorder Quantity      I/O   Y      Sales Detail

SOCN      Cancel Quantity            I/O   Y      Sales Detail

SO06      Preference Commitment FlagI/O   Y      Flag indicating that

                                                            B4200850 has been

                                                            called once before -

                                                            so don't call again.

SO07      Overriden Ship Date FlagI/O   Y      Indicates whether or

                                                            not A Preference

                                                            Hierarchy was set up

                                                            for Delivery Dates.

PDDJ      Promised Ship Date      I/O   Y      from Sales Detail  If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

RSDJ      Promised Delivery Date      I/O   Y      from Sales Detail  If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

MOT      Mode of Transport            I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

ROUT      Route                        I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

CARS      Carrier Code            I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

COMM      Commitment Flag            I/O   Y      Sales Detail

EV04      Multiple Branch Flag       O   N      Flag to prompt SOE to

                                                            display error message

                                                            4600.  If a '1' passed

                                                            back to SOE - then

                                                            multiple branches were

                                                            written to the work

                                                            file.

ERRC      Error Code                   O   N      '1' if error occurred

                                                            in this function.

DTAI      Error Message ID             O   N



^

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputerIDCTIDcharNONENONE

mnJobNumberJOBSMATH_NUMERICNONENONE

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

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

szDocumentTypeDCTOcharNONENONE

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

szDocumentCompanyKCOOcharNONENONE

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.

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

mnLineNumberF42UI11XLINMATH_NUMERICNONENONE

Line number.

mnCustomerNumberAN8MATH_NUMERICNONENONE

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

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

mnParentAddrNumberPA8MATH_NUMERICNONENONE

The address book number of the parent company. The system uses this number to associate a particular address with a parent company 
or location. Any value that you enter in this field updates the Address Organizational Structure Master table (F0150) for the blank structure 
type. This address number must exist in the Address Book Master table (F0101) for validation purposes. Examples of address book records 
that would have a parent number include:   o  Subsidiaries with parent companies     o  Branches with a home office     o  Job sites with a general 
contractor 

mnShortItemNumberITMMATH_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

szBranchPlantMCUcharNONENONE

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.

szHeaderBranchPlantEMCUcharNONENONE

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

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

mnQuantityOrderedUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

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

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

mnQuantityCancelledSOCNMATH_NUMERICNONENONE

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.

szTransactionUOMUOMcharNONENONE

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

szPricingUOMUOM4charNONENONE

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

szPrimaryUOMUOM1charNONENONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA 
(each) or KG (kilogram).

szFromGradeFRGDcharNONENONE

A user defined code (40/LG) that indicates the minimum grade that is acceptable for an item. The system displays a warning message if 
you try to purchase or issue items with grades that do not meet the minimum grade acceptable. The system does not allow you to sell items 
with grades that do not meet the minimum acceptable level.

szThruGradeTHGDcharNONENONE

A user defined code (40/LG) that indicates the maximum grade that is acceptable for an item. The system displays a warning message if 
you try to purchase or issue items with grades that exceed the maximum grade acceptable. The system does not allow you to sell items with 
grades that exceed the maximum grade acceptable.

mnFromPotencyFRMPMATH_NUMERICNONENONE

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.

mnThruPotencyTHRPMATH_NUMERICNONENONE

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.

mnDaysBeforeExpirationEXDPMATH_NUMERICNONENONE

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.

jdPromisedShipDatePDDJJDEDATENONENONE

The promised shipment date for either a sales order or purchase order. The Supply and Demand Programs use this date to calculate 
Available to Promise information. This value can be automatically calculated during sales order entry. This date represents the day that the item 
can be shipped from the warehouse.

jdPromisedDelDateRDDJJDEDATENONENONE

The date of the most recent past-due notice to the customer.

jdRequestedDateDRQJJDEDATENONENONE

The date that an item is scheduled to arrive or that an action is scheduled for completion.

jdTransactionDateTRDJJDEDATENONENONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

szModeOfTransportMOTcharNONENONE

A user defined code (00/TM) that describes the nature of the carrier being used to transport goods to the customer. For example, by rail, by 
road, and so on.

szRouteCodeROUTcharNONENONE

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

mnCarrierNumberCARSMATH_NUMERICNONENONE

The address number for the preferred carrier of the item. The customer or your organization might prefer a certain carrier due to route or 
special handling requirements.

cCommitmentFlagCOMMcharNONENONE

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)

cPreferenceCommitmentFlagSO06charNONENONE




Flag indicating that B4200850 has been called once before

- so don't call again



^

cOverridenShipDateSO07charNONENONE




Indicates whether or not A Preference Hierarchy was set up for Delivery Dates.



^

cSOEBackOrderFlagBACKcharNONENONE

An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item 
Branch/Plant (P41026) programs, by customer using the Customer Billing Instructions program (P03013), or by branch/plant using the 
Branch/Plant Constants program (P41001).  Valid values are: On Allow backorders for this item. Off Do not allow backorders for this item, regardless of 
the backorders code that is assigned to the customer.

cCustomerBackOrderFlagBACKcharNONENONE

An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item 
Branch/Plant (P41026) programs, by customer using the Customer Billing Instructions program (P03013), or by branch/plant using the 
Branch/Plant Constants program (P41001).  Valid values are: On Allow backorders for this item. Off Do not allow backorders for this item, regardless of 
the backorders code that is assigned to the customer.

cAllowPartialShipmentsAPTScharNONENONE

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.

cInventoryInterfaceFlagIVIcharNONENONE

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

cPOCommitmentProcessingEV02charNONENONE




Value from processing option #48. 


      1 = do commitment 

      2 = notify only



^

cPOPrefernceProcessingEV03charNONENONE




Value from processing option #69 to use preference profile defaults.  If this P.O. = 1, then If 

Preference set up for Delivery Dates - use.



^

cMultipleBranchFlagEV04charNONENONE




Flag to prompt SOE to display error message 4600.  If a '1' passed back to SOE - then multiple 

branches were written to the work file



^

cActionCodeEV01charNONENONE




      1=Edit,

      2=Update,

      3=Edit & Update,

      4=Delete from Work File.  NOT USED as of 8/9/96



^

szVersionIDVERScharNONENONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

jdTodaysDateUPMJJDEDATENONENONE

The date that specifies the last update to the file record.

mnTimeOfDayTDAYMATH_NUMERICNONENONE

The computer clock in hours:minutes:seconds.

szUserIDUSERcharNONENONE

The code that identifies a user profile.

szWorkStationIDJOBNcharNONENONE

The code that identifies the work station ID that executed a particular job.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szErrorMsgIDDTAIcharNONENONE

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.

cSuppressErrorMsgEV02charNONENONE

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

cItemMasterBackOrderFlagBACKcharNONENONE

An option that specifies whether to allow backorders for this item. You can allow backorders by item using the Item Master (P4101) or Item 
Branch/Plant (P41026) programs, by customer using the Customer Billing Instructions program (P03013), or by branch/plant using the 
Branch/Plant Constants program (P41001).  Valid values are: On Allow backorders for this item. Off Do not allow backorders for this item, regardless of 
the backorders code that is assigned to the customer.

cPriorityProcessingCodePRIOcharNONENONE

A code that tells the system to handle this customer's orders on a priority basis. Use this value to set up print pick slips so you can choose 
to print them on a priority basis. This code is assigned from the Customer Billing Instructions. In addition, the backorder print report and 
automatic batch release program can be sequenced by this code to release those orders with the highest priority first.

cPOCommitPreferenceEV01charOPTNONE

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

cPOCheckAvailabilityEV02charOPTNONE

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

mnProcessIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnTransactionIDTCIDMATH_NUMERICOPTNONE

jdPromisedPickDatePDDJJDEDATEOPTNONE

The promised shipment date for either a sales order or purchase order. The Supply and Demand Programs use this date to calculate 
Available to Promise information. This value can be automatically calculated during sales order entry. This date represents the day that the item 
can be shipped from the warehouse.

cDualPickingProcessOptionDPPOcharOPTNONE

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 
processes:   o Picking   o Sales order availability checking   o Committing inventory for sales   o Splitting purchase order lines  To use the 
primary unit of measure, do not choose this option. To use the secondary unit of measure, choose this option.

cDualUnitOfMeasureItemDUALcharOPTNONE

An option that indicates that the system must maintain inventory balances and record transactions for an item in a secondary unit of 
measure that does not have a fixed conversion to the primary unit of measure. Typically, you choose this option when the item is ordered or sold by 
a packaged quantity and priced by weight or volume. Note: For a dual unit of measure item, the system might require a tolerance check for 
inventory transactions (excluding inventory adjustments) between the primary unit of measure and the secondary unit of measure.

mnConverFactorTransToSecondCONVMATH_NUMERICOPTNONE

The factor that the system uses to convert one unit of measure to another unit of measure.

mnUnitsSecondaryQtyOrSQORMATH_NUMERICOPTNONE

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

szItemMasterUOM2UOM2charOPTNONE

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

szSecondaryInputUOM2UOM2charOPTNONE

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

cShipAscendingDateFlagEV01charOPTNONE

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

cCheckExpirationDateEDCKcharOPTNONE

An option that determines whether the system ensures that a lot be shipped in ascending order in relation to other lots that have already 
been shipped. When you choose this option, the system enforces the ship ascending lot rule based on the expiration date to ensure that the lot 
being shipped has an expiration date that is greater than that of the lots that have been previously shipped.

cCheckSellByDateSBCKcharOPTNONE

An option that indicates whether the system ensures that a lot being shipped to a customer is shipped in ascending order by the sell by 
date. If you choose this option, the system ensures that each lot that is being shipped has a sell by date that is greater than or equal to the date 
on which the last lot was shipped.

cCheckBestBeforeDateBBCKcharOPTNONE

An option that specifies whether the system ensures that the lot that you are shipping to a customer has a value in the Best Before Date field 
that is greater than or equal to the value for the last lot that you shipped.

cCommitmentDateMethodCMDMcharOPTNONE

A user defined code (H40/CD) that specifies which date the system uses to commit inventory when an item is committed by date. The 
default value is 01 (lot expiration date). The date fields are stored in the Lot Master table (F4108).

cOnlyIssueWarningSADEV01charOPTNONE

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

szPreferenceScheduleASNcharOPTNONE

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.

szItemPriceGroupPRGRcharOPTNONE

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.

cPreferenceRetrievalUOMCP22charOPTNONE

A code that specifies the unit of measure that the system uses for retrieving advanced preference adjustments during sales order 
processing. The system allows you to define your advanced preference adjustments in the Adjustment Detail table (F4072) in various unit of 
measures.   If you specify the unit of measure for transaction or pricing and the system does not locate a record in that unit of measure, the system 
repeats the process using the primary unit of measure of the item.

cUseAdvancedPreferencesEV01charOPTNONE

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

szFutureUseStringGENSTRcharOPTNONE

Reserved by J.D. Edwards. Generic string data item.

jdOriginalPickDateOPPJJDEDATEOPTNONE

The date on which items are retrieved from inventory.

szPreviousCostCenterMCUcharOPTNONE

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.

szLotGroupLOTGRPcharOPTNONE

Lot Group is the name of a user defined list of allowed non-blank lot status codes.  Entry of a Lot Group name in the Processing Option will 
allow this Application to process lots whose lot status code is defined within the specified Lot Group Name.  

Related Functions

B4000520 Get Item UoM Conversion Factor
B4000780 Get Itm Loc By Commitment
B4002000 Compute Unit Or Extended Amount
B4002060 Preference Get Values For Sales Order
B4002090 GetPreferenceMaster
B4002140 F40071/F40072 Get/Update Cust/Item Group
B4200780 F42UI130 Get/Update Commitment Work File
B4200800 F40073 Get Pricing Preference Hierarchy
B4201200 Preference Commitments By Location Cache

Related Tables

F42UI130 Commitment Work File
absolute; left: 0.500000in">   Y      Indicates whether or

                                                            not a Preference

                                                            Hierarchy was set up

                                                            for Delivery Dates.

FRGD      From Grade                   I   N      If OT1Y = 1 or Y

                                                            from Sales Detail

THGD      Thru Grade                   I   N      If OT1Y = 1 or Y

                                                            from Sales Detail

FRMP      From Potency             I   N      If OT2Y = 1 or Y

                                                            from Sales Detail

THRP      Thru Potency             I   N      If OT2Y = 1 or Y

                                                            from Sales Detail

EXDP      Days Before Expiration       I   N      If OT1Y or OT2Y = Y

                                                            from Sales Detail

PDDJ      Promised Ship Date      I/O   Y      from Sales Detail  If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

RSDJ      Promised Delivery Date      I/O   Y      from Sales Detail  If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

DRQJ      Requested Date             I   Y      from Sales Detail

TRDJ      Order Date                   I   Y      from Sales Detail

MOT      Mode of Transport            I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

ROUT      Route                        I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

CARS      Carrier Code            I/O   Y      from Sales Detail If

                                                            Delivery Dates

                                                            Preference On - this

                                                            value could change.

COMM      Commitment Flag            I/O   Y      Sales Detail

BACK      ItemMasterBackOrderFlag       I   Y

BACK      CustomerBackOrderFlag       I   Y

BACK      SOE Backorder Flag       I   Y      Sales Detail

APTS      Allow Partial Shipments       I   Y      Sales Detail

IVI      Inventory Interface       I   Y      From Line Type Master

                                                            (LFIVI)

EV01      ActionCode                   I   N      1=Edit, 2=Update,

                                                            3=Edit & Update,

                                                            4=Delete from Work

                                                              File.  NOT USED as

                                                              of 8/9/96

EV02      POCommitmentProcessing       I   Y      Value from processing

                                                            option #48.

                                                            1 = do commitment

                                                            2 = notify only

EV03      POPreferenceProcessing       I    Y      Value from processing

                                                            option #69 to use

                                                            preference profile

                                                            defaults.  If this

                                                            P.O. = 1, then If

                                                            Preference set up for

                                                            Delivery Dates - use.

VERS      Version ID                   I    Y      Version of preference

                                                            profile (R40400)

PID      Program ID                   I   N

UPMJ      Today's Date             I   N      Optional. If NULL,

                                                            call GetAuditInfo.

TDAY      Time of Day                   I   N      Optional. If NULL,

                                                            call GetAuditInfo.

USER      User ID                   I    N      Optional. If NULL,

                                                            call GetAuditInfo.

JOBN      WorkStationID             I   N      Optional, If NULL call

                                                            GetAuditInfo.