AddARowToPartsListTable

AddARowToPartsListTable

Minor Business Rule

Object Name: B3100630

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
To add records to the Shop Floor Control Parts List (F3111).

1.2Setup Notes and Prerequisites

• Set on "Suppress Error Messages" to suppress the runtime error message handling. Otherwise, if an 
error occurs the error message will be displayed on the message line.

'b7The file pointer to the original F3111 record (GENLNG) will be used to retrieve information to 

be copied to the new F3111 record.

'b7The Mode will determine which information will be copied from the original F3111 record, and 

the values to be updated from the designated update fields.



1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


Use the File Pointer to retrieve the Shop Floor Control Parts List Record entered by the user..  
If allocation of memory for the File Pointer fails, Error Message ID is assigned '4365' (No Memory.  

If the DS Suppress Error Message is not equal to '1', SetGBRError where error message is '4365' (No 

Memory ).

If the File Pointer is not NULL and Mode is '1':

Initialize the new Parts List record.
Update the new Parts List record with the values from the following fields from the original Parts 

List record.

DOCO, DCTO, SFXO, MTBM, FORQ, ITC, COBY, COTY, RKCO, OPSQ, RSCP, SCRP, REWP, 

ASIP, CPYP, STPP, LOVD, CMCU, AN8, LNTY, TRDJ, DRQJ, EA, RTG, MCU, CMRV, COMM, 

URCD, URDT, URAT, URRF, URAB.

Calculate the component line number 'CPNT' for the new Parts List record by adding 10 to the 

to the component line number from the original Parts List record. (NOTE: this field is currently 

calculated by using a data dictionary value to increment the original value)

Calculate the bubble sequence 'BSEQ' for the new Parts List record by adding 1 to the bubble 
sequence from the original Parts List record.

Call Get MFG Unique ID (B3100490) to retrieve the unique key ID 'UKID' for the new Parts List 

record.

Update the new Parts List record with the values of the "update"  fields passed in for Mode 1.


Returns:

If the Mode is equal to '1' and the Memory Allocation fails, return Error Message ID '4365' (No 
Memory).


^

Data Structure

D3100630 - AddARowToPartsListTable

Parameter NameData ItemData TypeReq/OptI/O/Both
idFilePointerF3111GENLNGIDNONENONE

General purpose ID variable.

cModeMODEcharNONENONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

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.

mnComponentItemNoShortCPITMATH_NUMERICNONENONE

The short identifier for the component item number.

szComponentItemNo2ndCPILcharNONENONE

The system provides three separate item numbers. They are:    1. Item Number (short) - An eight digit, computer assigned, completely 
non-significant item number.    2. 2nd Item Number - The 25 digit, free form, user defined alphanumeric item number.    3. 3rd Item Number - Another 
25 digit, free form, user defined alphanumeric item number. The system has an extensive cross-reference search capability (see XRT). You 
can define numerous cross references to alternate part numbers to accomodate substitute item numbers, replacements, bar codes, customer 
numbers, or supplier numbers.

szComponentThirdNumberCPIAcharNONENONE

The system provides three separate item numbers plus an extensive cross reference capability to alternate item numbers. These item 
numbers are as follows:    1. Item Number (short) - An eight digit, computer assigned, completely non-significant item number.    2. 2nd Item Number 
- The 25 digit, free form, user defined alphanumeric item number.    3. 3rd Item Number - Another 25 digit, free form, user defined 
alphanumeric item number. In addition to these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT).  
Numerous cross references to alternate part numbers can be user defined (e.g. substitute item numbers, replacements, bar codes, 
customer numbers, or supplier numbers).

szDescriptionDSC1charNONENONE

Brief information about an item; a remark or an explanation.

szDescription2DSC2charNONENONE

A second, 30-character description, remark, or explanation.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

mnQuantityOrderedUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

szUnitOfMeasureUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szUserIDUSERcharNONENONE

The code that identifies a user profile.

szProgramIDPIDcharNONENONE

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.

szWorkstationIDJOBNcharNONENONE

The code that identifies the work station ID that executed a particular job.

jdDateUpdatedUPMJJDEDATENONENONE

The date that specifies the last update to the file record.

mnTimeOfDayTDAYMATH_NUMERICNONENONE

The computer clock in hours:minutes:seconds.

szLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

mnUnitsQuanBackOrHeldSOBKMATH_NUMERICNONENONE

The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of 
measure defined for this item.

cCommittedHSCOMMcharNONENONE

A value that indicates whether you specified from which Location and Lot a particular item was to come. If you specified a storage area, the 
program assigns a Hard (H) commit, and subsequent programs will not determine which Location and Lot to use to satisfy the order line. If 
you did not specify a storage area, the program assigns a Soft (S) commit and attempts to determine which Location and Lot records can best 
satisfy the order line quantity. Valid codes are:    S Soft Committed,    H Hard Committed    C Hard Committed by Commitment Program    K Kit 
Master Line (No Commitment)    N Work Order (No Commitment)

Related Functions

B3100490 Get Next Unique ID For Mfg.

Related Tables

F3111 Work Order Parts List