UpdateAddDeleteTestResults

Update Add Delete Test Results

Major Business Rule

Object Name: N3700180

Parent DLL: CMFG

Location: Client/Server

Language: NER

Purpose:
To read the cache loaded by Test Results (P3711) or Batch Test Results (R3711Z1I) and add, update or 
delete the records into F3711.  Also, if processing option is set any failed test results will be 

written to the Nonconforming Products file (F3703).


Setup Notes:

• This function is called from the MBF (N3700150)
• The Test Results cache must be loaded before this function is called.

Special Logic:

• none

Processing:

Read Test Results cache one record at a time.


If action code = A (Add) 

If the Nonconforming Processing Option = 1

If Pass/Fail flag = F (Fail) 

Write failed record to F3703

End

End

Write new record to F3711

End


If action code  = C (Change)

If the Nonconforming Processing Option = 1

If Pass/Fail flag = F (Fail) 

Write failed record to F3703

End

End

Update record to F3711

End


If action code = D (Delete) 

Delete record from F3711.

End



^

Data Structure

D3700180 - F3711 Update Add Delete Test Results

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobnumberAJOBSMATH_NUMERICOPTNONE

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

cSupressErrorMessageEV01charOPTNONE

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.

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.

cWriteNonconformingEV01charOPTNONE

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

cCopyGenericTextEV01charOPTNONE

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

cPOSysSampNumFlg_EV01EV01charOPTNONE

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

Related Functions

None

Related Tables

None