Functional Description
Purpose
To perform all editing required for Equipment in regards to the X4801. Do not call these functions directly. The information contained in this
document is for debugging and X4801 setup purposes only.
Setup Notes and Prerequisites
These functions are called ONLY from X4801.
X4801 Edit Line calls X4801 EQ Edit Line Module to perform all equipment editing
X4801 End Doc calls X4801 EQ End Doc Module to perform related table updates
X4801 Clear Work File calls X4801 EQ Terminate Module to close all tables opened and cache created
by B4800220
Special Logic
Technical Specification
Related Tables
Table Table Description
F0006Cost Center Master
F4311Purchase Order Header
Related Business Functions
Source NameFunction Name
B1200070F1207 Get Rows
B1200080F1207 Update Rows
B1300180F1391 Map Category Code
B1300001F1300 Access 1300
B3100330F4801 Get Work Order Master (Parent WO processing)
B3100450F3112 Verify Routing
B3100470F3111 Verify Parts List
B4000880Verify and Get Address Book for OP
B4800090F4826 Retrieve Action Status Row
B4800120F48001 Get Row from Default Coding Table
X1202F1201 Verify Asset Number
X4801F4801 Work Order MBF - used for data structure definition only
X4101F4101 Item Master MBF
X4626F4626 Work Order Activity Rules
ICOLBUIs Column in Business Unit Table
2.4Processing
X4801 EQ Edit Line Module Outline
Retrieve the Cache Data Structure address
Else, it contains the F4801 Cache values retrieved in X4801
This structure contains the X4801 Edit Line lpDS values
End If
If the processing options have not already been retrieved and the version is not blank
Retrieve P48011 processing options using user input version
End If
If the input Process Edits does not = NO EDITS
Validate Subsidiary Repair Code against the F0901
If the Parent Order Number is not blank
Pay Type, Business Unit, Priority, WO Type, Status, Status Comment, Start Date, and Planned Completion Date
Set to Processing Option values if any of the following fields are blank:
Category Codes 1- 10, Customer, Order Type, Priority, and WO Type
If in Add Mode
Set Approval Type to Processing Option Value
End If
End Processing Option Defaults
Assign default values to Supervisor and Manger if still blank
If the Action Code = Update Mode
Assign an error if the Order Type or the WO Type has changed and Inventory has been issued
Validate/Assign the Status
Validate Subledger if Subledger and Status have changed
End If
Validate Equipment Number
Assign a default value and validate the Cost Center
Validate Start, Requested, Completion, Planned Completion, Order Dates
Start, Requested, Completion and Planned Completion Dates cannot be less than Order Date
If Requested Date is < Start Date or Requested Date is blank
Requested Date = Start Date
End If
End Validate Dates
Edit Estimated Hours and Amount
Validate Inventory Item Number
Issue Error if Customer is blank and PO Require Customer = '1'
Issue Error if WO Description is blank
If the Order Date is blank or the Action Code = Add Mode
Order Date = System Date
End if
Validate that the Branch Plant is not blank
Set Qty Ordered = 1
Set Freeze Code = 'Y'
Branch Plant, Business unit, Customer Number, Assigned To Address Number,
If X4801 Input Error Code does not = Edit Warning
Perform Warning Editing
Validates the following:
If Action Code = Update Mode
Issue warning if Order Type or WO Type has changed
End If
Assign a warning
If an open Purchase Order exists
If the PO Calculate Date = '1' Warnings
Validate that the Completion Date is not less than Start Date
Validate that the Start Date is not < the Order Date
Validate that the Requested Date is not < the Order Date
Validate that the Planned Completion Date is not < the Order Date
Validate that the Completion Date is not < the Order Date
End If
End Perform Warning Editing
End If
End If
If no Edit Errors or Status Errors
Load Input to Cache Record
End If
Set X4801 Input Error Code = Work Error Code
D4800220 - X4801 Equipment Editing Module DS
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
idCacheStructurePointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
idF4801Pointer | GENLNG | ID | NONE | NONE |
Currently, not used in Edit Line. If updating a F4801 record on the 1st call to X4801, the original values to all fields are written to the Cache structure.
| ||||
idInputPointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
cErrorCode | ERRC | char | NONE | NONE |
'0' = No Errors
| ||||
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
| ||||
cProcessEdits | EV01 | char | NONE | NONE |
'0' No Edits
| ||||
cActionCode | ACTN | char | NONE | NONE |
'A' Add the record to the F4801
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
szVersion | VERS | char | NONE | NONE |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
cSuppressErrorMessages | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cInteractiveBatchFlag | EV03 | char | NONE | NONE |
'I' = Interactive
| ||||
cProcessModuleFlag | EV04 | char | NONE | NONE |
Flag set in X4801 to determine if Normal or Sales editing required.
| ||||
szTypeTransaction | TYTN | char | NONE | NONE |
Processing Option returned to X4801 to determine if F4801 record is to be written to F4801Z1 file.
| ||||
mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
Used for P48011 Error Mapping purposes only.
| ||||
szOrderType | DCTO | char | NONE | NONE |
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has
| ||||
szParentOrderNumber | PARS | char | NONE | NONE |
A number that identifies the parent work order. You can use this number to do the following:
o Enter default values for new work orders,
| ||||
szWODescription | DL01 | char | NONE | NONE |
A user defined name or remark. | ||||
szStatusComment | STCM | char | NONE | NONE |
A brief description to explain the status of the work order. | ||||
cWOType | TYPS | char | NONE | NONE |
A user defined code (00/TY) that indicates the classification of a work order or engineering change order.
You can use work order type as a
| ||||
szWOStatus | SRST | char | NONE | NONE |
A user defined code (00/SS) that describes the status of a work order, rate schedule, or engineering change order. Any status change from
| ||||
cWOPriority | PRTS | char | NONE | NONE |
A user defined code (00/PR) that indicates the relative priority of a work order or engineering change order in relation to other orders.
A
| ||||
mnCustomerNumber | AN8 | MATH_NUMERIC | NONE | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
szBranchPlant | 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
| ||||
szBusinessUnit | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szSubsidiaryRepairCode | SUB | char | NONE | NONE |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
jdOrderDate | TRDJ | JDEDATE | NONE | NONE |
The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing. | ||||
jdStartDate | STRT | JDEDATE | NONE | NONE |
The start date for the order. You can enter this date manually, or have the system calculate it using a backscheduling routine. The routine
| ||||
jdPlannedCompletionDate | DPL | JDEDATE | NONE | NONE |
The date that the work order or engineering change order is planned to be completed. | ||||
jdCompletionDate | STRX | JDEDATE | NONE | NONE |
The date that the work order or engineering change order is completed or canceled. | ||||
szItemNumberUnknownFormat | UITM | char | NONE | NONE |
A number that the system assigns to an item. It can be in short, long, or third item number format. | ||||
szAssetNumberInput | ASII | char | NONE | NONE |
An identification code that represents an asset. You enter the identification code in one of the following formats:
1
Asset number (a
| ||||
mnAssignedToAddressNumber | ANP | MATH_NUMERIC | NONE | NONE |
The address book number of the person assigned to do the work. | ||||
cSubledgerInactiveCode | SBLI | char | NONE | NONE |
An option that indicates whether a specific subledger is inactive. Examples of inactive subledgers are jobs that are closed, employees
| ||||
jdRequestedDate | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
mnNextAddressNumber | NAN8 | MATH_NUMERIC | OPT | NONE |
An eight-position number used to identify each entry in the Address Book,e.g., employees, customers, suppliers, special mailing
| ||||
szCompany | CO | char | OPT | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szProgramId | PID | char | OPT | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
|
B1200070 F1207 Get Rows | ||||
B1200080 F1207 Update Row | ||||
B1300001 F1300 Access | ||||
B1300180 F1391 Map Category Codes | ||||
B3100330 Verify and Get Work Order Master | ||||
B3100360 F3112 Update Hours And Dates | ||||
B3100450 Verify And Get Routing Instructions | ||||
B3100470 Verify And Get Parts List | ||||
B3100870 Get Routing Instructions For An Order Number | ||||
B4000880 Verify And Get Address Book for OP | ||||
B4800090 F4826 Get Row | ||||
B4800120 F48001 Get Row | ||||
ISCOLBU Is Business Unit in Business Unit Table | ||||
X1202 F1201 Validate Asset Number | ||||
X4101 Validate and Retrieve Item Master | ||||
X4801 X4801 Work Order Entry Master Business Function | ||||
X4826 F4826 Update Based on WO Activity Rules |
F0006 Business Unit Master | ||||
F3111 Work Order Parts List | ||||
F4311 Purchase Order Detail File |