Functional Description
Purpose
Copies ECO Notes from an ECO Request to the subsequently created ECO Work Order. Presently, this
only occurs when the "Create ECO" Row Exit is taken from P48020 ECO Entry//W48020B Work With ECO Work Order Entry.
Setup Notes and Prerequisites
WBDCTO - Order Type of "From Record" is always assumed to be "EG". Order Type of "To Record" is always assumed
to be "EN".
WBSFXO - Order Suffix is always assumed to be
WBTYPR - Type Record is always assumed to be "A"
Special Logic
A header string is always inserted as the first line of the notes copied.
Presently, this header string is HARD CODED in the Variable Declarations
section, and reads as follows.
"*** Begin - Parent Request Notes ***"
Technical Specification
1. Opens Table F4802 - Work Order Instructions File
2. If open is successful JDB_SetSequencing sets sequencing for retrieving
records so that the Line Numbers (LINS) are in ascending order (JDEDB_SORT_ASC)
3. A SelectKeyed is performed to select the records. Right now, the logic
assumes that wbsfxo[4] is always blank. Also this business function is
called from P48020 with
4. If the select returns success then there are records (Notes) to be copied to
the newly created ECO. These are retrieved in a loop with JDB_Fetch
5. A MEMCPY operation copies the retrieved database fields in the dsF4802 structure
to the dsInsertF4802 structure which is used to update the database table. Then
input parameters are used to populate the key fields. Specifically the following
fields are populated with information relevant to the new ECO or the ECO the Notes
are being copied to:
- mnOrderNumber is copied to WBDOCO
- szOrderType is copied to WBDCTO
- szOrderSuffixTo (alway
- cRecordTypeTo (always "A") is copied to WBTYPR
- mnLineNumber (originally populated by mnStartCopyOnLine)
is copied to WBLINS and incremented by a IncrementMathNumeric
6. A JDB_InsertTable command stores the copied notes in the F4802 Table.
D4800080 - Copy ECO Request Notes
Data Item Data Structure DescriptionI/ORequiredNotes
PARS szOrderNumberFromIYOrder Number of Type "EG" ECO Request
DCTO sSzOrderTypeFromIYOrder Type of ECO Request (Always
assumed to be "EG")
SFXO szOrderSuffixFromIYOrder Sufix of ECO Request (Always assumed to
be
TYPR cRecordTypeFromIYRecord Type of Notes to be copied (Always
assumed to be "A")
DOCO mnOrderNumberToIYOrder Number of newly created ECO
DCTO sSzOrderTypeToIYOrder Type of newly created ECO (Always
assumed to be "EN")
SFXO szOrderSuffixToIYOrder Sufix of newly created ECO Request
(Always assumed to be
TYPR cRecordTypeFromIYRecord Type copied Notes will assume (Always
assumed to be "A")
LINS mnStartCopyOnLineIYLine Number to be assigned to first line of copied
Notes (Always assumed to be 2)
NUMR mnNumberofLinesCopiedONReturns the number of lines of Notes copied from
the ECO Request to the newly created ECO.
EV01Suppress Error 0/1IYSuppress Error Messages 0/1
DTAIszErrorMessageIDONError Message Number
PID szProgramIdINProgram ID of calling program
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnOrderNumberTo | DOCO | MATH_NUMERIC | REQ | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderTypeFrom | DCTO | char | REQ | 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
| ||||
szOrderTypeTo | DCTO | char | REQ | 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
| ||||
szOrderSuffixFrom | SFXO | char | REQ | NONE |
In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies
| ||||
szOrderSuffixTo | SFXO | char | REQ | NONE |
In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies
| ||||
cRecordTypeFrom | TYPR | char | REQ | NONE |
The detail specification record type. Record types are user defined. You can set them up on the Detail Specification Types form and use
| ||||
mnStartCopyOnLine | LINS | MATH_NUMERIC | REQ | NONE |
The Line Number associated with Work Order text information. | ||||
mnNumberofLinesCopied | NUMR | MATH_NUMERIC | OPT | NONE |
The equipment number or work order number associated with a change of status. | ||||
szErrorMessageID | DTAI | char | OPT | 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
| ||||
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
| ||||
cSuppressErrorMessages | EV01 | char | REQ | NONE |
An option that specifies the type of processing for an event. | ||||
szOrderNumberFrom | PARS | char | REQ | 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,
| ||||
cRecordTypeTo | TYPR | char | REQ | NONE |
The detail specification record type. Record types are user defined. You can set them up on the Detail Specification Types form and use
|
None |
F4802 Work Order Instructions File |