Vous êtes sur la page 1sur 41

Oracle Order Management & Shipping 모듈의 Data Flow

(11.5.10 기준)

유은실
제품지원실
한국 오라클㈜
목 차

• Order Management & Shipping Business Flow


• Order Management Data Flow
• Shipping Data Flow
• OM 및 Shipping 관련 Tips
Order Management &Shipping
Business Flow
OM APIs and Interface Products

OM: Order Management


QP: Pricing
SE: Shipping Execution
CRM: Customer Relationship
Management
RLM: Release Management
CTO: Configure to Order
PO: Purchasing Order
APS: Advanced Planning and
Scheduling
CZ: Configurator
AR: Accounts Receivable
IM: Inventory Management
Interfaces and APIs in the R11i Order flow
Basic Order Process flow
OM & Shipping main flow and status
Order Entry Action Shipping

Order Order Line Entering Delivery Line(Pick Status) Delivery

Entered

Booking

Booked

WF: Scheduling WF: Create Delivery Line

Awaiting Shipping
Ready to Release
Pick release

Transact Release to Warehouse


Auto Open
Move Order
Create
Delivery
Staged
Picked
Ship Confirm

Shipped Shipped Close


REQ: INV&OM I/F

Fulfilled WF: Invoice I/F

WF: Close Line

Closed
WF: Close Order
Closed
Order Management Data Flow

1. Order Import
2. Create Order
3. Order & Shipping(WSH) & WorkFlow Tables
Order Import
ƒ Order를 생성하는 방법 중 하나로 다량의 order를 동시에 생성

ƒ Order Import 시 사용하는 interface tables

OE_CUSTOMER_INFO_IFACE_ALL
OE_HEADERS_IFACE_ALL
OE_LINES_IFACE_ALL
OE_PRICE_ADJS_IFACE_ALL
OE_PRICE_ATTS_IFACE_ALL
OE_CREDITS_IFACE_ALL
OE_LOTSERIALS_IFACE_ALL
OE_RESERVTNS_IFACE_ALL
OE_ACTIONS_IFACE_ALL

ƒ Order Import 을 위해 defined 되어야 하는 profile option

OM: Item Validation Organization


OM: Reservation Time Fence
OM: Apply Automatic Attachment
Order Import
ƒ Order Import Request 실행 (Nav OM: Orders, Returns> Import Order)

ƒ OE_LINES_INTERFACE. CALCULATE_PRICE_FLAG
- Calculate Price: Price must be set up in Pricing
- Freeze Price: Manual Pricing
- Partial Price: Only calculate Freight Charges
Create Order
Order & WSH & Workflow Tables
Order Tables (OM)

• OE_ORDER_HEADERS_ALL
• OE_ORDER_LINES_ALL

Shipping Tables (WSH)

• WSH_DELIVERY_DETAILS
• WSH_DELIVERY_ASSIGNMENTS

Workflow Tables (WF)

• WF_ITEMS
• WF_ITEM_ATTRIBUTE_VALUES
• WF_ITEM_ACTIVITY_STATUSES

기타

• OE_PRICE_ADJUSTMENTS
• MRP_SO_LINES_TEMP (MRP_ATP_SCHEDULE_TEMP)
• MTL_SALES_ORDERS
Order Tables
OE_ORDER_HEADERS_ALL

OE_ORDER_LINES_ALL (Link key: Header_id)

Note:

• OE_ORDER_HEADERS_ALL.flow_status_code
: Order 입력(Entered) Æ Booked Order(Booked) Æ Closed Order(Closed)

• OE_ORDER_LINES_ALL.flow_status_code
: Order 입력(Entered) Æ Booked Order(Awaiting Shipping) Æ Pick Released
(Picked/Staged) Æ Ship Confirmed(Shipped) Æ INV/OM interfaced(Fulfilled)
Æ Close Order(Closed)

• OE_ORDER_LINES_ALL.visible_demand_flag
: visible_demand_flag= Yes lines will be made available as Demanded to Planning
Shipping(WSH) Tables
WSH_DELIVERY_DETAILS (Link Key: line_id = source_line_id)

WSH_DELIVERY_ASSIGNMENTS (Link key: delivery_detail_id)

Note:

• WSH_DELIVERY_DETAILS.released_status
: Order line의 shipping process 진행 상태를 확인

• WSH_DELIVERY_ASSIGNMENTS
: Assigns delivery details to a delivery and/or a parent delivery detail
Workflow(WF) Tables
WF_ITEMS (Link Key: Item_key = Order Header id, Line id)

WF_ITEM_ATTRIBUTE_VALUES (Link key: Item_Key)

Note:

• WF_ITEMS: Each row defines one work item

• WF_ITEM_ATTRIBUTE_VALUES
: WF_ITEM_ATTRIBUTES에 define 되어 있는 attribute 값을 저장
Workflow(WF) Tables
WF_ITEM_ACTIVITY_STATUSES (Link Key: Item_key = Order Header id, Line id)

Note:

• WF_ITEM_ACTIVITY_STATUSES
: 각 workflow activity의 start date, end date, result code, and any
error information을 저장.
End_date가 입력되어져 있어야 WF purge시 purge가 가능
기타 Tables
MTL_SALES_ORDERS (Link Key: segment1 = Order No)

Note:

• MTL_SALES_ORDERS
: Mapping sales orders between other applications and Inventory,
Inventory demand interface and demand manager will validate sales orders
on segment values
Shipping Data Flow

1. After Pick Released


2. After Allocation
3. After Transact
4. After Ship Confirm
After Pick Released
• Pick release 시 Manual Allocation을 위해 Auto Allocation = No로 setting
• Autocreate Delivery = Yes setting
After Pick Released
• Updated Tables

WSH_DELIVERY_DETAILS(Link Key: Source_line_id)

-. Released_status updated from ‘R’(ready to release) to ‘S’(Rel to Warehouse)


-. Move_order_line_id is updated from Null to Value

WSH_DELIVERY_ASSIGNMENTS (Link Key: Delivery_id)

-. Pick release시 ‘Autocreate Delivery’를 check


-. Delivery_id is updated from Null to Value
After Pick Released
• Created Tables

WSH_NEW_DELIVERIES (Link Key: Delivery_id)

-. WSH_NEW_DELIVERIES has the delivery records


-. Pick Release concurrent 실행 시 Delivery ID가 생성

MTL_TXN_REQUEST_HEADERS(Link Key: Header_id)

MTL_TXN_REQUEST_LINES(Link Key: Line_id = DELIVERY_DETAILS.move_order_line_id)

-. Headers.move_order_type = 3: Pick Wave, header_status = 7: Pre Approved


-. Lines.line_status = 7: Pre Approved, txn_source_line: Order Line Id
After Allocation
After Allocation
• Created Tables

MTL_RESERVATIONS(Link Key: Demand_source_line_id = Order line id)

-. Demand_source_type_id = 2: Sales Order


-. Demand_source_line_id = Order Line Id
-. Ship_ready_flag = 2: Submitted

MTL_MATERIAL_TRANSACTIONS_TEMP(Link Key: Trx_source_line_id)

-. Allocated 된 transaction이 Transact 될 때 까지 temp table에 존재


-. Trx_source_line_id = Order Line Id
-. Source 창고(FGI)에서 Staging 창고(Sataging1)으로 재고 이동하는 trx
After Transact Move Order
After Transact Move Order
• Updated Tables

MTL_RESERVATIONS(Link Key: Demand_source_line_id = Order line id)

-. Ship_ready_flag is updated from ‘2’ to ‘1’ (‘1’ means ‘Released’)

WSH_DELIVERY_DETAILS(Key: Source_line_id)

-. ‘Picked_Quantity’ 에 Allocated 후 Transact 한 수량이 updated


-. Released_Status가 ‘S’(Rel to Warehouse)에서 ‘Y’(Staged) 상태로 updated
-. Pick released가 정상적으로 끝나고 Ship Confirm을 기다리는 상태
After Transact Move Order
• Updated Tables

MTL_TXN_REQUEST_LINES(Link Key: Line_id = DELIVERY_DETAILS.move_order_line_id)

-. Transact Move Order 후 Quantity_Detailed 수량 Updated


-. Line_Status is updated from ‘7’(Pre Approved) to ‘5’(Closed)

• Deleted Tables

MTL_MATERIAL_TRANSACTIONS_TEMP pending trx is deleted


After Transact Move Order
• Created Tables

MTL_MATERIAL_TRANSACIONS(Link Key: Trx_source_line_id)

-. Transact Move Order 를 처리하면 MMTT에 pending 상태로 존재하던 Trx가


MMT table로 Insert
-. Source 창고(FGI)에서 Staging 창고(Staging1)으로 issue 된 Trx와 Staging 창고로
receipt 된 두 개의 Trxs가 생성
-. Trx_source_line_id = Order Line Id
After Ship Confirm
After Ship Confirm
After Ship Confirm
After Ship Confirm/Run WF engine
• 만일 Order Line Type에 대해 Workflow Background Engine이 주기적으로 실행되고
있다면, Ship Confirm 후 아래 Workflow Process가 자동으로 실행

-. WF: Invoice Interface


-. WF: Close Line

• Updated Tables

OE_ORDER_LINES_ALL

-. Flow_Status_Code = Closed
(Ship Confirmed 후 ‘Shipped’ Æ WF engine run Æ ‘Fulfilled’)
-. Fulfilled_Quantity and Invoiced_Quantity are updated from ‘0’ to ‘Ordered_qty’
-. Invoice_Interface_Status_Code = YES
-. Open_Flag = N
After Ship Confirm/Run WF engine
• Updated Tables

WSH_NEW_DELIVERIES

-. Status_Code = CL(Closed)
-. Ship Confirm이 정상적으로 실행되어 Delivery는 closed 됨

WSH_DELIVERY_DETAILS

-. Released_Status가 ‘Y’(Staged)에서 ‘C’(Shipped) 상태로 updated


-. Ship Confirm이 정상적으로 실행(Interface Trip Stop) 후 INV/OM interface가 처리
되면 OE_INTERFACE_FLAG/INV_INTERFACE_FLAG = Y로 updated
-. Shipped_Quantity가 Updated
After Ship Confirm/Run WF engine
• Created Table

WSH_DELIVERY_LEGS(Link Key: Delivery_Id)

-. WSH_DELIVERY_LEGS maps deliveries to their pick up and drop off stops

WSH_TRIP_STOPS(Link Key: Stop_Id)

-. WSH_TRIP_STOPS has trip stop records, -. Status_Code = CL(Closed)

WSH_TRIPS(Link Key: Trip_Id)


After Ship Confirm/Run WF engine
• Created Table

MTL_MATERIAL_TRANSACITONS(Link Key: Trx_source_line_id)

-. Ship Confirm 작업 후 INV issue에 대한 transaction data가 생성

RA_INTERFACE_LINES(Link Key: Sales_order)

-. WF: Invoice I/F workflow process가 실행되면 ra_interface_lines table에 order


data가 생성
-. AR module의 ‘AutoInvoice’ concurrent를 실행하여 AR invoice를 생성
After Ship Confirm/Run WF engine
• Deleted Table

MTL_RESERVATIONS data is deleted

• Order Line Workflow STATUS


OM 및 Shipping Tips

1. Shipping Status 해석
2. OM diagnostics scripts (omse11i.sql/ HTMomse11i.sql)
Shipping Status 해석
• WSH_DELIVERY_DETAILS.released_status
: 현재 진행중인 shipping process의 상태 표시. Oracle Shipping Execution Shipping
Transaction window나, Oracle Order Management Order window/Actions button,
Additional information, Delivery tab에서 조회

-. Not Applicable (Code: X) – Invoice 생성은 가능, Non-shippable

-. Not Ready for Release (Code: N) – Delivery line이 pick release를 할 수 있는 상태가 아님

-. Ready for Release (Code: R) – Pick Release가 가능한 상태

-. Submitted(Rel) to Warehouse (Code: S) – Pick release 후 INV allocated 만 된 상태

-. Staged (Code: Y) – Pick confirmed 되고, 재고는 Staging 창고로 이동, Ship confirm 가능

-. Backordered (Code: B) – Pick release 후 재고 부족 등 이유로 backordered 된 상태

-. Shipped (Code: C) – Delivery line이 Ship Confirm 된 상태

-. Cancelled (Code: D) – Delivery line에 연결된 order line이 cancelled 된 상태


OM Diagnostic Scripts
• $ONT_TOP/sql/omse11i.sql (11.5.9 이상 version)

• HTMomse11i.sql (Note 133464.1): sqlplus apps/apps @HTMomse11i.sql

• The purpose of this script is to collect information related to a sales order,


its shipment lines and workflow status.

• This script is developed and maintained by Oracle Support Services.

• This script is being updated periodically. Please download it from Metalink every time
you need to run it in order to have the latest version.

• If you experience long execution times when running the script with the Validation
parameter set to 'Y' please terminate and resubmit with this parameter set to 'N'
and you should see some improvement in the performance.
OM Diagnostic Scripts
OM Diagnostic Scripts
OM Diagnostic Scripts