--工艺路线

 DECLARE
-- API input variables
l_operation_tbl bom_rtg_pub.operation_tbl_type := bom_rtg_pub.g_miss_operation_tbl;
l_rtg_header_rec bom_rtg_pub.rtg_header_rec_type := bom_rtg_pub.g_miss_rtg_header_rec;
l_rtg_revision_tbl bom_rtg_pub.rtg_revision_tbl_type := bom_rtg_pub.g_miss_rtg_revision_tbl;
l_op_resource_tbl bom_rtg_pub.op_resource_tbl_type := bom_rtg_pub.g_miss_op_resource_tbl;
l_sub_resource_tbl bom_rtg_pub.sub_resource_tbl_type := bom_rtg_pub.g_miss_sub_resource_tbl;
l_op_network_tbl bom_rtg_pub.op_network_tbl_type := bom_rtg_pub.g_miss_op_network_tbl; -- API output variables
x_rtg_header_rec bom_rtg_pub.rtg_header_rec_type; -- routing header record
x_rtg_revision_tbl bom_rtg_pub.rtg_revision_tbl_type; -- routing revisions
x_operation_tbl bom_rtg_pub.operation_tbl_type; -- routing operations
x_op_resource_tbl bom_rtg_pub.op_resource_tbl_type; -- oepration resources
x_sub_resource_tbl bom_rtg_pub.sub_resource_tbl_type; -- sub operation resources
x_op_network_tbl bom_rtg_pub.op_network_tbl_type; -- operation networks
x_message_list error_handler.error_tbl_type; -- Other API variables
l_return_status VARCHAR2(1) := NULL;
l_msg_count NUMBER := 0;
l_cnt NUMBER := 1; -- WHO columns
l_user_id NUMBER := -1;
l_resp_id NUMBER := -1;
l_application_id NUMBER := -1;
l_row_cnt NUMBER := 1;
l_user_name VARCHAR2(30) := 'HAND_CW'; BEGIN FOR c IN (SELECT t.*
FROM cux.cux_update_routing_temp t
WHERE 1 = 1
AND t.p_session_id = '')
LOOP /*-- Get the user_id
SELECT user_id
INTO l_user_id
FROM fnd_user
WHERE user_name = l_user_name; -- Get the application_id and responsibility_id
l_application_id := 702;
l_resp_id := 50723;*/ -- Initialize applications information
fnd_global.apps_initialize(1510,
50761,
401);
-- dbms_output.put_line('Initialized applications context: ' || l_user_id || ' ' || l_resp_id || ' ' || l_application_id); -- Create the routing header
l_rtg_header_rec.assembly_item_name := '';
l_rtg_header_rec.organization_code := 'A01';
l_rtg_header_rec.alternate_routing_code := NULL;
l_rtg_header_rec.transaction_type := 'UPDATE'; l_operation_tbl(l_cnt).assembly_item_name := '';
l_operation_tbl(l_cnt).organization_code := 'A01';
l_operation_tbl(l_cnt).alternate_routing_code := NULL;
--l_operation_tbl(l_cnt).department_code := 'AR';
l_operation_tbl(l_cnt).operation_sequence_number := '';
l_operation_tbl(l_cnt).operation_type := 1;
l_operation_tbl(l_cnt).start_effective_date := SYSDATE;
l_operation_tbl(l_cnt).standard_operation_code := c.p_operation_code;
l_operation_tbl(l_cnt).transaction_type := 'UPDATE'; --l_operation_tbl(l_cnt).option_dependent_flag := c.p_option_dependent_flag;
l_operation_tbl(l_cnt).count_point_type := c.p_count_point_flag;
-- l_operation_tbl(l_cnt).count_point_type := c.p_autocharge_flag;
l_operation_tbl(l_cnt).backflush_flag := c.p_backflush_flag;
l_operation_tbl(l_cnt).attribute1 := c.p_attribute1;
l_operation_tbl(l_cnt).attribute2 := c.p_attribute2;
l_operation_tbl(l_cnt).attribute3 := c.p_attribute3;
l_operation_tbl(l_cnt).attribute4 := c.p_attribute4;
l_operation_tbl(l_cnt).attribute5 := c.p_attribute5;
l_operation_tbl(l_cnt).attribute6 := c.p_attribute6;
l_operation_tbl(l_cnt).attribute7 := c.p_attribute7;
l_operation_tbl(l_cnt).attribute8 := c.p_attribute8;
l_operation_tbl(l_cnt).attribute9 := c.p_attribute9;
l_operation_tbl(l_cnt).attribute10 := c.p_attribute10;
l_operation_tbl(l_cnt).attribute11 := c.p_attribute11;
l_operation_tbl(l_cnt).attribute12 := c.p_attribute12;
l_operation_tbl(l_cnt).attribute13 := c.p_attribute13;
l_operation_tbl(l_cnt).attribute14 := c.p_attribute14;
l_operation_tbl(l_cnt).attribute15 := c.p_attribute15; /*
l_op_resource_tbl(l_cnt).assembly_item_name := '102021101011000007';
l_op_resource_tbl(l_cnt).organization_code := 'A01';
l_op_resource_tbl(l_cnt).alternate_routing_code := NULL;
l_op_resource_tbl(l_cnt).operation_sequence_number := '20';
l_op_resource_tbl(l_cnt).usage_rate_or_amount := 3;
l_op_resource_tbl(l_cnt).transaction_type := 'UPDATE';
l_op_resource_tbl(l_cnt).resource_sequence_number := '10';
l_op_resource_tbl(l_cnt).op_start_effective_date := to_date( '2014/5/29 18:58:26',
'YYYY-MM-DD hh24:mi:ss' );*/ dbms_output.put_line('=======================================================');
dbms_output.put_line('Calling Bom_Rtg_Pub.Process_Rtg API'); bom_rtg_pub.process_rtg(p_bo_identifier => 'RTG',
p_api_version_number => '1.0',
p_init_msg_list => TRUE,
p_rtg_header_rec => l_rtg_header_rec,
p_rtg_revision_tbl => l_rtg_revision_tbl,
p_operation_tbl => l_operation_tbl,
p_op_resource_tbl => l_op_resource_tbl,
p_sub_resource_tbl => l_sub_resource_tbl,
p_op_network_tbl => l_op_network_tbl,
x_rtg_header_rec => x_rtg_header_rec,
x_rtg_revision_tbl => x_rtg_revision_tbl,
x_operation_tbl => x_operation_tbl,
x_op_resource_tbl => x_op_resource_tbl,
x_sub_resource_tbl => x_sub_resource_tbl,
x_op_network_tbl => x_op_network_tbl,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
p_debug => 'N',
p_output_dir => '/usr/tmp/',
p_debug_filename => 'rtg_bo_debug.log'); dbms_output.put_line('=======================================================');
dbms_output.put_line('Return Status: ' || l_return_status); IF (l_return_status <> fnd_api.g_ret_sts_success) THEN
dbms_output.put_line('x_msg_count:' || l_msg_count); error_handler.get_message_list(x_message_list => x_message_list);
dbms_output.put_line('Error Message Count :' || x_message_list.count);
FOR i IN 1 .. x_message_list.count
LOOP
dbms_output.put_line(to_char(i) || ':' || x_message_list(i).entity_index || ':' || x_message_list(i).table_name);
dbms_output.put_line(to_char(i) || ':' || x_message_list(i).message_text);
END LOOP;
END IF;
dbms_output.put_line('======================================================='); l_cnt := l_cnt + 1;
END LOOP; EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Exception Occured :');
dbms_output.put_line(SQLCODE || ':' || SQLERRM);
dbms_output.put_line('=======================================================');
RAISE;
END;

创建工艺路线

--标准工序

没有相关标准api

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

  1. ERP各个模块的缩写

    财务系统模块: Oracle 总帐管理(GL) Oracle 应付帐管理(AP) Oracle 固定资产管理(FA) Oracle 应收帐管理(AR) Oracle 现金管理(CE) Oracle 项 ...

  2. 读《31天学会CRM项目开发》记录2 - 企业信息管理系统

    在信息技术的快速推动下,企业如果依然利用传统的管理方式,以人为主,那效率便会大打折扣.在此背景下,企业信息化系统得 到了高速发展.如我们常见的ERP系统.MES系统,都是提高公司运行效率,降低运营以及 ...

  3. MES系统和ERP系统的区别是什么?

    首先得明白一点:MES(Manufacturing Execution System,即制造执行系统)系统跟ERP(Enterprise Resource Planning,企业资源计划)系统是两个完 ...

  4. 智能工厂的ERP和MES之间的区别?

    无论在哪里,ERP(Enterprise Resource Planning,企业资源计划)和MES(Manufacturing Execution System,即制造执行系统)系统都不是同样的东西 ...

  5. CRM/PLM/SCM/MES与ERP的联系与区别

    企业通过专设信息机构.信息主管,配备适应现代企业管理运营要求的自动化.智能化.高技术硬件.软件.设备.设施,建立包括网络.数据库和各类信息管理系统在内的工作平台,提高企业经营管理效率的发展模式. 那么 ...

  6. 恭喜你!看到这6个MES系统选型的大坑,千万要避免!

    随着工业4.0概念的出现,智能化生产成为了各大制造业的发展趋势! MES系统可以为企业提供包括制造数据管理.计划排程管理.生产调度管理.库存管理.质量管理.人力资源管理.工作中心/设备管理.工具工装管 ...

  7. 周黑鸭借力MES,推进智能生产

    1.项目背景介绍 中国食品企业在经过了一些年的行业整体快速增长后,国家对食品行业的管理提出了更加严格的要求,控制更严,准入门槛提高,企业数量成下降趋势. 大中型食品企业已经需要走出国门,走向国际市场, ...

  8. MES 系统介绍

    MES系统是一套面向制造企业车间执行层的生产信息化管理系统.MES可以为企业提供包括制造数据管理.计划排程管理.生产调度管理.库存管理.质量管理.人力资源管理.工作中心/设备管理.工具工装管理.采购管 ...

  9. 企业MES系统与ERP信息集成要素有哪些?

    关于要讲明企业MES系统与ERP信息集成要素有哪些,得先弄清楚他们之间的关系:从工厂的管理来说,ERP在上MES在下,ERP统领企业全局包括MES,为管理层服务,重心在于企业决策,ERP对企业宏观管理 ...

随机推荐

  1. phonegap环境搭建

    最近在开发app, html5+php 采用phonegap进行打包 前端框架采用jquery mobile 这里phonegap创建安卓项目 3种方式 1.phonegap 2.cordova 3. ...

  2. 解决键盘上符号打出来的和标着的不一样的错误&不能用ctrl+space切换输入法错误

    0.右键输入法栏,点设置 1.增加”美式键盘“ 2.切换“默认键盘”为美式 3.删除“英式键盘” 4.高级键设置,改为ctrl+space

  3. C#中的选择查询相关

    看代码实现: using System; using System.Collections.Generic; using System.Linq; using System.Text; using S ...

  4. @Component @Repository @Service @Controller

    Spring 2.5 中除了提供 @Component 注释外,还定义了几个拥有特殊语义的注释,它们分别是:@Repository.@Service 和 @Controller.在目前的 Spring ...

  5. 11、NFC技术:NDEF Uri格式解析

    NDEF Uri格式规范 与NDEF文本格式一样,存储在NFC标签中的Uri也有一定的格式 http://www.nfc-forum.org/specs/spec_dashboard 编写可以解析Ur ...

  6. Delphi 串口通信数据位长度对传输数据的影响 转

      针对串口通信,关于设置数据位长度对通信的影响,如图: 在串口数据通信中,会看到串口参数设置.其中“数据位”设置,共有四档选项,分别是8.7.6.5.那么改变这个参数会对数据的传输有什么影响呢? 我 ...

  7. IOS播放音乐和音效

    1.播放音效 1.1 首先获取到音效文件路径 NSString *path = [[NSBundle mainBundle] pathForResource:soundFileName ofType: ...

  8. 给编译好的DLL增加签名

    两个步骤,记录如下,主要用在silverlight中引用的dll要签名时: "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\ildasm ...

  9. 为什么使用开源软件(Open Source Software)

    国产软件的流氓化看起来已经蔚然成风,在安装到电脑之后,它们就不想再离开,甚至它们还想将同一家族的产品通过后台下载全部推送给你.搜狗输入法最近就被发现悄悄推送了搜狗浏览器. 一位用户用 debugvie ...

  10. (转载)OC学习篇之---类的延展

    前一篇文章我们介绍了类的类目概念和使用,那么这篇文章我们继续来介绍一下OC中的一个特性:延展. 其实说白了,延展就是弥补C语言中的前向申明,我们知道,在C语言中,如果你想调用一个函数的话,那么在此之前 ...