WriteConfigZeroRecords

WriteConfigZeroRecords

Minor Business Rule

Object Name: N3201620

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
The Business Function will be used  to write "zero" records (CFGID = zero) to F3215 and F3211, based on Cache Job Number and Configuration ID 

Number .

Note: If  Configuration ID Number is unknown (i.e. Bach Mode), use DOCO, DCTO, KCOO, LNID and SY to determine it.
 
1.2Setup Notes and Prerequisites
This function assumes "history" records  have been written (uploaded) to F3211 and F3215 i.e. Batch Mode OR  Configuration ID Number is known 

(following caches are loaded B3201470, B3200370 and B3200350).


1.3Special Logic

None


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes

DOCOOrder NumberIO/RRequired only for Batch Mode (CFGID unknown)

DCTOOrder TypeIO/RRequired only for Batch Mode (CFGID unknown)

KCOOCompany Key Order NoIO/RRequired only for Batch Mode (CFGID unknown)

LNIDLine NumberIO/RRequired only for Batch Mode (CFGID unknown)

SYSystem CodeIO/RRequired only for Batch Mode (CFGID unknown)

SFXOOrder SuffixIO/RRequired only for Batch Mode (CFGID unknown)

CFGIDConfiguration ID NumberIO/RNot required for Batch Mode

JOBSJob NumberIR

EV01BatchModeIR'1' Batch Mode; '0' or ' ' otherwise

PIDProgram IDIO

SUPPSSuppress Error MessageIO

DTAIError Message IDOO



2.2Related Tables 

Table Table Description

F3215Configurator Component Table

F3211Configurator Segment Detail  



2.3Related Business Functions

Source NameFunction Name

B3201570VerifyUinqueConfigIDExists

N3201530Load Segment Values and Component Cache from F3211/F3215

B3201600WriteConfigF3211Records

B3201580WriteConfigF3215Records



2.4Processing

Set Default Values

szErrorMessageID = " "

cUniqueConfigExists = 0

mnConfigIDNumber = BF mnConfigIDNumber


If  mnConfigIDNumber <= 0 && BatchMode ==1

Call N3201410 to get mnConfigIDNumber

End If

If  mnConfigIDNumber > 0

   Call N3201570 to find out if Unique Configuration Exists

    If (cUniqueConfigExists != 1)

       If (BatchMode ==1)

           Call N3201530 to load Components and Segment Caches

       End If

       If No Error

          Call B3201580 to write "zero" records to F3215

          Call B3201600 to write "zero" records to F3211

       Else

           Load Error

       EndIf

       If (BatchMode ==1)

          Terminate Caches

      End If

   EndIf

Else

    Load Error

EndIf


3.2 Where Used: APPs/UBEs/NERs/BSFNs


Application/Business FunctionApplication/BF Name

N3200700Write Configurator Files at End Doc

R4210ZBatch Edit and Creation





Data Structure

D3201620 - WriteConfigZeroRecords

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

szOrderTypeDCTOcharOPTNONE

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

szCompanyKeyOrderNoKCOOcharOPTNONE

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.

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

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.

mnJobnNmberJOBSMATH_NUMERICOPTNONE

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

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.

cBatchModeEV01charOPTNONE

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

szProgramIdPIDcharOPTNONE

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.

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.

Related Functions

None

Related Tables

None