Oracle Ebs-sql (BOM-11): Check for assemblies without BOM. SQL

Source: Internet
Author: User

Select Msi.segment1,

Msi.description,,

Msi.item_type,

Msi.inventory_item_status_code status

From Inv.mtl_system_items_b MSI

where msi.organization_id = X

and Msi.item_type in (' FG ', ' SA ')

and Msi.inventory_item_status_code <> ' Inactive '

And NOT EXISTS (select null from Bom.bom_structures_b BSB,

Bom.bom_components_b BCB

where bsb.organization_id = msi.organization_id

and bsb.assembly_item_id = msi.inventory_item_id

and bsb.bill_sequence_id = bcb.bill_sequence_id

and NVL (bcb.disable_date,sysdate+1) > Sysdate

and rownum = 1)

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.