12
返回列表 发新帖
楼主: fly-in-the-sky

ATO 啟用過程關鍵點疑問解答!!!

[复制链接]
论坛徽章:
29
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442010广州亚运会纪念徽章:现代五项
日期:2011-04-23 11:54:412011新春纪念徽章
日期:2011-02-18 11:43:342010广州亚运会纪念徽章:轮滑
日期:2010-10-30 23:51:492010新春纪念徽章
日期:2010-01-04 08:33:08祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:212009日食纪念
日期:2009-07-22 09:30:00NBA季后赛纪念徽章
日期:2008-06-20 11:45:19NBA常规赛纪念章
日期:2008-04-18 19:48:16
11#
 楼主| 发表于 2008-12-12 10:04 | 只看该作者
仔細研究了一下AutoCreate Final Assembly Orders的日志
我發現參數ORDER_NUMBER好象錯了,怎么由12030800094變成了2147483647
而且我用他的sql將其中的參數置換后是能查詢出我所要的結果,難道是系統BUG!

+---------------------------------------------------------------------------+
Work in Process: Version : 11.5.0 - Development

Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

WICDOL module: AutoCreate Final Assembly Orders
+---------------------------------------------------------------------------+

Current system time is 12-DEC-2008 15:27:44

+---------------------------------------------------------------------------+

Page Length = 59, Page Width = 132

===================================================================
Debug Mode :        Enabled
Output to Terminal : No
Argument Method :   Database Fetch
Trace Mode :        Disabled

===================================================================
Argument 1 (ORDER_NUMBER) = 12030800094
Argument 2 (DUMMY_FIELD) =
Argument 3 (OFFSET_DAYS) = 1
Argument 4 (LOAD_TYPE) = 3
Argument 5 (STATUS_TYPE) = 1
Argument 6 (ORG_ID) = 117
Argument 7 (CLASS_CODE) = 量產
Argument 8 (FAILED_REQ_ID) = -1
Argument 9 (ORDER_LINE_ID) =
Argument 10 (BATCH_ID) =

===================================================================
Dbg:Connected to DB
ALmost there.
BATCH STR = .
Dbgrg_id = 117
Dbgffset_days = 1.000000
Dbg:load_type = 3
Dbg:class_code = 量產
Dbg:status_type = 1
Dbg:failed_req_id = -1
Dbgrder_number = 2147483647
Dbgrder_line_id = -1
Dbgrg_id = 117
Dbgffset_days = 1.000000
Dbg:load_type = 3
Dbg:class_code = 量產
Dbg:status_type = 1
Dbg:failed_req_id = -1
Dbgrder_number = 2147483647
Dbgrder_line_id = -1
Dbg:all_success_rec = 1
Dbg: OM Installed: Enter get_order_lines.

Dbg: Exited get_order_lines with status 1
Dbg: wei_group_id = -1
Dbg: Orders Loaded = 0
Dbg:Exiting Filter Order Lines w/success

Dbg:Exiting Sales Order Loader w/success

***** End Of Report - AutoCreate Final Assembly Orders *****
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
get_order_lines: Begin Get Order Lines.
get_order_lines: Organization ID: 117
get_order_lines: Offset: 1
get_order_lines: Load Type: 3
get_order_lines: Class Code: 量產
get_order_lines: Status Type: 1
get_order_lines: Order Number: 2147483647
get_order_lines: Line ID: -1

select /*+ ordered index (WAS WF_ITEM_ACTIVITY_STATUSES_PK) */
oel.line_id line_id,
oel.ship_from_org_id ship_from_org_id,
oel.header_id header_id,
nvl(oel.org_id, -1) org_id
  from oe_order_lines_all        OEL,
       wf_item_activity_statuses WAS,
       wf_process_activities     WPA,
       mtl_system_items          MSI
where oel.inventory_item_id = msi.inventory_item_id
   and oel.ship_from_org_id = msi.organization_id
   and msi.bom_item_type = 4
   and oel.open_flag = 'Y'
   and oel.ato_line_id is not null
   and (oel.item_type_code = 'CONFIG' or
       (oel.ato_line_id = oel.line_id and oel.item_type_code = 'STANDARD'))
   and nvl(oel.cancelled_flag, 'N') = 'N'
   and oel.booked_flag = 'Y'
   and oel.schedule_status_code = 'SCHEDULED'
   and oel.ordered_quantity > 0
   and msi.replenish_to_order_flag = 'Y'
   and msi.build_in_wip_flag = 'Y'
   and msi.pick_components_flag = 'N'
   and was.item_type = 'OEOL'
   and was.activity_status = 'NOTIFIED'
   and was.item_type = wpa.activity_item_type
   and was.process_activity = wpa.instance_id
   and wpa.activity_name in
       ('EXECUTECONCPROGAFAS', 'CREATE_SUPPLY_ORDER_ELIGIBLE', 'SHIP_LINE')
   and ((wpa.activity_name = 'EXECUTECONCPROGAFAS' and oel.program_id = -99) OR
       (wpa.activity_name <> 'EXECUTECONCPROGAFAS' and
       nvl(oel.program_id, 0) <> -99))
   and not exists
(select '1'
          from bom_operational_routings bor
         where bor.assembly_item_id = oel.inventory_item_id
           and bor.organization_id = oel.ship_from_org_id
           and bor.alternate_routing_designator is NULL
           and nvl(bor.cfm_routing_flag, 2) = 1)
   and was.item_key = to_char(oel.line_id)
   and oel.header_id in
       (select oeh.header_id
          from oe_order_headers_all oeh
         where oeh.order_number = :l_order_number)
   and oel.ship_from_org_id = :l_org_id
   and (oel.item_type_code = 'CONFIG' or
       (oel.item_type_code in ('STANDARD', 'OPTION') and
       oel.ato_line_id = oel.line_id))
   and SYSDATE >=
       (select CAL.CALENDAR_DATE
          from bom_calendar_dates cal, mtl_parameters mp
         where mp.organization_id = oel.ship_from_org_id
           and cal.calendar_code = mp.calendar_code
           and cal.exception_set_id = mp.calendar_exception_set_id
           and cal.seq_num =
               (select cal2.prior_seq_num - nvl(_offset_days, 0) -
                       (ceil(nvl(msi.fixed_lead_time, 0) +
                             nvl(msi.variable_lead_time, 0) *
                             (INV_CONVERT.inv_um_convert(oel.inventory_item_id,
                                                         5,
                                                         oel.ordered_quantity,
                                                         oel.order_quantity_uom,
                                                         msi.primary_uom_code,
                                                         null,
                                                         null) -
                              CTO_WIP_WRAPPER.GET_RESERVED_QTY(oel.line_id))))
                  from bom_calendar_dates cal2
                 where cal2.calendar_code = mp.calendar_code
                   and cal2.exception_set_id = mp.calendar_exception_set_id
                   and cal2.calendar_date = trunc(oel.schedule_ship_date)))
order by oel.org_id, oel.line_id

drive_mark = 13
Opened. System Time : 12-DEC-2008 15:27:45
get_order_lines: MOperating Unit :109
get_order_lines: ****************************************
get_order_lines: Number of Order Lines Selected: 0
get_order_lines: Number of Rows on Hold: 0
get_order_lines: Number of Rows not Departure Planned: 0
get_order_lines: Number of Rows in error: 0
get_order_lines: Number of Order Lines Inserted: 0
get_order_lines: WIP Group ID: -1
get_order_lines: ****************************************
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+


+---------------------------------------------------------------------------+
Executing request completion options...

+------------- 1) PRINT   -------------+


Printing output file.
               Request ID : 2473300        
         Number of copies : 0        
                  Printer : noprint

+--------------------------------------+


Finished executing request completion options.

+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 12-DEC-2008 15:27:46

+---------------------------------------------------------------------------+

[ 本帖最后由 fly-in-the-sky 于 2008-12-12 16:30 编辑 ]

使用道具 举报

回复
论坛徽章:
29
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442010广州亚运会纪念徽章:现代五项
日期:2011-04-23 11:54:412011新春纪念徽章
日期:2011-02-18 11:43:342010广州亚运会纪念徽章:轮滑
日期:2010-10-30 23:51:492010新春纪念徽章
日期:2010-01-04 08:33:08祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:212009日食纪念
日期:2009-07-22 09:30:00NBA季后赛纪念徽章
日期:2008-06-20 11:45:19NBA常规赛纪念章
日期:2008-04-18 19:48:16
12#
 楼主| 发表于 2008-12-12 16:32 | 只看该作者
Metalink 上如是說,要上patch,不知道行不行.
Subject:          WICDOL - Autocreate Final Assembly Orders - No Orders To Load
          Doc ID:         Note:93865.1         Type:         PROBLEM
          Last Revision Date:         22-OCT-2008         Status:         PUBLISHED


Problem Description
-------------------
You are autocreating final assembly orders.  In the parameters screen you enter
the sales order.  You leave the off-set days to the defaulted 1 day (not
null), and the job completes with the following message:

    No orders to load

Navigation path: WIP/Discrete/AutoCreate Orders


Solution Description
--------------------
Apply Patch 533215 which updates the following files:

Source Files
    Product  Directory      File                 Version
    wip      src            wicdol.opp           51.3

This update  is included in Rel.10.7 WIP Patchset A (783344) and beyond.


Explanation
-----------
The WICDOL executable was pointing to the old version.  Version 51.3
of wicdol.opp is now part of the executable WICDOL.

使用道具 举报

回复
论坛徽章:
29
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442010广州亚运会纪念徽章:现代五项
日期:2011-04-23 11:54:412011新春纪念徽章
日期:2011-02-18 11:43:342010广州亚运会纪念徽章:轮滑
日期:2010-10-30 23:51:492010新春纪念徽章
日期:2010-01-04 08:33:08祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:212009日食纪念
日期:2009-07-22 09:30:00NBA季后赛纪念徽章
日期:2008-06-20 11:45:19NBA常规赛纪念章
日期:2008-04-18 19:48:16
13#
 楼主| 发表于 2008-12-12 17:06 | 只看该作者
,居然剛剛在不選那個Offset Days和Sales Order參數,居然跑出來了,不過有其它料號也被帶出來了,看來果然是象Metalink上面說的那樣是系統的BUG。


然后接着往下测,对MPS和MRP的影响。
当我再去RUN  MPS的时候,发现已经有配置产生的组装料号和工单对应了。
当我再去RUN  MRP的时候,发先也有配置产生的组装料号和工单对应了,也带出了我选择的ATO ITEM的需求量。

在工单界面的销售订单里也发现了该工单对应的SO

但是有一个疑问就是,配置产生的组装料号属性是纳入MPS计划,可是怎么也在MRP中跑出来了呢?
虽然其对应的plan order显示的是其对应的工单号,不会对数据造成错误影响。

[ 本帖最后由 fly-in-the-sky 于 2008-12-14 16:57 编辑 ]

使用道具 举报

回复
论坛徽章:
7
生肖徽章2007版:兔
日期:2008-01-02 17:35:53生肖徽章2007版:兔
日期:2009-07-06 17:45:042009日食纪念
日期:2009-07-22 09:30:00祖国60周年纪念徽章
日期:2009-10-09 08:28:002010新春纪念徽章
日期:2010-01-04 08:33:082010新春纪念徽章
日期:2010-03-01 11:07:212011新春纪念徽章
日期:2011-02-18 11:42:47
14#
发表于 2008-12-12 21:49 | 只看该作者
好資料!學習學習!!

使用道具 举报

回复
论坛徽章:
2
2010广州亚运会纪念徽章:乒乓球
日期:2010-11-22 15:42:522011新春纪念徽章
日期:2011-02-18 11:43:33
15#
发表于 2009-2-12 18:09 | 只看该作者
谢谢楼主,好资料呀.

使用道具 举报

回复
论坛徽章:
54
奥运会纪念徽章:游泳
日期:2008-09-04 11:36:412012新春纪念徽章
日期:2012-01-04 11:54:26嫦娥
日期:2012-02-21 15:05:21奥运会纪念徽章:射箭
日期:2012-09-10 13:45:54ITPUB 11周年纪念徽章
日期:2012-10-09 18:09:19蜘蛛蛋
日期:2012-11-07 09:08:43鲜花蛋
日期:2013-01-28 14:42:352013年新春福章
日期:2013-02-25 14:51:24喜羊羊
日期:2015-06-04 16:56:25沸羊羊
日期:2015-06-23 15:27:04
16#
发表于 2012-5-15 09:09 | 只看该作者
建物料的时候你怎么不使用ATO模板建立啊

使用道具 举报

回复
论坛徽章:
17
双黄蛋
日期:2012-04-12 14:25:312014年世界杯参赛球队: 比利时
日期:2014-07-03 13:22:07
17#
发表于 2012-5-28 17:20 | 只看该作者
Please specifically assign a workflow for configured item types

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表