F3003GetOperationWorkCenter

F3003 Get Operation Work Center

Minor Business Rule

Object Name: N3001950

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

1.Functional Description
This function will find the current Work Center for a given key and will return it to the calling 
application.    



1.1Purpose
This function will find all records for a given Key. It will fetch one record after the other and 
check if this is the  current record. Therefore the input date will be compared with the Effective From 

and Effective Through Date. 


  

1.2Setup Notes and Prerequisites

None

1.3Special Logic
If the As Of Date is equal to , the As of Date is not proofed and the Work Center for the first 
matching record will be returned. 


2.Technical Specifications

2.4Processing 

1.0.  Check input parameter   

Check if all required data is available. If required data is missing set ERRC = '1',

DTAI = '3143' and leave the BSFN.  


2.0Work Center Flag = 0

DO while Work Center Flag = 0

Fetch F3003 where IRMMCU = FI Branch
IRKIT= FI Parent Item 

IRTRT= FI Type Routing

IRBQTY= FI Batch Quantity

IROPSQ= FI Operation Sequence

IROPSC= blank

If record found 

If  FI As of Date > zero

If FC Effective Date From <= FI As of Date

and  FC Effective Date Through >= FI As of Date

Work Center Flag = 1

FI Error Code = 0

FI Error Message Id = '  '

FI Work Center = FC Work Center

endif
else 
Work Center Flag = 1
FI Error Code = 0

FI Error Message Id = '  '

FI Work Center = FC Work Center

endif

endif 
enddo



^

Data Structure

D3001950 - F3003 Get Operation Work Center

Parameter NameData ItemData TypeReq/OptI/O/Both
szBranchMMCUcharNONENONE

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 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

mnParentItemNumberKITMATH_NUMERICNONENONE

The system provides for three separate item numbers.    1.   Item Number (short) - An eight-digit, computer assigned, completely 
non-significant item number.    2.   2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3.   3rd Item Number - Another 
25-digit, free form, user defined alphanumeric item number.

szTypeRoutingTRTcharNONENONE

A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses. For 
example:    M    Standard Manufacturing Routing    RWK  Rework Routing    RSH  Rush Routing You define the routing type on the work order 
header. The system then uses the specific type of routing that you define in the work order routing. Product Costing and Capacity Planning systems 
use only M type routings.

mnBatchQuantityBQTYMATH_NUMERICNONENONE

The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components 
based on the amount of finished goods produced. For example, 1 ounce of solvent is required per unit up to 100 units of finished product. 
However, if 200 units of finished product is produced, 2 ounces of solvent are required per finished unit. In this example, you would set up batch 
quantities for 100 and 200 units of finished product, specifying the proper amount of solvent per unit.

mnOperationSequenceOPSQMATH_NUMERICNONENONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

jdAsOfDateASDE1JDEDATENONENONE

The date used for effectivity checking. Enter a specific date to display documents (orders, bills of material, routings, as applicable) that are 
effective on or after that date. The current system date is the default, but you can enter any future or past date.

szWorkCenterMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szErrorMessageIdDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

None