1.Functional Description
1.1Purpose
Record updates and deletions made to the Bill of Material. If mode is equal to '2', record Bill of
Material
Change. If Mode is equal to '3', record Bill of Material Deletion.
If the Bill of Material record is being deleted, the record is fetched from within this business
function prior to being deleted from the F3002 table. The deletion is recorded in the F3011 just before
the record is deleted.
If the Bill of Material record is being changed, the modified record is recorded in the Bill of
Material Audit Log (F3011) prior to the record being changed.
1.2Setup Notes and Prerequisites
The setup notes and prerequisites contains information that needs to be provided to the application
developer to successfully use attach the business function. Important prerequisite Business Functions
that need to be run and any additional relevant information (what event points, limitations, data
structure peculiarities) should be detailed.
Use bullet points
'b7
1.3Special Logic
This section should be used when additional logic is used in the Business Function for application
specific functionality or exceptional situations.
2.Technical Specifications
2.4Processing
Edits:
1.0. Clear the Bill of Material Audit Log Record (F3011).
2.0. If Mode is not equal to '2' or Mode is not equal to '3', return error 'Invalid Parameter'.
2.2. If DS SuppressErrorMessages is equal to '1', SetGBRError = '4375'.
2.3. Return
3.0. Get the pointer to the F3002 record using business function VerifyAndGetBillofMaterial
(3000510). Pass the following parameters:
Parent Branch= DS ParentBranch
Parent Item= DS ParentItem(short)
Type of Bill= DS Type of Bill
Batch Quantity= DS Batch Quantity
LineNo= DS Line No
SubstituteItemSequence= DS SubstituteItemSequence
Call Type= '1'
Return Pointer = '1'
Suppress Error Messages = '1'
CoBy Product= DS CoByProduct
ErrorMessageID = B30000510 ErrorMessageID
4.0. If the B30000510 ErrorMessageID is not equal to blanks, return error.
4.2. If DS SuppressErrorMessages is not equal to '1', SetGBRError = B30000510 ErrorMessageID and
highligh DS Line No.
5.0. If Mode is equal to '2', assign F3011 ACTN = 'C'. If Mode is equal to '3', assign F3011 ACTN
= 'D'.
6.0. Copy the F3002 fields from the data structure to the corresponding F3011 fields.
7.0. Retrieve System Date , Time and Workstation ID and User ID using call to B9800100
GetAuditInformation. Assign the current system time and date to the time and date fields in F3011.
8.0. Write the Bill of Material Audit Log Record.
9.0. Free the pointer to the F3002 record retrieved in step 3.0 using BF FreePTRtoDataStructure.
D3000420 - Update BOM Audit Log
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cMode | MODE | char | NONE | NONE |
The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed. | ||||
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
| ||||
mnParentItemShort | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szTypeOfBill | 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.
| ||||
mnBatchQuantityFile | 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
| ||||
mnSubstituteItemSequence | SBNT | MATH_NUMERIC | NONE | NONE |
A number that indicates the sequence for the substitute items for a component.
The system looks for substitute items by this sequence
| ||||
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
| ||||
cCoByProduct | COBY | char | NONE | NONE |
A code that distinguishes standard components or ingredients from co-products,by-products, and intermediates. Co-products are
| ||||
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
| ||||
mnLineNo | 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
|
B3000510 Verify And Get Bill Of Material | ||||
B4000460 Free Ptr To Data Structure | ||||
B9800100 Get Audit Information |
F3011 Bill of Materials Change File |