LoadConfigurationCache

LoadConfigurationCache

Minor Business Rule

Object Name: N3201670

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
The Business Function will be used  to load Configuration  Cache from F3201 table.
Note: New Configuration ID (when > 0) is used to override Configuration ID

          when saving  a cache record.

          If New Configuration ID > 0 than   New Company Key, New Document Order,

                         New Order Type and New Line Number are required, too. 
1.2Setup Notes and Prerequisites

This function assumes F3201 contains records for particular Configuration ID.

1.3Special Logic

None

2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
CFGIDConfiguration IDIR

CFGCIDComponent IDIOLoading this filed will limit selection from F3201

JOBSCache Job NumberIR

CFGIDNew Configuration IDIO/RTo be loaded when duplicating existing Configuration into a New One

KCOONew Company KeyIO/RRequired when New Configuration ID > 0

DOCONew Document OrderIO/RRequired when New Configuration ID > 0

DCTONew Order TypeIO/RRequired when New Configuration ID > 0

LNIDNew Line NumberIO/RRequired when New Configuration ID > 0

SUPPSSuppress Error MessageIO

DTAIError Message IDOO



2.2Related Tables 

Table Table Description
F3201Configurator Master Table



2.3Related Business Functions

Source NameFunction Name
B3201470CacheProcessConfigurationID 



2.4Processing

Set Default Values

szErrorMessageID =  

If  (BF JobNumber <=0 OR BF ConfigIDNumber <= 0)

   Load Error 032E

Else

   If (BF NewConfigIDNumber > 0)

      ConfigIDNumber = BF NewConfigIDNumber

       If BF NewCompanyKey <= BLANK

       OR BF NewDocumentOrder <= ZERO

       OR BF NewOrderType <= BLANK

       OR BF NewLineNumber <= ZERO

            Load Errror 0003

       End If

   Else

      ConfigIDNumber = BF ConfigIDNumber

   End If

   If (BF Component ID <= 0)

       Select from F3201 using CFGID only

   Else

      Select from F3201 using CFGID and CFGCID

   End If 

    If Select was successful

       MoreRecords = 1

       While (MoreRecords == 1)

           F3216.FetchNext

           If (Fetch was successful)

               If (BF NewConfigIDNumber > 0)

                  CompanyKey = BF NewCompanyKey

                   DocoumentOrder = BF NewDocumentOrder

                   OrderType = BF NewOrderType

                   LineNumber = BF NewLineNumber  

               End If

              Call B3201470 to save a cache record

               If  Cache Error != 0

                  Load Error 078O

               End If

           Else

               MoreRecords = 0

           End If

       End while

    Else

       Load Error 078D 

    End If

End If


3.2 Where Used: APPs/UBEs/NERs/BSFNs


Application/Business FunctionApplication/BF Name




Data Structure

D3201670 - LoadConfigurationCache

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

mnComponentIDNumberCFGCIDMATH_NUMERICOPTNONE

A number that represents a component in a configuration. This number, which is generated by next numbers, always restarts at 1 and 
increments, based on the number of components in the configuration.

mnJobNumberJOBSMATH_NUMERICOPTNONE

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

mnNewConfigurationIDNumbeCFGIDMATH_NUMERICOPTNONE

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

szNewCompanyKeyKCOOcharOPTNONE

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.

mnNewDocumentOrderDOCOMATH_NUMERICOPTNONE

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.

szNewOrderTypeDCTOcharOPTNONE

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

mnNewLineNumberLNIDMATH_NUMERICOPTNONE

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.

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharOPTNONE

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.

mnLastLineNumberXREFLNIXMATH_NUMERICOPTNONE

cCopyModeEV01charOPTNONE

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

Related Functions

None

Related Tables

None