Query to join delivery details and MTL Material Table

Source: Internet
Author: User

Select WDD. source_header_number,
WDD. source_line_id,
WDD. delivery_detail_id,
WDD. released_status,
Oe_interfaced_flag,
Inv_interfaced_flag,
WDD. creation_date,
MTL. transaction_id,
L. flow_status_code,
L. open_flag,
L. cancelled_flag
From apps. wsh_delivery_details WDD,
Apps. mtl_material_transactions MTL,
Apps. oe_order_lines_all L
Where l. line_id = WDD. source_line_id
And WDD. delivery_detail_id = MTL. picking_line_id
And WDD. source_code = 'oe'
And WDD. oe_interfaced_flag = 'y'
-- And WDD. released_status = 'y ';

 

Also below is query to join order line with mtl_material_transactions

Select MTL. transaction_id, L. flow_status_code, L. open_flag, L. cancelled_flag, L. shipped_quantity

From mtl_material_transactions MTL, oe_order_lines_all L where MTL. trx_source_line_id = L. line_id

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.