1.Functional Description
This business function reads the Work Order for a given Order Number, optionally saves the data
related to the Work Order from Parts List, Routing, Approval, Time Transactions, Remarks, and WO Lot/Serial
Numbers tables into save tables, and deletes the data from the regular tables.
1.1Purpose
To Purge data related to a particular order.
1.2Setup Notes and Prerequisites
None.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
The following actions have to be performed by the Business Function.
1. Open Tables
Open the Regular tables (F4801, F3111, F3112, F31122, F4828, F4802, F3105)
If any error, Exit with Error Code = '1' and Error Message = '3143'
If Save flag = '1'
Open the Save tables (F4801S, F3111S, F3112S, F31122S, F4828S, F4802S, F3105S)
If any error, Exit with Error Code = '1' and Error Message = '3143'
End If
2. Update the User Index
Read F4801 using Order Number as the key
If found
Do While not EOF
Read records from F4802 using WADOCO as key
If found
If PO Save flag = '1'
Save records into F4802S
End If
Delete F4802 record
End If
End Do
Do While not EOF
Read records from F3111 using WADOCO as key
If found
If PO Save flag = '1'
Save records into F3111S
End If
Delete F3111 record
End If
End Do
Do While not EOF
Read records from F3112 using WADOCO as key
If found
If PO Save flag = '1'
Save records into F3112S
End If
Delete F3112 record
End If
End Do
Do While not EOF
Read records from F4828 using WADOCO as key
If found
If PO Save flag = '1'
Save records into F4828S
End If
Delete F4828 record
End If
End Do
Do While not EOF
Read records from F3105 using WADOCO, WADCTO, and WAMMCU
If found
If PO Save flag = '1'
Save records into F3105S
End If
Delete F3105 record
End If
End Do
Do While not EOF
Read records from F31122 using WADOCO and WTYST (= ' ' or 'P' ) as key
If found
If PO Save flag = '1'
Get and Load next unique Id from F31122S
Save records into F31122S
End If
Delete F31122 record
End If
End Do
If PO Save Flag = '1'
Save Data in F4801S
End If
Delete F4801 record
End If
D3101030 - Purge Work Order Data
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
cSaveFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMsg | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cErrorcode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
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
|
None |
F3111 Work Order Parts List | ||||
F3111S Purge - Shop Floor Parts List | ||||
F3112 Work Order Routing | ||||
F31122 Work Order Time Transactions | ||||
F31122S Purge Work Order Time Transactions | ||||
F3112S Purge Shop Floor Control Routing Instructions | ||||
F4801 Work Order Master File | ||||
F4801S Purge - Work Order Master file | ||||
F4801ST Purge - Work Order Master Tag File | ||||
F4801T Work Order Master Tag File | ||||
F4802 Work Order Instructions File | ||||
F4802S Purge Work Order Instructions |