AccessF1300

F1300 Access

Minor Business Rule

Object Name: B1300001

Parent DLL: CMFG

Location: Client/Server

Language: C

Functional Description

Purpose

Maintain the Equipment Constants table, F1300. Single record update/insert or fetch F1300
information.


Setup Notes and Prerequisites

The Table has no real primary unique key. There should only be one record in the table.


Special Logic

Use the action code "2" - Change Existing Record or "4" - Inquire Into Existing Record. 

The action code of "4" should fetch the single record from the F1200 and place the record information 

into the data structure.

The action code of "2" should fetch the single record from the F1200

   if no record exits then

Insert a new record with information from data structure

   else

Update the current record with information from data structure

Set the ErrorCode = 1 or 2 for errors, else return ErrorCode = 0.




Technical Specification




ErrorCode = 0
Open table F1300
  If (F1300 Open == Success)

      If (ActionCode = 4)

          Fetch F1300

          InclusionVersion = F1300.f9mver

DefaultCostInformation = F1300.f9eqf1

EquipmentFutureConstant = F1300.f9eqf2
EquipmentFutureConstant = F1300.f9eqf3

EquipmentFutureConstant = F1300.f9eqf4

EquipmentFutureConstant = F1300.f9eqf5

EquipmentFutureConstant = F1300.f9eqf6

EquipmentFutureConstant = F1300.f9eqf7

EquipmentFutureConstant = F1300.f9eqf8

      If (ActionCode = 2)

              Fetch F1300

F1300.f9mver = InclusionVersion 

F1300.f9eqf1 = DefaultCostInformation

F1300.f9eqf2 = EquipmentFutureConstant
F1300.f9eqf3 = EquipmentFutureConstant

F1300.f9eqf4 = EquipmentFutureConstant

F1300.f9eqf5 = EquipmentFutureConstant

F1300.f9eqf6 = EquipmentFutureConstant

F1300.f9eqf7 = EquipmentFutureConstant

F1300.f9eqf8 = EquipmentFutureConstant

If (Fetch Success)

Update F1300

else

Insert F1300

      Close Table F1300

If (Fetch Error) 

ErrorCode = 1

If (Open Error)

ErrorCode = 2




^

Data Structure

D1300001 - Access F1300 Table

Parameter NameData ItemData TypeReq/OptI/O/Both
cActionCodeACTNcharNONENONE

2-Update/Insert  4-Fetchab 

^

szInclusionVersionMVERcharNONENONE

A user defined code (40/RV) that identifies an inclusion rule that you want the system to use for this branch/plant. The Manufacturing and 
Warehouse Management systems use inclusion rules as follows:     o For Manufacturing:        Allows multiple versions of resource rules for 
running MPS, MRP, or DRP.     o For Warehouse Management:        Allows multiple versions of inclusion rules for running putaway and picking. The 
system processes only those order lines that match the inclusion rule for a specified branch/plant.

cDefaultCostInformationEQF1charNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

cEquipmentFutureConstant2EQF2charNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

cEquipmentFutureConstant3EQF3charNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

cEquipmentFutureConstant4EQF4charNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

cEquipmentFutureConstant5EQF5charNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

mnEquipmentFutureConstant6EQF6MATH_NUMERICNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

mnEquipmentFutureConstant7EQF7MATH_NUMERICNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

mnEquipmentFutureConstant8EQF8MATH_NUMERICNONENONE

This is a system constant that is reserved for future use by the Equipment Management system.

cErrorCodeEV01charNONENONE

Return: 1 for Fetch Error, 2 for Open Table Error, or 0 for no Errors 
^

cWODetailedRecordTypeTYPRcharNONENONE

The detail specification record type. Record types are user defined. You can set them up on the Detail Specification Types form and use 
them to describe certain types of work order or engineering change order information.

Related Functions

None

Related Tables

F1300 Equipment Constants