1.Functional Description
The Functional Description section is to be cut from the Word document and pasted into the Notes
section of the Business Function.
1.1Purpose
This business function verifies that the WO Time Transactions (F31122) record exists and returns a
pointer to the WO Time Transactions Record. You can retrieve a record from F31122 using one of six
different indexes.
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.
The user passes to the business function the number of the index they want to use and the number of
key fields within that index that will be used.
1. YST, AN8, DGL -(Index 1, Keys 3)
2. YST, USER, UPMJ, PBDT -(Index 2, Keys 4)
3. YST, DOCO, DGL, OPSQ, TYR-(Index 3, Keys 5)
4. PRTR, YST, TYR-(Index 4, Keys 3)
5. YST, SUMR, DOCO, DCTO, OPSQ, TYR-(Index 5, Keys 6)
6. UKID-(Index 6, Key 1)
(if any) will be highlighted. This can be suppressed by turning on the "Suppress Error Message" flag.
Turn on the "Return Pointer" flag to have the business function return a pointer to the record.
Set the "Call Type" flag to a "1" to have the business function verify that the record exists. Set
it to "2" to have the business function verify that the record does not exist (ie. it returns an error
if a record is found).
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
Initialize the DS F31122Pointer to NULL.
Fetch the Shop Floor Control WO Time Transactions Record corresponding to the index and keys entered
by the user.
If DS Call Type is equal to '1', return error messages.
If DS Suppress Error Message is not equal to '1', SetGBRError where error message is '0002' ( Record
Invalid ).
If Fetch is successful, return pointer and messages.
If DS Suppress Error Message is not equal to '1', SetGBRError where error message is '2463'
(Record Exists) and the first field in the index is highlighted.
If DS Call Type is not equal to '2' and DS Return Pointer is equal to '1', return pointer to the WO
Time Transactions Record.
If Memory Allocation is successful, Assign DS F31122 Pointer = Address of WO Time Transactions
Record.
If Memory Allocation is not successful, return error messages.
If DS Suppress Error Message is not equal to '1', SetGBRError where error message is
'4365'.
List of Indexes:
1. YST, AN8, DGL -(Index 1, Keys 3)
2. YST, USER, UPMJ, PBDT -(Index 2, Keys 4)
3. YST, DOCO, DGL, OPSQ, TYR-(Index 3, Keys 5)
4. PRTR, YST, TYR-(Index 4, Keys 3)
5. YST, SUMR, DOCO, DCTO, OPSQ, TYR-(Index 5, Keys 6)
6. UKID-(Index 6, Key 1)
Returns:
If Call Type is equal to '1' and the fetch fails, return Error Message ID '0002' (Record Invalid).
If Call Type is equal to '2' and the fetch is successful, return Error Message ID '2463'.
If Return Pointer is equal to '1', the fetch is successful, and the memory allocation is successful,
return the pointer to the data structure.
^
D3100580 - Verify And Get WO Time Transactions
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cReturnPointerFlag | 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. | ||||
szIndex | 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
| ||||
szKeys | 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
| ||||
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
| ||||
idF31122Pointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
cProcessedCode | YST | char | NONE | NONE |
A code used to indicate whether a payroll transaction has been processed through the payroll cycle. This value is held within various files
| ||||
mnAddressNumber | 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
| ||||
jdWorkOrderDate | DGL | JDEDATE | NONE | NONE |
A date that identifies the financial period to which the transaction is to be posted.
The company constants specify the date range for each
| ||||
szUserID | USER | char | NONE | NONE |
The code that identifies a user profile. | ||||
jdDateUpdated | UPMJ | JDEDATE | NONE | NONE |
The date that specifies the last update to the file record. | ||||
jdDateTimeClockStart | PBDT | JDEDATE | NONE | NONE |
Date associated with the time clock start time. The date associated with the ending clock time is the work date. | ||||
mnWorkOrderNumber | 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,
| ||||
mnOperationSequence | OPSQ | MATH_NUMERIC | NONE | NONE |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
cTypeOfHours | TYR | char | NONE | NONE |
A code that indicates the type of time entered. Valid values are:
1 Run Labor Hours
2 Setup Labor Hours
3 Machine Hours
4
| ||||
mnTransactionNumber | PRTR | MATH_NUMERIC | NONE | NONE |
A unique number that the system assigns to each timecard. You can use this field in the Time Entry By Job program to retrieve a specific
| ||||
cSummaryRecord | SUMR | char | NONE | NONE |
Identifies records containing summarized detail information. | ||||
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
| ||||
mnUniqueKeyID | UKID | MATH_NUMERIC | NONE | NONE |
This field is a unique number used to identify a record in a file. |
B4000460 Free Ptr To Data Structure |
F31122 Work Order Time Transactions |