我是靠谱客的博主 美满书本,最近开发中收集的这篇文章主要介绍Oracle EBS ego_item_pub.assign_item_to_org 物料分配组织出错,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

需将主档中为空,与现版本不匹配的栏位做更新处理 :

/*
下列某个属性中存在主项 - 子项之间的冲突:
需求时间范围 (DEMAND_TIME_FENCE_CODE)、
提前期批量 (LEAD_TIME_LOT_SIZE)、
标准批量 (STD_LOT_SIZE)、
累计制造 (CUM_MANUFACTURING_LEAD_TIME)、
超出百分比 (OVERRUN_PERCENTAGE)、
计算 ATP (MRP_CALCULATE_ATP_FLAG)、
生产率增加允差 (ACCEPTABLE_RATE_INCREASE)、
生产率减少允差 (ACCEPTABLE_RATE_DECREASE)。
输入的版本用于 MTL_SYSTEM_ITEMS 和 MTL_SYSTEM_ITEMS_INTERFACE 中均不存在的物料。
*/
Begin
  For r1 In (Select inventory_item_id,
                     concatenated_segments,
                     primary_uom_code
                From mtl_system_items_kfv
               Where organization_id =86  --主档ID
                 And segment1 In
                     ('C', 'E', 'F', 'G', 'L', 'M', 'N', 'P', 'S')
                 And inventory_item_id Not In
                     (Select inventory_item_id
                        From mtl_system_items_b
                       Where organization_id =171 --需导入的组织ID
                         And inventory_item_status_code = 'Active')
                 And inventory_item_status_code = 'Active') Loop
    Update mtl_system_items_b
       Set CATALOG_STATUS_FLAG = 'N'
     Where CATALOG_STATUS_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set COLLATERAL_FLAG = 'N'
     Where COLLATERAL_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set CONTAINER_ITEM_FLAG = 'N'
     Where CONTAINER_ITEM_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set DOWNLOADABLE_FLAG = 'N'
     Where DOWNLOADABLE_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set ELECTRONIC_FLAG = 'N'
     Where ELECTRONIC_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set EVENT_FLAG = 'N'
     Where EVENT_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set INDIVISIBLE_FLAG = 'N'
     Where INDIVISIBLE_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set MRP_CALCULATE_ATP_FLAG = 'N'
     Where MRP_CALCULATE_ATP_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set VEHICLE_ITEM_FLAG = 'N'
     Where VEHICLE_ITEM_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set RECIPE_ENABLED_FLAG = 'N'
     Where RECIPE_ENABLED_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set BOM_ENABLED_FLAG = 'N'
     Where BOM_ENABLED_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set LOT_STATUS_ENABLED = 'N'
     Where LOT_STATUS_ENABLED Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set SERIAL_STATUS_ENABLED = 'N'
     Where SERIAL_STATUS_ENABLED Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set LOT_DIVISIBLE_FLAG = 'N'
     Where LOT_DIVISIBLE_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set LOT_SPLIT_ENABLED = 'N'
     Where LOT_SPLIT_ENABLED Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set LOT_MERGE_ENABLED = 'N'
     Where LOT_MERGE_ENABLED Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set LOT_TRANSLATE_ENABLED = 'N'
     Where LOT_TRANSLATE_ENABLED Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set LOT_SUBSTITUTION_ENABLED = 'N'
     Where LOT_SUBSTITUTION_ENABLED Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set BULK_PICKED_FLAG = 'N'
     Where BULK_PICKED_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set SERIAL_TAGGING_FLAG = 'N'
     Where SERIAL_TAGGING_FLAG Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
    Update mtl_system_items_b
       Set EQUIPMENT_TYPE = 2
     Where EQUIPMENT_TYPE Is Null
       And inventory_item_id = r1.inventory_item_id;
    Commit;
  End Loop;
End;

 

最后

以上就是美满书本为你收集整理的Oracle EBS ego_item_pub.assign_item_to_org 物料分配组织出错的全部内容,希望文章能够帮你解决Oracle EBS ego_item_pub.assign_item_to_org 物料分配组织出错所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部