zoukankan      html  css  js  c++  java
  • BOM List demo

    selectlevel level_id,

           t.*

      from(select msi1.segment1 farther_item,

                   msi1.inventory_item_id farther_item_id,

                   msi1.description farther_desc,

                   mtr.bill_sequence_id,

                   bic.item_num,

                   bic.operation_seq_num,

                   bic.component_item_id sub_item_id,

                   msi2.segment1 sub_item,

                   msi2.description sub_desc,

                   bic.component_quantity,

                   bic.effectivity_date,

                   bic.disable_date,

                   msi1.item_type farther_item_code,

                   fcl1.meaning farther_item_type,

                   msi2.item_type sub_item_code,

                   fcl2.meaning sub_item_type

              from bom_bill_of_materials    mtr,

                   mtl_system_items_b       msi1,

                   fnd_common_lookups fcl1,

                   bom_inventory_components bic,

                   mtl_system_items_b       msi2,

                   fnd_common_lookups fcl2

             where mtr.assembly_item_id = msi1.inventory_item_id

               and mtr.bill_sequence_id = bic.bill_sequence_id

               and bic.component_item_id = msi2.inventory_item_id

               and fcl1.lookup_type ='ITEM_TYPE'

               and fcl1.lookup_code = msi1.item_type

               and fcl2.lookup_type ='ITEM_TYPE'

               and fcl2.lookup_code = msi2.item_type

               and msi1.inventory_item_status_code ='Active'

               and msi2.inventory_item_status_code ='Active'

               and msi2.organization_id =190

               and mtr.organization_id =190

               and msi1.organization_id =190

               and bic.effectivity_date <=sysdate

               andnvl(bic.disable_date,sysdate+1)>sysdate          

               )t

    connectbypriort.sub_item =t.farther_item

     startwitht.farther_item =  '8903600-00-010';

  • 相关阅读:
    ImageWatch 无法安装在VS2017环境下的解决方案
    Android CmakeList
    Android 工程越来越大,运行变卡解决方法
    奥卡姆剃刀(简约之法则)
    Cmake时 如何在windows命令行 选择vs版本
    ubuntu 18.04 安装tensorflow 2 cuda10 CUDNN Anaconda3
    Centos7简易通过yum安装phpmyadmin
    centos7 nigx 免费永久获取 Let‘s Encrypt 证书
    Execution failed for task ':app:compileDebugJavaWithJavac'
    centos 安装aconda
  • 原文地址:https://www.cnblogs.com/quanweiru/p/3275110.html
Copyright © 2011-2022 走看看