WriteConfiguratorFilesAtEndDoc

Write Configurator Files at End Doc

Minor Business Rule

Object Name: N3200700

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

This Named ER was originally designed specifically for Sales Order Entry, however after redesign it is open for different options . It writes 

configurator files using the data stored in the configurator caches. It should be called after processing it's cache/work file has been completed.

 

1.2Setup Notes and Prerequisites

• Before using, all choices have been made, all rules processed, all caches loaded.. 
'b7

1.3Special Logic

There is no special logic within this function.


2.Technical Specifications


2.1Parameters:

Common  Parameters:


Data Item DescriptionsI/OReqNotes

DOCOSales Order NumberIN

DCTOSales Order Document TypeIN

KCOOSales Order CompanyIN

JOBSJob NumberIY

EV01ModeIY '1' Adding Sales Order (System 42) '2' - Canceled out of Sales Order (System 42) Note: All other systems use 

mode 1 only 

EV01WebModeI

EV01Store & Forward FlagIO'1' - Store and Forward Mode

SYSystem CodeIY

SFXOOrder SuffixIN

 


2.2Related Tables 

Table Table Description

F3201Configurator Master Table

F3211Configurator Segment Detail

F3215Configurator Component Table

F3216Configurator Price/Cost Table


2.3Related Business Functions

Source NameFunction Name

N3201640UWriteConfigF3216Records

B3201600WriteConfigF3211Records

B3201580WriteConfigF3215Records

N3201500WriteConfigF3201Records

B3200350Cache, Process Segment Values

B3200370Cache, Process All Components

B3200400Cache, Process Price Cost



2.4Processing 


ActionCode=1 (Read First)

CacheCodeErrror = 0

SaveConfigID = 0

If ( Mode is not 2 )

   Determine ProgramID based on System Code

   If System Code == 48 OR 42

      Call X4801 End Document

   End If

   While (CacheCodeErrror == 0)

      Call "CacheProcessConfigurationID" (B3201470)

      Retrieve : Configuration ID Number

      ActionCode=6 (Read Next)

      If (CacheCodeErrror == 0 && SaveConfigID != B3201470.ConfigID)

         Call N3201620 to write Configurator's Zero Records

         SaveConfigID = B3201470.ConfigID

      End If

   End While

   Close cursor for B3201470

   WriteConfigF3201Records (N3201500)

   WriteConfigF3215Records (B3201580)

   WriteConfigF3211Records (B3201600)

   WriteConfigF3216Records (N3201640)

   Terminate Cache:

   Cache, Process Work Order Reatachment (B3201220)

End If

Terminate Caches:

Cache Process  Segment Values (B3200350)

Cache Process All Components (B3200370)

CacheProcessPriceCost  (B3200400)

Cache Process Common Attributes (B3201350)

CacheProcessConfigurationID (B3201470)


Data Structure

D3200700 - Driver to Unload Configurator Caches

Parameter NameData ItemData TypeReq/OptI/O/Both
mnSalesOrderNumberDOCOMATH_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.

mnJobNumberJOBSMATH_NUMERICNONENONE

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

cModeEV01charNONENONE

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

cStoreandForwardFlagEV01charOPTNONE

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

cWebModeEV01charOPTNONE

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

szVersionOfConfiguratorVERScharOPTNONE

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.

szSystemCodeSYcharOPTNONE

A user defined code (98/SY) that identifies a system. Valid values include: 01 Address Book 03B Accounts Receivable 04 Accounts 
Payable 09 General Accounting 11 Multicurrency

szOrderSuffixSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

Related Functions

None

Related Tables

None