1.Functional Description
This business function verifies that the Routing Instructions (F3112) record exists and
returns a pointer to the Routing Instructions Record. You can retrieve a record from F3112 using six
different indexes.
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.
If a pointer to the record is returned, this pointer must be cleared in the application using
the BSFN FreePtrtoDataStructure.
1.1Purpose
This business function verifies that the Routing Instructions (F3112) record exists and returns a
pointer to the Routing Instructions Record.
1.2Setup Notes and Prerequisites
Set on "Suppress Error Messages" to suppress the runtime error message handling. Otherwise, if an
error occurs the error message will be displayed on the message line.
Set on "Return Pointer" to return a pointer the F3112 record. 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.
2 = MCU, STRT, OPSQ, DOCO (4 Keys)
3 = MCU, DRQJ (2 Keys)
4 = MMCU, MCU, OPSC, DOCO (4 Keys)
5 = AN8, STRT, DOCO, OPSQ (4 Keys)
6 = MMCU, KIT, DOCO, OPSQ (4 Keys)
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
1.0. Initialize the DS F3112Pointer to NULL.
2.0. Fetch the Shop Floor Control Routing Instructions Record using Index 1.
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
'0002' ( Record Invalid) and first field in index 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 first field in index is highlighted.
(RCTO) from the Routing Instructions 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 Routing Instructions Record.
Instructions Record.
'4365' and first field in index is highlighted.
Retrievals:
1. Shop Floor Control Routing Instructions Table (F3112) using index 1.
2. The Related Number (RORN), and the Related Order Type (RCTO).
Returns:
1. If Call Type is equal to '1' and the fetch fails, return Error Message ID '0002' (Record
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 Work Center (MCU), the Related Number (RORN), and the
Related Order Type (RCTO).
Checklist:
Business Function SVR(The Business Function SVR document can be found on
in the shared folder NTSERV2.xls)
______Business Function Name
______Source file Name
______Description of what the function does
______Which programs use the function
______Authors name
Object Librarian Check:
______Verify Related Functions List against header file
______Verify Related Tables List against header file
______Verify Business Function Data Structure in the header file against Business Function
Parameter List
______"Check In" All the Business Function Parameter Lists
All Business Functions must be run through Bounds Checker before checking them in.
______Bounds Checker
Note:Make sure to highlight the line and click on either 'Parameters' or 'Notes' button to get
Function ID
D3100450 - Verify And Get Routing Instructions
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,
| ||||
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
| ||||
szWorkCenter | 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
| ||||
szTypeOperationCode | OPSC | char | NONE | NONE |
A user defined code (30/OT) that indicates the type of operation. Valid values include: A Alternate routing TT Travel time IT Idle time T Text | ||||
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
| ||||
jdRequestedDate | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
szBranch | 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
| ||||
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
| ||||
mnParentItemNumber | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
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. | ||||
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
| ||||
idF3112Pointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
szRelatedNumber | RORN | char | NONE | NONE |
A number that identifies a secondary purchase order, sales order, or work order that is associated with the original order. This number is for
| ||||
szRelatedOrderType | RCTO | char | NONE | NONE |
A user defined code (system 00, type DT) that indicates the document type of the secondary or related order. For example, a purchase
| ||||
szWorkcenterBranch | WMCU | char | OPT | NONE |
This is the branch/plant to which the work center belongs and must exist in the business unit master (F0006) and branch plant constants file
| ||||
szActivityCode | ACTB | char | OPT | NONE |
The aggregation of actions performed within an organization that are useful for purposes of activity-based costing. |
B4000460 Free Ptr To Data Structure |
F3112 Work Order Routing |