Query all components of the WIP discrete work order

Source: Internet
Author: User

WIP-> discrete-> Discrete Task

Task kevin13: information of all components in this ticket:

Select MSI. segment1,
MSI. description,
WDJ. class_code,
WDJ. status_type,
WDJ. start_quantity,
Wdj.net _ quantity,
WDJ. quantity_completed,
WDJ. quantity_scrapped,
WDJ. scheduled_start_date,
WDJ. scheduled_completion_date,
Wro. operation_seq_num,
Dept. department_code,
Wro. date_required,
Msi1.segment1,
Msi1.description,
Wro. required_quantity,
Wro. quantity_issued,
(Wro. required_quantity-wro. quantity_issued) quantity_open
From wip_discrete_jobs WDJ,
Wip_entities we,
Mtl_system_items_ B MSI,
Wip_requirement_operations wro,
Mtl_system_items_ B msi1,
Bom_administrative ments Dept
Where WDJ. wip_entity_id = We. wip_entity_id
And WDJ. primary_item_id = MSI. inventory_item_id
And WDJ. organization_id = MSI. organization_id
And WDJ. wip_entity_id = wro. wip_entity_id
And wro. inventory_item_id = msi1.inventory _ item_id
And wro. organization_id = msi1.organization _ id
And wro. department_id = Dept. department_id
And wro. organization_id = 103
And WDJ. organization_id = 103
And we. wip_entity_name =' Kevin13 ';

 

The current quantity must be associated with mtl_onhand_quantities or mtl_onhand_quantities_detail.

This table does not include inventory in transit.

To include similar inventory such as the amount in transit, it is best to use APIs for calculation.

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.