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 Parts List (F3111) record exists and returns a pointer to
the Parts List Record. You can retrieve a record from F3111 using one of eight 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. DOCO, OPSQ, BSEQ
2. CPIT, CMCU, DRQJ
3. MCU, CPIT, COBY, DOCO
4. DOCO, OPSQ, DRQJ, CMCU, LOCN, LOTN, CPIT
5. DOCO, CPIT, CMCU
6. COBY, DOCO, OPSQ
7. COBY, CPIT, CMCU, DRQJ
8. UKID
(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 F3111Pointer to NULL.
Fetch the Shop Floor Control Parts List 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 ) and the first field in the index is highlighted.
If Fetch is successful, return pointer and messages.
If DS Suppress Error Message is not equal to '1', SetGBRError where error message is '2463' 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
Parts List Record.
If Memory Allocation is successful, Assign DS F3111 Pointer = Address of Parts List 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' and first field in index is highlighted.
List of Indexes:
1.DOCO, OPSQ, BSEQ
2.CPIT, CMCU, DRQJ
3.MCU, CPIT, COBY, DOCO
4.DOCO, OPSQ, DRQJ, CMCU, LOCN, LOTN, CPIT
5.DOCO, CPIT, CMCU
6.COBY, DOCO, OPSQ
7.COBY, CPIT, CMCU, DRQJ
8.UKID
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.
D3100470 - Verify And Get Parts List
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
| ||||
idF3111Pointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
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,
| ||||
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
| ||||
mnBubbleSequence | BSEQ | MATH_NUMERIC | NONE | NONE |
A secondary bill of material sequence number that indicates the drawing bubble number. | ||||
mnComponentShortItemNum | CPIT | MATH_NUMERIC | NONE | NONE |
The short identifier for the component item number. | ||||
szComponentBranch | CMCU | char | NONE | NONE |
A secondary or lower-level business unit. The system uses the value that you enter to indicate that a branch or plant contains several
| ||||
jdDateRequested | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
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
| ||||
cCoByProducts | COBY | char | NONE | NONE |
A code that distinguishes standard components or ingredients from co-products,by-products, and intermediates. Co-products are
| ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
szLotNumber | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
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 |
F3111 Work Order Parts List |