Archive | September, 2014

Oracle Order Management: Drop Ship Tables and SQL Query

7 Sep
Below are the basic tables used during Drop Ship flow

apps.oe_order_headers_all 
apps.oe_order_lines_all
apps.oe_drop_ship_sources
apps.po_requisitions_interface_all
apps.po_interface_errors
apps.po_requisition_headers_all
apps.po_headers_all
apps.po_lines_all
apps.po_line_locations_all
apps.po_distibutions_all
apps.po_releases_all

Below is the SQL Statement to find out the Drop Ship SO and corresponding Requistiona and PO details along with their status

selectooh.order_number
       ,ool.ordered_item
       ,ool.ordered_quantity
       ,ooh.flow_status_code header_status                   
       ,ool.flow_status_code line_status
       ,prha.segment1 requisition
       ,poh.segment1 po_number
       ,poh.closed_code po_status
       ,pll.quantity
       ,pll.quantity_received
       ,pll.closed_code po_shipment_status
fromapps.oe_order_headers_all                   ooh
    ,apps.oe_order_lines_all                     ool
    ,apps.oe_drop_ship_sources                   odss
    ,apps.po_requisition_headers_all             prha
    ,apps.po_headers_all                         poh
    ,apps.po_lines_all                           pol
    ,apps.po_line_locations_all                  pll
              
whereool.header_id = ooh.header_id
and   odss.header_id = ooh.header_id
and   odss.line_id = ool.line_id
and   prha.requisition_header_id = odss.requisition_header_id
and   poh.po_header_id = odss.po_header_id
and   pol.po_line_id = odss.po_line_id
and   pol.po_header_id = poh.po_header_id
and   pll.po_line_id = pol.po_line_id

and   ooh.order_number = ‘66411’;

Oracle Order Management: Drop Ship Flow

7 Sep

Setting up the Item first

Master Level:
Inventory:
Inventory Item, Stockable, Transactable
Purchasing:
Purchased, Purchasable, List Price

Order Management:
Customer Ordered, Customer Order Enabled, Shippable, OE Transactable
Default SO Source Type should be External
Internal Ordered, Internal Order Enabled (These 2 if the drop ship will happen from internal organization)

Invoicing

Organization Level Setup:
Inventory

Costing

Receiving

Now create the Sales Order

Make sure source type is External
Now Book the order
Now the line is in Booked

Workflow is deferred for Purchase Release

Run the workflow Background
After the program completes, re query the SO
Now the time, you can see the record both in Drop Ship table and Po Req Interface table
select * from apps.oe_order_headers_all whereorder_number = ‘66411’;
select * from apps.OE_DROP_SHIP_SOURCES whereheader_id = 190500;
select * from apps.po_requisitions_interface_all where creation_date >= sysdate1/24;
Now run the Requisition Import Program

If this program not able to create the requisition, then please check the error if any in below table
select * from apps. PO_INTERFACE_ERRORS where transaction_id =
Once the program, completes, lets check the Req details in Sales order line, additional Information , Drop Ship tab

PO Creation

Now take this Requisition and Auto Create PO from this using the Purchasing responsibility

Click Automatic

Select the supplier and Site and click Create
This will create the PO

Now check the details and Submit for Approval

Wait till you get the confirmation from supplier for the shipments either by ASN or any EDI communication.
Now you can see this PO details in SO Line, Drop Ship tab

PO Receiving

Once confirmed, then go ahead and do the receipt

Once received, check the transaction completion.
Once the receiving transaction completed, go and check the SO line status

Now run the workflow background program, this will close the line

This will interface the record to Receivable
Now run the Autoinvoice Master program to create the Receivable Invoice