1.Functional Description
1.1Purpose
Verify that the Work Order Master (F4801) record exists and return a pointer to the Work Order Master
Record.
Return Pointer: 1=Return Pointer, 0=Do not return pointer.
Call Type: 1=Verify that record exists, 2=Verify that record does not exist.
Suppress Error Message: 1=Suppress runtime error message handling, 0=Allow runtime error
message handling.
1.2Setup Notes and Prerequisites
If a pointer to the record is returned, this pointer must be cleared in the application using the
BSFN FreePtrtoDataStructure.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
1.0. Initialize the DS F4801Pointer to NULL.
2.0. Fetch the Work Order Master Record where DOCO = DS Order Number.
3.0. If Fetch failed, return messages.
3.1.2. If DS Suppress Error Message is not equal to '1', SetGBRError where error message is
'0115' ( Work Order Number Invalid) and DS Order Number is highlighted.
4.0. If Fetch is successful, return pointer and messages.
4.1.2. If DS Suppress Error Message is not equal to '1', SetGBRError where error message is
'2463' (Record Already Exists) and DS Order Number is highlighted.
the Work Order Master record retrieved.
4.3. If DS Call Type is not equal to '2' and DS Return Pointer is equal to '1', return pointer
to the Work Order Master Record.
Master Record.
4.3.3.2. If DS Suppress Error Message is not equal to '1', SetGBRError where error
message is '4365' and DS Business Unit is highlighted.
1. If Call Type is equal to '1' and the fetch fails, return Error Message ID '0115' (Work Order
Number Invalid).
2. If Call Type is equal to '2' and the fetch is successful, return Error Message ID '2463' (Record
Already Exists).
3. If Return Pointer is equal to '1', the fetch is successful, and the memory allocation is
successful, return the pointer to the data structure.
4. If the fetch is successful return the Order Type (DCTO), the Description (DL01), and the Business
Unit (MCU).
D3100330 - Verify and Get Work Order Master
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,
| ||||
cReturnPointer | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cCallType | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
idF4801Pointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
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
| ||||
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
| ||||
szDescription | DL01 | char | NONE | NONE |
A user defined name or remark. | ||||
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
| ||||
cReturnPointerForTag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
idF4801TagPointer | GENLNG | ID | OPT | NONE |
General purpose ID variable. |
None |
F4801 Work Order Master File | ||||
F4801T Work Order Master Tag File |