F3294ZLoadAndUnloadSegmentsCache

F3211 Load Segments Cache

Minor Business Rule

Object Name: N3201060

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

This program reads records from F3211  Batch Segments Values and F3291 Configured Item Segments, and loads Segments Cache. 


1.2Setup Notes and Prerequisites

The calling application is responsible for loading all appropriate key values to the data structure and identifying the mode.  


1.3Special Logic
There is no special logic within this function.



2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes EV01 cValidateEnables segment validationI EV01 cSuppressErrorsSuppress Error 

MessagingI DTAI szErrorMessageIDError Message IDO DOCO mnOrderNumberSales Order NumberIYes DCTO szOrderTypeSales Order Document 

TypeIYes KCOO szOrderCompanySales Order Key CompanyIYes LNID mnParentLineSales Order Line of the ParentIYes ITM mnItemNumberConfigured Item 

NumberINot used for B9 MCU szBranchConfigured Item BranchINot used for B9 ATSQ szConfigSequenceConfigurator Sequence No.INot used for 

B9 JOBS mnCacheJobCache Control NumberIYes LNID mnLine_ToCacheLine No. to load to cacheIServer line number override GENLNG 

idPPAT_ErrorError messaging group IDI CTID szUser_ErrorMsgError messaging User IDI CFGIDConfigurationID #IYesStore and Forward Orig. 

Config. CFGIDNewConfigurationID #IYes

2.2Related Tables 


File NameFile DescriptionPrimary/SecondaryInput/Update/Output F3291Configured Item SegmentsPrimaryI F3211Batch Segments 

ValuesPrimaryI/U/O


2.3Related Business Functions

Source NameFunction Name None.



2.4Processing 


Select from F3211 records matching key (Config. ID#)

If Select was successful
cExists = 1

While (cExists ==1)

F3211.Fetch Next

Save Segment # , Segment Value and Component ID

If  F3211Z1.Fetch fails

cExists = 0

Else

F3215.Fetch Single to get ShortNumber and Branch Plant

F3291.Fetch Single using ShortNumber, Branch Plant

If F3291.Fetch fails

cExists = 0

cTempCode = 5

ErrorMsgID = 2833

Else

If the validate segments option is set

                    Validate the segment answer for:

Numeric Y/N
Ranges

UDC table lookup

Required Segment

If cTempCode > zero

ErrorMsgID = f(cTempCode)

End If

End If Segment Validation
If  ErrorMsgID is not equal 

cExists = 0

Else
If  cExists = 1
Insert record to Segment Values (B3200350)

End If

If ErrorMsgID is less than or equal 

cTempCode = 9

cExists = 0

End If

End If  ErrorMsgID

End If  F3291.Fetch
End If  F3211Z1.Fetch

End While

End If

If BF szErrorMessageID is greater than 

Call N3201080 (Configurator Format Batch Error Message)

End If





3.2 Where Used: APPs/UBEs/NERs/BSFNs

ApplicationApplication Name N3200700Write Configurator Files at End Doc N3201090Configurator Batch Processing

Data Structure

D3201060 - F3211 Load Segment Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
cValidateSegmentsEV01charNONENONE

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

cSuppressErrorMessagesEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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.

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.

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

mnItemNumberITMMATH_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

szItemBranchMCUcharNONENONE

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.

mnCacheJobNumberJOBSMATH_NUMERICNONENONE

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

szConfiguratorSequenceNumbATSQcharNONENONE

Reserved by J.D. Edwards A string that is generated to uniquely identify and sequence items in a configuration.

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

idPPAT_MsgPtrGENLNGIDNONENONE

General purpose ID variable.

szUser_ErrorMsgCTIDcharNONENONE

mnConfigurationIDNumberCFGIDMATH_NUMERICOPTNONE

An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables.

mnNewConfigurationIDNumberCFGIDMATH_NUMERICOPTNONE

An identifier that represents a unique configuration. It is generated by a next number value and is the key to the configuration tables.

Related Functions

None

Related Tables

None