Saturday, 23 November 2019

Join between wip discrete jobs and oe_order_lines_all

Join between wip discrete jobs and oe_order_lines_all

In this post , we will be discuss about the table joins between wip discrete jobs and oe_order_lines_all. wip discrete jobs helps to store the manufacturing job related information in oracle apps and oe_order_lines_all tables helpd to store the sales order information's in oracle apps. If we want to know the Wip Jobs created against the sales order created in oracle apps then we need to refer these sql queries and the join between  wip discrete jobs and oe_order_lines_all.
 

Important Table to create the Join between wip discrete jobs and oe_order_lines_all

1.oe_order_headers_all
2.oe_order_lines_all
3.mtl_reservations
4.wip_discrete_jobs
5.wip_entities
 
Join between wip discrete jobs and oe_order_lines_all


Detail SQL query using the Join between wip discrete jobs and oe_order_lines_all

 Select we.wip_entity_name wip_job_name -- job created for Sale Order--
 , wdj.scheduled_start_date wip_start_date
 , wdj.scheduled_completion_date wip_completion_date
 ,ooh.order_number  --- Sales order numbe
 ,msib.segment1 Item code  -- inventory item code--
 ,mr.reservation_quantity  Quantity_reserved
 FROM oe_order_headers_all ooh
 , oe_order_lines_all ool
 , mtl_reservations mr
 , wip_discrete_jobs wdj
 , wip_entities we
 ,mtl_system_items_b msib
 WHERE ooh.header_id = ool.header_id
 AND ooh.org_id =:p_org_id
 AND mr.demand_source_line_id = ool.line_id
 AND mr.supply_source_type_id = 5
 AND mr.supply_source_header_id = we.wip_entity_id
 AND we.wip_entity_id = wdj.wip_entity_id
 AND ool.ship_from_org_id = we.organization_id
 AND ool.ship_from_org_id=msib.organization_id
 AND mr.inventory_item_id=msib.inventory_item_id
 AND we.organization_id = wdj.organization_id

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *