BOM(制造数据管理)

--工艺路线

  1 DECLARE
  2   -- API input variables
  3   l_operation_tbl    bom_rtg_pub.operation_tbl_type := bom_rtg_pub.g_miss_operation_tbl;
  4   l_rtg_header_rec   bom_rtg_pub.rtg_header_rec_type := bom_rtg_pub.g_miss_rtg_header_rec;
  5   l_rtg_revision_tbl bom_rtg_pub.rtg_revision_tbl_type := bom_rtg_pub.g_miss_rtg_revision_tbl;
  6   l_op_resource_tbl  bom_rtg_pub.op_resource_tbl_type := bom_rtg_pub.g_miss_op_resource_tbl;
  7   l_sub_resource_tbl bom_rtg_pub.sub_resource_tbl_type := bom_rtg_pub.g_miss_sub_resource_tbl;
  8   l_op_network_tbl   bom_rtg_pub.op_network_tbl_type := bom_rtg_pub.g_miss_op_network_tbl;
  9
 10   -- API output variables
 11   x_rtg_header_rec   bom_rtg_pub.rtg_header_rec_type; -- routing header record
 12   x_rtg_revision_tbl bom_rtg_pub.rtg_revision_tbl_type; -- routing revisions
 13   x_operation_tbl    bom_rtg_pub.operation_tbl_type; -- routing operations
 14   x_op_resource_tbl  bom_rtg_pub.op_resource_tbl_type; -- oepration resources
 15   x_sub_resource_tbl bom_rtg_pub.sub_resource_tbl_type; -- sub operation resources
 16   x_op_network_tbl   bom_rtg_pub.op_network_tbl_type; -- operation networks
 17   x_message_list     error_handler.error_tbl_type;
 18
 19   -- Other API variables
 20   l_return_status VARCHAR2(1) := NULL;
 21   l_msg_count     NUMBER := 0;
 22   l_cnt           NUMBER := 1;
 23
 24   -- WHO columns
 25   l_user_id        NUMBER := -1;
 26   l_resp_id        NUMBER := -1;
 27   l_application_id NUMBER := -1;
 28   l_row_cnt        NUMBER := 1;
 29   l_user_name      VARCHAR2(30) := ‘HAND_CW‘;
 30
 31 BEGIN
 32
 33   FOR c IN (SELECT t.*
 34               FROM cux.cux_update_routing_temp t
 35              WHERE 1 = 1
 36                AND t.p_session_id = ‘2016091901‘)
 37   LOOP
 38
 39     /*-- Get the user_id
 40     SELECT user_id
 41       INTO l_user_id
 42       FROM fnd_user
 43      WHERE user_name = l_user_name;
 44
 45     -- Get the application_id and responsibility_id
 46     l_application_id := 702;
 47     l_resp_id        := 50723;*/
 48
 49     -- Initialize applications information
 50     fnd_global.apps_initialize(1510,
 51                                50761,
 52                                401);
 53     --   dbms_output.put_line(‘Initialized applications context: ‘ || l_user_id || ‘ ‘ || l_resp_id || ‘ ‘ || l_application_id);
 54
 55     -- Create the routing header
 56     l_rtg_header_rec.assembly_item_name     := ‘102021101011000007‘;
 57     l_rtg_header_rec.organization_code      := ‘A01‘;
 58     l_rtg_header_rec.alternate_routing_code := NULL;
 59     l_rtg_header_rec.transaction_type       := ‘UPDATE‘;
 60
 61
 62
 63     l_operation_tbl(l_cnt).assembly_item_name := ‘102021101011000007‘;
 64     l_operation_tbl(l_cnt).organization_code := ‘A01‘;
 65     l_operation_tbl(l_cnt).alternate_routing_code := NULL;
 66     --l_operation_tbl(l_cnt).department_code := ‘AR‘;
 67     l_operation_tbl(l_cnt).operation_sequence_number := ‘20‘;
 68     l_operation_tbl(l_cnt).operation_type := 1;
 69     l_operation_tbl(l_cnt).start_effective_date := SYSDATE;
 70     l_operation_tbl(l_cnt).standard_operation_code := c.p_operation_code;
 71     l_operation_tbl(l_cnt).transaction_type := ‘UPDATE‘;
 72
 73     --l_operation_tbl(l_cnt).option_dependent_flag := c.p_option_dependent_flag;
 74     l_operation_tbl(l_cnt).count_point_type := c.p_count_point_flag;
 75     -- l_operation_tbl(l_cnt).count_point_type := c.p_autocharge_flag;
 76     l_operation_tbl(l_cnt).backflush_flag := c.p_backflush_flag;
 77     l_operation_tbl(l_cnt).attribute1 := c.p_attribute1;
 78     l_operation_tbl(l_cnt).attribute2 := c.p_attribute2;
 79     l_operation_tbl(l_cnt).attribute3 := c.p_attribute3;
 80     l_operation_tbl(l_cnt).attribute4 := c.p_attribute4;
 81     l_operation_tbl(l_cnt).attribute5 := c.p_attribute5;
 82     l_operation_tbl(l_cnt).attribute6 := c.p_attribute6;
 83     l_operation_tbl(l_cnt).attribute7 := c.p_attribute7;
 84     l_operation_tbl(l_cnt).attribute8 := c.p_attribute8;
 85     l_operation_tbl(l_cnt).attribute9 := c.p_attribute9;
 86     l_operation_tbl(l_cnt).attribute10 := c.p_attribute10;
 87     l_operation_tbl(l_cnt).attribute11 := c.p_attribute11;
 88     l_operation_tbl(l_cnt).attribute12 := c.p_attribute12;
 89     l_operation_tbl(l_cnt).attribute13 := c.p_attribute13;
 90     l_operation_tbl(l_cnt).attribute14 := c.p_attribute14;
 91     l_operation_tbl(l_cnt).attribute15 := c.p_attribute15;
 92
 93     /*
 94     l_op_resource_tbl(l_cnt).assembly_item_name := ‘102021101011000007‘;
 95     l_op_resource_tbl(l_cnt).organization_code := ‘A01‘;
 96     l_op_resource_tbl(l_cnt).alternate_routing_code := NULL;
 97     l_op_resource_tbl(l_cnt).operation_sequence_number := ‘20‘;
 98     l_op_resource_tbl(l_cnt).usage_rate_or_amount := 3;
 99     l_op_resource_tbl(l_cnt).transaction_type := ‘UPDATE‘;
100     l_op_resource_tbl(l_cnt).resource_sequence_number := ‘10‘;
101     l_op_resource_tbl(l_cnt).op_start_effective_date := to_date( ‘2014/5/29 18:58:26‘,
102                                                                 ‘YYYY-MM-DD hh24:mi:ss‘ );*/
103
104     dbms_output.put_line(‘=======================================================‘);
105     dbms_output.put_line(‘Calling Bom_Rtg_Pub.Process_Rtg API‘);
106
107     bom_rtg_pub.process_rtg(p_bo_identifier      => ‘RTG‘,
108                             p_api_version_number => ‘1.0‘,
109                             p_init_msg_list      => TRUE,
110                             p_rtg_header_rec     => l_rtg_header_rec,
111                             p_rtg_revision_tbl   => l_rtg_revision_tbl,
112                             p_operation_tbl      => l_operation_tbl,
113                             p_op_resource_tbl    => l_op_resource_tbl,
114                             p_sub_resource_tbl   => l_sub_resource_tbl,
115                             p_op_network_tbl     => l_op_network_tbl,
116                             x_rtg_header_rec     => x_rtg_header_rec,
117                             x_rtg_revision_tbl   => x_rtg_revision_tbl,
118                             x_operation_tbl      => x_operation_tbl,
119                             x_op_resource_tbl    => x_op_resource_tbl,
120                             x_sub_resource_tbl   => x_sub_resource_tbl,
121                             x_op_network_tbl     => x_op_network_tbl,
122                             x_return_status      => l_return_status,
123                             x_msg_count          => l_msg_count,
124                             p_debug              => ‘N‘,
125                             p_output_dir         => ‘/usr/tmp/‘,
126                             p_debug_filename     => ‘rtg_bo_debug.log‘);
127
128     dbms_output.put_line(‘=======================================================‘);
129     dbms_output.put_line(‘Return Status: ‘ || l_return_status);
130
131     IF (l_return_status <> fnd_api.g_ret_sts_success) THEN
132       dbms_output.put_line(‘x_msg_count:‘ || l_msg_count);
133
134       error_handler.get_message_list(x_message_list => x_message_list);
135       dbms_output.put_line(‘Error Message Count :‘ || x_message_list.count);
136       FOR i IN 1 .. x_message_list.count
137       LOOP
138         dbms_output.put_line(to_char(i) || ‘:‘ || x_message_list(i).entity_index || ‘:‘ || x_message_list(i).table_name);
139         dbms_output.put_line(to_char(i) || ‘:‘ || x_message_list(i).message_text);
140       END LOOP;
141     END IF;
142     dbms_output.put_line(‘=======================================================‘);
143
144     l_cnt := l_cnt + 1;
145   END LOOP;
146
147 EXCEPTION
148   WHEN OTHERS THEN
149     dbms_output.put_line(‘Exception Occured :‘);
150     dbms_output.put_line(SQLCODE || ‘:‘ || SQLERRM);
151     dbms_output.put_line(‘=======================================================‘);
152     RAISE;
153 END;

创建工艺路线

--标准工序

没有相关标准api

时间: 2024-08-25 09:26:38

BOM(制造数据管理)的相关文章

MES制造系统赋能中小型制造业智能制造转型

MES(Manufauring Execution System),即制造企业生产过程执行系统,是一套面向制造企业车间执行层的生产信息化管理系统.MES智能制造系统可以为企业提供包括制造数据管理.计划排产管理.生产调度管理.库存管理.质量管理.人力资源管理.工作中心/设备管理.工具工装管理.采购管理.成本管理.项目看板管理.生产过程控制.底层数据集成分析.上层数据集成分解等管理模块,为企业打造一个扎实.可靠.全面.可行的制造协同管理平台. MES系统公司赋能中小型制造业智能制造转型 罗浮云计算M

制造企业车间过程信息管理自动化系统

一.产品简介 <翔云智能智能车间系统(X-Mes)>是上海首祥大数据科技有限公司研发的,面向工厂车间执行层的采购.生产加工.制造.装备.检验的信息化管理系统.系统可以为企业提供包括制造数据管理.计划排程管理.生产调度管理.生产报工.生产过程控制.底层数据集成分析.上层数据集成分解等模块管理. 产品旨在采用极其简单的操作(普通员工只要会刷卡就可以使用).完全满足车间管理流程的设计风格.并支持远程升级维护.系统的投入使用,将有效地改善广大信息化程度不高的中小型制造企业的车间管理现状,为互联网+智能

Oracle ERP系统模块

Oracle Manufacturing称Oracle企业管理系统,它和Oracle Financials称为Oracle财务信息系统,组成了一套完整的集生产.人力资源.工程.财务.分销为一体的应用产品.这套系统有以下一些特点:1.集成的解决方法对于一个企业来说,信息越完全,就越有竞争能力.一个比较复杂的组织机构具有不断增长的市场需求和向全球发展的趋势,这样的企业通常是由工程.制造.分销.销售和服务部门组成,这些部门分布在世界各地,在这类企业中有效地管理信息是对传统的制造应用的挑战,Oracle

浅谈Teamcenter和SAP的集成模式

如果一家企业已经上线了Teamcenter和SAP,两者之间的数据集成式必不可少的.Teamcenter专注于产品设计和开发阶段流程和数据管理,而SAP则应用于产品制造阶段物流,生产,库存及财务等数据的集成.这两者的集成则可以实现产品生命周期内个阶段数据的集成和流程管理. 如果从Teamcenter和SAP的数据类型来看,数据集成主要体现以下几个方面: 工程更改流程和状态的同步 TC Item到SAP物料的数据传输 产品BOM 制造BOP (Bill of Processes) 零件3D模型和图

MES系统简介

MES系统 概述 MES系统即制造企业生产过程执行管理系统,是一套面向制造企业车间执行层的生产信息化管理系统.MES 可以为企业提供包括制造数据管理.计划排程管理.生产调度管理.库存管理.质量管理.人力资源管理.工作中心/设备管理.工具工装管理.采购管理.成本管理.项目看板管理.生产过程控制.底层数据集成分析.上层数据集成分解等管理模块,为企业打造一个扎实.可靠.全面.可行的制造协同管理平台. MES系统概述 MES系统即制造执行系统(manufacturing execution system

集团信息化 信息化常用专业术数及词汇汇总

通过摘录百度百科内容后整理.编排. 信息化常用专业术数及词汇汇总 信息化 [互联网+](hùlián wǎng +) 通俗来说,"互联网+"就是"互联网+各个传统行业",但这并不是简单的两者相加,而是利用信息通信技术以及互联网平台,让互联网与传统行业进行深度融合,创造新的发展生态. 当前大众耳熟能详的电子商务.互联网金融.在线旅游.在线影视.在线房产等行业都是"互联网+"的杰作. [大数据(big data)](dà shù jù) 大数据是指无

快鱼吃慢鱼:浪潮服务器未来五年要争全球第一的背后

2015年的时候,浪潮给自己提出一个五年规划目标,希望浪潮服务器在2020年的时候做到中国第一.全球前三,然而经过这几年的快速努力,很快在2017年就达成了这一目标.根据Gartner数据,2017年浪潮服务器出货量上升至全球第三,成为全球主要的服务器方案供应商,而在过去的16个季度中,有10个季度浪潮增长全球最快.2018年4月26日的2018浪潮云数据中心合作伙伴(IPF)大会上,×××院士.浪潮集团执行总裁王恩东宣布了新目标:五年实现浪潮服务器全球第一! 总结过去三年浪潮服务器成为中国第一

智慧工厂大数据管控分析系统

智慧工厂的发展是因为制造业是国民经济基础,在<中国制造2025>规划中提出:确立以加快新一代信息技术与制造业深度融合为主线.促进从"中国制造"向"中国智造"转型升级,实现制造业由大变强的历史跨越. MES系统是一套面向制造企业车间执行层最基础的生产信息化管理系统,可以为企业提供包括制造数据管理.计划排程管理.生产调度管理.库存管理.质量管理.工具工装管理.采购管理.底层数据集成分析.上层数据集成分解等等管理模块. 它是企业CIMS信息集成的纽带,是实施企

寻虫记:BOM头制造的冤案,无故多出空白行

position:static(静态定位) 当position属性定义为static时,可以将元素定义为静态位置,所谓静态位置就是各个元素在HTML文档流中应有的位置 podisition定位问题.所以当没有定义position属性时,并不说明该元素没有自己的位置,它会遵循默认显示为静态位置,在静态定位状态下无法通过坐标值(top,left,right,bottom)来改变它的位置. position:absolute(绝对定位) 当position属性定义为absolute时,元素会脱离文档流