1.Functional Description
1.1Purpose
This program replaces the data entry process for the configurator.  It is called from Sales Order Batch Transaction Processor (R4210Z) once for each 
configured parent.  It creates cache records that are later used by Sales EndDoc and the Write Cofigurator Files at End Doc business functions to 
create transaction file records.
For each configured component, the segments are loaded from F3211, and derived calculation rules are processed.  At this point, the segment values 
are tested against the Cross Segment Editing Rules.
In the event that errors are produced (indicating that the segments and/or rules have changed since the last client update), Agent Message Center 
entries (PPAT) are sent.  
Cross Segment Editing can produce "optional" errors, which are treated as warnings.  These will be ignored, but other errors  must terminate 
processing.  If the processing is terminated, the sales transaction is rejected and held for later review.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
MCU szBranchConfigured Item BranchIYes
DOCO mnOrderNumber_BatchSales Order 
NumberIYes
DOCO mnOrderNumber_NewSales Order Number NewIYes
DCTO szOrderType_BatchSales Order Document TypeIYes
DCTO 
szOrderType_NewSales Order Document Type NewIYes
KCOO szOrderCompany_BatchSales Order Key CompanyIYes
KCOO szOrderCompany_NewSales Order 
Key Company NewIYes
LNID mnParentLine_BatchSales Order Line of the ParentIYes
LNID mnParentLine_NewSales Order Line of the Parent 
NewIYes
UORG mnUnitsTransactionQtySales Order Quantity OrderedIYes
SOCN mnUnitsCancelledSales Order Quantity CancelledI
UOM 
szUnitOfMeasureAsInputSales Transaction Unit of MeasureIYes
LOCN szLocInventory LocationO
AN8 mnAddressNumberSold To Address NumberIYes
LOTN 
szLotInventory Lot NumberO
LNTY szLineTypeParent Item Line TypeI/OYesChanges for Inventory
AEXP mnExtendedPriceDomestic Extended PriceI/O
ECST 
mnExtendedCostDomestic Extended CostI/O
CRYR CurrencyConversionModeSales Order Conversion Mode YNARIYes
CRCD szCurrencyCodeFromForeign 
Currency CodeIYes
DRQJ jdDateRequestedSales Order Request DateIYes
PDDJ jdPromisedDeliveryDateSales Order Promise DateIYes
JOBN 
szWorkStationIDWorkstation ID (Audit Info)I
JOBS JobNumberACache Control NumberIYesNon-Zero
VERS szSalesOrderEntryVersionSales Order Entry 
Version for EditLineIYes
EV03 mnLastLineNumberAssignedLast LNID assigned by EditLineI/OYes
EV01 cSuppressBatchErrorsSuppress Agent 
Message Center ErrorsI
DTAI szErrorMessageIDReturned Error MessageO
ERRC cErrorCodeSingle Character Error CodeO
OTOT 
AmountOrderGrossRunning Order TotalI/O
FAP ForeignOrderGrossRunning Order Total in ForeignI/O
PMTH KitPricingMethodDetermines Rollup MethodIYes
UORG 
mnUnitsInventoryAppliedInventory Quantity AppliedO
GENLNG idPPAT_MsgPtrPointer to Agent MessagesIYes
FEA ForeignExtendedPriceParent Line 
Foreign Extended PriceI/O
FEC ForeignExtendedCostParent Line Foreign Extended CostI/O
CTID szUserID_ErrorMsgAgent Message Center User 
IDIYes
CTID szComputerIDAgent Message Center Computer IDIYes
EV01 cSplitInventoryModeEnables Inventory SplitI'1' to Enable 
KIT  
mnItemNumberShortKitParent Short Item NumberI
LNIX  mnLastLineNumberAssignedLast Line Number AssignedI
RSDJ  jdSchedulePickDateScheduled Pick Up 
DateI
PEFJ  jdDatePriceEffectiveDatePrice Effective DateI
MATH02  mnWKRelatedOrderProcessI
SY  szSystemCodeSystem CodeIYes
2.2Related Tables 
Table Table Description
F3211Z1Configurator Batch Segments
2.3Related Business Functions
Source NameFunction Name
N3201500ConfigLoadUnloadSegmentsCache
N3201080Config Batch Error Messages
N3201110Batch Inventory 
Selection
2.4Processing 
Set variables to defaults
Call N3201410 to get Configuration ID to start with 
If ConfigID > 0
   Call B3201450 to get NewCofigurationID
   If NewCofigurationID > 0
      Call N3201060 to load Segemnt Value Cache (B3200350)
         If BF Error Message == BLANK
            cOuterWhileLoopDone = 0
            While cOuterWhileLoopDone == 0 
               Call Evaluate and Process AIR (B3200460) to evaluate and process C-Rules
If BF Error Message == BLANK
   Call Evaluate CSE Rules (B3200440)
   If  CSETest failed
      Load BF Error Message
   End If
   If  cOuterWhileLoopDone == 0
       Call F3293 Process AIR (N3200670) for remaining Assembly Inclusion Rules
       If  cOuterWhileLoopDone == 0
          If cCacheActionCode == 1
 Call B3200370 to read first record
          End If
          CCacheActionCode = 6
          Call B3200370 to read next record
       End If
    End If
End If
           Close cursor for B3200370
         End If
   End If
End If
If BF BF Error Message <= BLANK And EVT Error Message <= BLANK
   Call B3200600 (Mode 1) to create CFGSIDs and update B3200370 Cache
   Call B3201650 to roll up prices and cost
   Call B3200790 to load B3201470 Cache and to call Edit Line
Else
   Call Configurator Format Batch Error Message  (Store & Forward) N3201080
End If
ApplicationApplication Name
R4210Z
R40211Z
D3201090 - Configurator Batch Processing
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| mnItemNumberShortKit | KIT | MATH_NUMERIC | NONE | NONE | 
The system provides for three separate item numbers.
   1.   Item Number (short) - An eight-digit, computer assigned, completely 
  | ||||
| szBranchPlant | MCU | char | NONE | NONE | 
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
  | ||||
| mnSalesOrderNumber_Batch | 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, 
  | ||||
| mnSalesOrderNumber_New | 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_Batch | 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 
  | ||||
| szOrderType_New | 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 
  | ||||
| szCompanyKeyOrder_Batch | 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 
  | ||||
| szCompanyKeyOrder_New | 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 
  | ||||
| mnParentLineNumber_Batch | LNID | MATH_NUMERIC | NONE | NONE | 
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
  | ||||
| mnParentLineNumber_New | LNID | MATH_NUMERIC | NONE | NONE | 
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
  | ||||
| mnUnitsTransactionQty | UORG | MATH_NUMERIC | NONE | NONE | 
The quantity of units affected by this transaction.  | ||||
| mnUnitsQuantityCanceled | 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 
  | ||||
| szUnitOfMeasureAsInput | UOM | char | NONE | NONE | 
A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).  | ||||
| szLocation | LOCN | char | NONE | NONE | 
The storage location from which goods will be moved.  | ||||
| mnAddressNumber | AN8 | MATH_NUMERIC | NONE | NONE | 
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
  | ||||
| szLot | LOTN | char | NONE | NONE | 
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.  | ||||
| szLineType | LNTY | char | NONE | NONE | 
A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
  | ||||
| mnAmountExtendedPrice | AEXP | MATH_NUMERIC | NONE | NONE | 
The number of units multiplied by the unit price.  | ||||
| mnAmountExtendedCost | ECST | MATH_NUMERIC | NONE | NONE | 
For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
  | ||||
| cCurrencyConverYNAR | CRYR | char | NONE | NONE | 
A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use:
Codes are:
   N Do not 
  | ||||
| szCurrencyCodeFrom | CRCD | char | NONE | NONE | 
A code that identifies the currency of a transaction.  | ||||
| jdDateRequestedJulian | DRQJ | JDEDATE | NONE | NONE | 
The date that an item is scheduled to arrive or that an action is scheduled for completion.  | ||||
| jdPromisedDeliveryDate | PDDJ | JDEDATE | NONE | NONE | 
The promised shipment date for either a sales order or purchase order. The Supply and Demand Programs use this date to calculate 
  | ||||
| szWorkStationId | JOBN | char | NONE | NONE | 
The code that identifies the work station ID that executed a particular job.  | ||||
| mnJobnumberA | JOBS | MATH_NUMERIC | NONE | NONE | 
The job number (work station ID) which executed the particular job.  | ||||
| szSalesOrderEntryVersion | VERS | char | NONE | NONE | 
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 
  | ||||
| cUseCacheInEditLine | EV03 | char | NONE | NONE | 
A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
  | ||||
| mnLastLineNumberAssigned | LNIX | MATH_NUMERIC | NONE | NONE | 
| cSuppressBatchErrorMessages | EV01 | char | NONE | NONE | 
An option that specifies the type of processing for an event.  | ||||
| szErrorMessageID | DTAI | char | NONE | 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 
  | ||||
| cErrorCode | ERRC | char | NONE | NONE | 
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
  | ||||
| mnAmountOrderGross | OTOT | MATH_NUMERIC | NONE | NONE | 
The total value of all lines on the order that have not been shipped and billed to the customer.  | ||||
| mnAmountForeignOrderGross | FAP | MATH_NUMERIC | NONE | NONE | 
The unpaid foreign amount of a transaction.  | ||||
| cMethodPriceCalculation | PMTH | char | NONE | NONE | 
A code that determines how the system calculates the price for kit items or configured items. Valid values are:
Blank
Use for items that are 
  | ||||
| mnUnitsInInventoryApplied | UORG | MATH_NUMERIC | NONE | NONE | 
The quantity of units affected by this transaction.  | ||||
| idPPAT_MsgPtr | GENLNG | ID | NONE | NONE | 
General purpose ID variable.  | ||||
| mnAmountForeignExtPrice | FEA | MATH_NUMERIC | NONE | NONE | 
The product of the foreign price times the number of units.  | ||||
| mnAmountForeignExtCost | FEC | MATH_NUMERIC | NONE | NONE | 
The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units.  | ||||
| szUserID_ErrorMsg | CTID | char | NONE | NONE | 
| szComputerID | CTID | char | NONE | NONE | 
| cMode_SplitInventory | EV01 | char | NONE | NONE | 
An option that specifies the type of processing for an event.  | ||||
| jdSchedulePickDate | RSDJ | JDEDATE | OPT | NONE | 
The date an item will be delivered to the customer.  | ||||
| jdDatePriceEffectiveDate | PEFJ | JDEDATE | OPT | NONE | 
The system uses the Price Effective Date to determine the base price and all advanced price adjustments.  The value loaded in this date 
  | ||||
| mnWKRelatedOrderProcess | MATH02 | MATH_NUMERIC | OPT | NONE | 
- - - Good Performance High Value.  | ||||
| szRevenueBusinessUnit | EMCU | char | OPT | NONE | 
A business unit is an accounting entity required for management reporting. It can be a profit center, department, warehouse location, job, 
  | ||||
| szSystemCode | SY | char | OPT | NONE | 
A user defined code (98/SY) that identifies a system. Valid values include:
01
Address Book
03B
Accounts Receivable
04
Accounts 
  | ||||
| mnProcessID | DEID | MATH_NUMERIC | OPT | NONE | 
A system-generated number that identifies a demand record.  | ||||
| mnTransactionID | TCID | MATH_NUMERIC | OPT | NONE | 
| szProgramID | PID | char | OPT | NONE | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
  | ||||
| mncacheKeyIndexWO | LNIX | MATH_NUMERIC | OPT | NONE | 
| mnParentCMLineNum_XLIN | XLIN | MATH_NUMERIC | OPT | NONE | 
Line number.  | ||||
| cActionCodeForEditLine | ACTN | char | OPT | NONE | 
A code that specifies the action that is performed. Valid values are: A Add C Change  | ||||
| mnPendingConfigurationID | CFGID | MATH_NUMERIC | OPT | NONE | 
An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables.  | ||||
| None | 
| None |