1.Functional Description
1.1Purpose
The purpose of this business function is to delete records from the Bill of Material or delete the
entire Bill of Material. Selected records for the Bill of Material are deleted.. The Component
Locators and Substitute Items associated to the Bill of Material records are also deleted. The MRP net
change flag is updated. If the Bill of Material updates are being logged, the deletion of the bill of
material records will be recorded in the audit log.
1.2Setup Notes and Prerequisites
When a component is deleted from the Bill of Material, all Substitute Items and Compoent Locators
associcated to that item are also deleted.
To Delete all lines of a Bill of Material pass the following fields:
Parent Item
Type of Bill
Batch Quantity.
Parent Item
Type of Bill
Batch Quantity
Line No.
1.3Special Logic
2.Technical Specifications
2.4Processing
0.0. Initialize Work Fields.
WK cNetChangeFlag = '0'
cCOBY= ' '
1.0. Determine value of MRP Net Change Flag using BF GetItemBranchMfgData.
GetItemBranchMfgData
DS ParentItem>ItemNumber
DS ParentBranch(MMCU)>Branch
WK NetChangeFlag<NetChangFlag
'1'>SuppressErrorMessages
2.0. Select Bill of Material Records
whereMMCU =DS ParentBranch
KIT=DS ParentItem
TBM=DS BillType
BQTY=DS BatchQuantity
COBY=blanks
3.0. If DS Line Number is not equal to NULL or ZERO, select Bill of Material Records where CPNT = DS
Line No.
4.0. Process selected records from F3002 until fetch fails.
4.0. Reset work fields.
WK TextLine = 'N'
WK IsLineTextLine = '0'
5.0. Retrieve Line Type Constants using BF GetLineTypeConstants.
GetLineTypeConstants
F3002 LineType (LNTY)>LineType
WK TextLine<TextLine
'1'>SuppressErrorMessages
6.0. If F3002 LineType is equal to 'T' or WK TextLine = 'Y', then the line WK IsLineTextLine = '1'.
UpdateF4102NetChg.
F3002 ParentItem(KIT)>Item Number
F3002 ParentBranch(MMCU)>Branch
'1'>MRPNetChangeFlag
DS Program Id>Program ID
Assign WK Net Chang Flag = '1'
8.0. If F3002 SubstituteItemSequence (SBNT) is equal to 0, Delete Component Locators using BF
DeleteComponentLocators.
DeleteComponentLocators
F3002 ParentBranch (MMCU)>ParentBranch
F3002 ParentItemShort(KIT)>ParentItemShort
F3002 ItemNumber(ITM)>ComponentShort
F3002 LineNo(CPNT)>ComponentLineNo
F3002 EffectiveFrom (EFFF)>EffectiveFrom
F3002 EffectiveThru (EFFT)>EffectiveThru
9.0. If bill of material changes are being logged (DS Log BillofMaterial = '1' or 'Y'), update the
bill of material audit log using BF UpdateBOMAuditLog.
UpdateBOMAuditLog
'3'>Mode
F3002 ParentBranch(MMCU)>ParentBranch
F3002 ParentItem(KIT)>ParentItem
F3002 TypeofBill(TBM)>TypeofBill
F3002 BatchQuantity(BQTY)>BatchQuantityFile
F3002 LineNo(CPNT)>LineNo
F3002 SubstituteItemSequence(SBNT)>SubstituteItemSequence
'1'>SuppressErrorMessages
WK ErrorMessageID>ErrorMessageID
10.0. Delete the record from the Bill of Material Table.
^
D3001220 - Delete Bill of Material Data Structure
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szParentBranch | MMCU | char | NONE | NONE |
A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which
| ||||
mnParentItem | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szBillType | TBM | char | NONE | NONE |
A user defined code (40/TB) that designates the type of bill of material. You can define different types of bills of material for different uses.
| ||||
mnBatchQuantity | BQTY | MATH_NUMERIC | NONE | NONE |
The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components
| ||||
cLogBillOfMaterial | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szProgramId | PID | char | NONE | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
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
| ||||
mnLineNumber | CPNB | MATH_NUMERIC | OPT | NONE |
A number that specifies how the system displays the sequence of components on a single-level bill of material. This number initially
|
B3000410 Delete Component Locator | ||||
B3000420 Update BOM Audit Log | ||||
B4000260 Line Type - Activity Rules | ||||
B4000920 Get Item Branch Mfg Data | ||||
B4000930 Update F4102 MRP Net Chg |
F3002 Bill of Material Master File |