You are on page 1of 7

8/26/2014 2.1.

Routing
http://www.confluentminds.com/Trainings/SCM/Topic2.1_Ch2_Part5.html 1/7
2.1. Routing
2.1.1. Enter Routings
A routing defines the step by step operations you perform to manufacture a product. For each operation specify a
department that determines the resources you may use for that operation. You can define an alternate routing to
describe a different manufacturing process used to produce the same product. A department is a collection of
resources designed to perform certain tasks. A department class is a collection of departments
Enter the WIP parameters like backflush, auto charge etc.
8/26/2014 2.1. Routing
http://www.confluentminds.com/Trainings/SCM/Topic2.1_Ch2_Part5.html 2/7
In routing details enter the completion subinventory and locator. The Serialization Start Op Seq flag in the Routing
Details window indicates that item tracking with serial numbers begins at this particular operation. This enables you to
track items using serial numbers prior to the completed transaction.
8/26/2014 2.1. Routing
http://www.confluentminds.com/Trainings/SCM/Topic2.1_Ch2_Part5.html 3/7
Use resources to define the time an assembly spends at an operation and the cost you incur at the operation. A
resource is anything you require to perform, schedule, or cost, including but not limited to employees, machines,
outside processing services, and physical space. A resource and usage rate for all scheduled activities is required in a
routing. When you define your departments, you assign the resources available in each department and the shifts that
each resource is available. For each operation you define, you specify a department and list of resources and usages.
An operation can use any resource that is available in the department. Enter the sequence number of the resource and
the resource name. For Item basis charge the resource by multiplying usage rate by the job quantity for the assembly.
But for Lot basis, Charge the resource by the usage rate or amount once, for example: setup charges.

8/26/2014 2.1. Routing
http://www.confluentminds.com/Trainings/SCM/Topic2.1_Ch2_Part5.html 4/7
Two or more resources can be scheduled to be working concurrently within the same job operation by having the
same Schedule Sequence Number. Resources with the same substitute group number are substituted together with
alternate resources that have the same substitute group number as the operation resource and the same replacement
group number.
Enter the number of assigned units to the resource. Enter the resource offset percent within this routing. For example, a
value of 50 means that you utilize the resource when the routing is half completed.
Indicate which resource is the principal resource, within a group of simultaneous resources. The Principal Flag defines
which resource to use first when there is a choice.
2.1.2. Routing Technical Architecture
BOM_OPERATIONAL_ROUTINGS
ROUTING_SEQUENCE_ID
ASSEMBLY_ITEM_ID
ORGANIZATION_ID
COMPLETION_SUBINVENTORY
COMPLETION_LOCATOR_ID
ROUTING_TYPE
ALTERNATE_ROUTING_DESIGNATOR
COMMON_ASSEMBLY_ITEM_ID
COMMON_ROUTING_SEQUENCE_ID
BOM_OPERATION_SEQUENCES
OPERATION_SEQUENCE_ID
ROUTING_SEQUENCE_ID
OPERATION_SEQ_NUM
OPERATION_DESCRIPTION
STANDARD_OPERATION_ID
DEPARTMENT_ID
OPERATION_TYPE
OPERATION_LEAD_TIME_PERCENT
MINIMUM_TRANSFER_QUANTITY
8/26/2014 2.1. Routing
http://www.confluentminds.com/Trainings/SCM/Topic2.1_Ch2_Part5.html 5/7
ROUTING_COMMENT COUNT_POINT_TYPE
EFFECTIVITY_DATE
DISABLE_DATE
BACKFLUSH_FLAG
OPTION_DEPENDENT_FLAG
BOM_OPERATION_RESOURCES
OPERATION_SEQUENCE_ID
RESOURCE_SEQ_NUM
RESOURCE_ID
ACTIVITY_ID
BASIS_TYPE
USAGE_RATE_OR_AMOUNT
USAGE_RATE_OR_AMOUNT_INVERSE
STANDARD_RATE_FLAG
ASSIGNED_UNITS
SCHEDULE_FLAG
RESOURCE_OFFSET_PERCENT
AUTOCHARGE_TYPE
SCHEDULE_SEQ_NUM
SUBSTITUTE_GROUP_NUM
PRINCIPLE_FLAG
BOM_STANDARD_OPERATIONS
STANDARD_OPERATION_ID
OPERATION_CODE
ORGANIZATION_ID
DEPARTMENT_ID
MINIMUM_TRANSFER_QUANTITY
COUNT_POINT_TYPE
OPERATION_DESCRIPTION
OPTION_DEPENDENT_FLAG
BACKFLUSH_FLAG
SEQUENCE_NUM
LINE_ID
OPERATION_TYPE
OPERATION_YIELD_ENABLED
SHUTDOWN_TYPE
ACTUAL_IPK
CRITICAL_TO_QUALITY
VALUE_ADDED
Query to find BOM operation routings: Query to find BOM routing resources:
set lines 150
set pages 150
col operation_description form a32
select
--bor.routing_sequence_id ,
bos.operation_sequence_id op_seq_id ,
bos.operation_seq_num op_seq ,
bos.operation_description ,
--bos.standard_operation_id ,
bos.department_id ,
bos.operation_type ,
bor.routing_type ,
bso.operation_code operation_code,
bor.completion_subinventory comp_subinv,
bor.completion_locator_id comp_loc ,
bd.department_code department_code
from
bom_standard_operations bso,
bom_departments bd,
bom_operation_sequences bos,
bom_operational_routings bor
where bor.assembly_item_id = 149
and bor.organization_id =207
and bor.routing_sequence_id=bos.routing_sequence_id
and bos.department_id = bd.department_id
and bos.standard_operation_id = bso.standard_operation_id (+)
order by bos.operation_sequence_id
/
set lines 150
set pages 150
col operation_description form a36
select
--bor.routing_sequence_id ,
bos.operation_sequence_id op_seq_id,
bos.operation_seq_num op_seq,
bso.operation_code op_code,
bos.operation_description ,
bos.standard_operation_id std_op_id,
bos.department_id dept,
bos.operation_type op_type,
boc.resource_seq_num res_seq,
--boc.resource_id ,
--boc.activity_id ,
boc.basis_type basis,
br.resource_code res_code,
bor.completion_subinventory comp_subinv,
bor.completion_locator_id comp_loc,
bor.routing_type rout_type,
boc.usage_rate_or_amount rate
from
bom_standard_operations bso,
bom_resources br,
bom_operation_resources boc,
bom_operation_sequences bos,
bom_operational_routings bor
where
bor.assembly_item_id = 149 and
bor.organization_id =207 and
bor.routing_sequence_id=bos.routing_sequence_id and
bos.operation_sequence_id=boc.operation_sequence_id
and br.resource_id = boc.resource_id
8/26/2014 2.1. Routing
http://www.confluentminds.com/Trainings/SCM/Topic2.1_Ch2_Part5.html 6/7
and bos.standard_operation_id = bso.standard_operation_id
(+)
order by 1
/
Query to find attachments for any BOM operation:
set lines 150
set pages 150
col instruction_code form a40
SELECT to_number(AD.PK1_VALUE) operation_sequence_id,
TL.DESCRIPTION instruction_code,
ST.SHORT_TEXT instruction_description
FROM FND_DOCUMENTS D,
FND_DOCUMENTS_TL TL,
FND_DOCUMENTS_SHORT_TEXT ST,
FND_ATTACHED_DOCUMENTS AD,
bom_operation_sequences bos
WHERE bos.operation_sequence_id =166
and bos.operation_sequence_id =
to_number(AD.PK1_VALUE)
AND D.DOCUMENT_ID = TL.DOCUMENT_ID
AND TL.DOCUMENT_ID = AD.DOCUMENT_ID
AND TL.MEDIA_ID = ST.MEDIA_ID
AND SYSDATE BETWEEN
TRUNC(NVL(D.START_DATE_ACTIVE, SYSDATE))
AND TRUNC(NVL(D.END_DATE_ACTIVE, SYSDATE))+1
AND AD.ENTITY_NAME like
'BOM_OPERATION_SEQUENCES'
AND TL.LANGUAGE = userenv('LANG')
ORDER BY instruction_code
/
2.1.3. Routing API
PROCEDURE Process_Rtg
(p_bo_identifier IN VARCHAR2:= RTG
, p_api_version_number IN NUMBER:= 1.0
, p_init_msg_list IN BOOLEAN:= FALSE
, p_rtg_header_rec IN Bom_Rtg_Pub.Rtg_Header_Rec_Type
:=Bom_Rtg_Pub.G_MISS_RTG_HEADER_REC
, p_rtg_revision_tbl IN Bom_Rtg_Pub.Rtg_Revision_Tbl_Type
:=Bom_Rtg_Pub.G_MISS_RTG_REVISION_TBL
, p_operation_tbl IN Bom_Rtg_Pub.Operation_Tbl_Type
:= Bom_Rtg_Pub.G_MISS_OPERATION_TBL
, p_op_resource_tbl IN Bom_Rtg_Pub.Op_Resource_Tbl_Type
:= Bom_Rtg_Pub.G_MISS_OP_RESOURCE_TBL
, p_sub_resource_tbl IN Bom_Rtg_Pub.Sub_Resource_Tbl_Type
:= Bom_Rtg_Pub.G_MISS_SUB_RESOURCE_TBL
, p_op_network_tbl IN Bom_Rtg_Pub.Op_Network_Tbl_Type
:= Bom_Rtg_Pub.G_MISS_OP_NETWORK_TBL
, x_rtg_header_rec OUT Bom_Rtg_Pub.Rtg_Header_Rec_Type
, x_rtg_revision_tbl OUT Bom_Rtg_Pub.Rtg_Revision_Tbl_Type
8/26/2014 2.1. Routing
http://www.confluentminds.com/Trainings/SCM/Topic2.1_Ch2_Part5.html 7/7
, x_operation_tbl OUT Bom_Rtg_Pub.Operation_Tbl_Type
, x_op_resource_tbl OUT Bom_Rtg_Pub.Op_Resource_Tbl_Type
, x_sub_resource_tbl OUT Bom_Rtg_Pub.Sub_Resource_Tbl_Type
, x_op_network_tbl OUT Bom_Rtg_Pub.Op_Network_Tbl_Type
, x_return_status OUT VARCHAR2
, x_msg_count OUT NUMBER
, p_debug IN VARCHAR2:= N
, p_output_dir IN VARCHAR2:= NULL
, p_debug_filename IN VARCHAR2:= RTG_BO_debug.log
Use the Routing API to create, update and delete a routing from a form and the external system.
p_rtg_header_rec, p_rtg_revision_tbl, p_operation_tbl, p_op_resource_tbl, p_sub_resource_tbl, p_op_network_tbl:
This is the set of data structures thatrepresents the incoming business object. p_rtg_header_rec is a record that holds
the Routing header for the Routing.
x_rtg_header_rec, x_rtg_revision_tbl, x_operation_tbl, x_op_resource_tbl, x_sub_resource_tbl, x_op_network_tbl:
This is the set of data structures that represents the outgoing business object. These records essentially constitute
thewhole business object as it was sent in, except now it has all the changes that the import program made to it through
all the steps in the Process Flow.

You might also like