--不能入库的物料
6N137-500E  6000  PO 20332 / 1.1
  
select mc.INVENTORY_ITEM_ID,ms.segment1,mc.SEGMENT1,mc.SEGMENT2 ,scv.DEPARTMENT
            from MTL_ITEM_CATEGORIES_V mc ,
              mtl_system_items_b  ms,
              ( --关联有效的厂牌、产品线与之对应的业务类型
              select scv.ITEM_CATEGORY_SEGMENT1,scv.ITEM_CATEGORY_SEGMENT2,scv.DEPARTMENT
              from  SECOM_COMPARISON_V scv where status_Code='VALID'
              )scv
            where mc.INVENTORY_ITEM_ID=ms.inventory_item_id(+)
              and mc.ORGANIZATION_ID=ms.organization_id(+)
              and mc.SEGMENT1=scv.ITEM_CATEGORY_SEGMENT1(+)
              and mc.SEGMENT2=scv.ITEM_CATEGORY_SEGMENT2(+)
              and  ms.organization_id=84
              and mc.CATEGORY_SET_ID=1
              and scv.DEPARTMENT is not null --业务类型实际不会为空
             
              and ms.segment1='6N137-500E'


14085  

--修改状态
processing_status_code: PENDING <=PENDING
processing_mode_code: BATCH     <=PIMMEDIATE
transaction_status_code: PENDING <=PPENDING

--查询原状态值
select ti.processing_status_code, ti.processing_mode_code,ti.transaction_status_code  
from RCV_TRANSACTIONS_INTERFACE ti
where ti.interface_transaction_id=795983

--修改
update  RCV_TRANSACTIONS_INTERFACE ti  set ti.processing_mode_code='BATCH'
where ti.interface_transaction_id=795983

commit

相关文章:

  • 2021-08-10
  • 2022-01-06
  • 2022-01-06
  • 2022-03-08
  • 2022-12-23
  • 2022-02-27
  • 2021-06-19
  • 2021-04-07
猜你喜欢
  • 2022-01-22
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-06-08
相关资源
相似解决方案