2.价目表行(qp_interface_list_lines)
2.1查询价目表行信息
--2.2.查询价目信息
begin
select qlh.list_header_id, qll.list_line_id
into lt_lines.list_header_id, lt_lines.list_line_id
from mtl_system_items_b msi, qp_pricing_attributes qpa, qp_list_lines qll, qp_list_headers qlh
where msi.organization_id = 102
and msi.inventory_item_id = qpa.product_attr_value
and qpa.pricing_phase_id = 1
and qpa.qualification_ind = 4
and qpa.product_attribute_context = 'ITEM'
and qpa.list_line_id = qll.list_line_id
and qpa.list_header_id = qll.list_header_id
and qll.list_line_type_code = 'PLL'
and qll.list_header_id = qlh.list_header_id
and qlh.active_flag = 'Y'
and qlh.list_type_code = 'PRL'
and qlh.end_date_active is null
and qlh.name like '%外贸%'
and qlh.currency_code = c_wm_lines.transactional_curr_code
and upper(msi.segment1) = upper(c_wm_lines.segment1)
and rownum < 2;
lt_lines.interface_action_code := g_update; --更新
exception
when no_data_found then
lt_lines.interface_action_code := g_insert; --创建
when others then
raise e_exception;
end;
lt_lines.orig_sys_line_ref := 'L_M_' || to_char(c_wm_lines.moss_price_id);
lt_lines.orig_sys_header_ref := prm_header.orig_sys_header_ref;
lt_lines.list_line_type_code := 'PLL';
--lt_lines.start_date_active := c_wm_lines.start_date_active;
lt_lines.start_date_active := l_current_date;
lt_lines.arithmetic_operator := 'UNIT_PRICE';
lt_lines.operand := c_wm_lines.invoice_price;
lt_lines.primary_uom_flag := 'Y';
lt_lines.product_precedence := 220;
lt_lines.process_flag := 'Y';
lt_lines.process_status_flag := 'P';
2.2插入价目表行
insert into qp_interface_list_lines
(orig_sys_line_ref, --1.原始价目表行ID
orig_sys_header_ref, --2.原始价目表题头ID
list_line_type_code, --3.行类型
start_date_active, --4.有效起始日期
arithmetic_operator, --5.UNIT_PRICE
operand, --6.价格
primary_uom_flag, --7.是否主要单位
product_precedence, --8.优先顺序
interface_action_code, --9.操作方式
process_flag, --10.处理标志
process_status_flag, --11.处理状态
list_header_id,
list_line_id)
values
(prm_line.orig_sys_line_ref, --1.原始价目表行ID
prm_line.orig_sys_header_ref, --2.原始价目表题头ID
prm_line.list_line_type_code, --3.行类型
prm_line.start_date_active, --4.有效起始日期
prm_line.arithmetic_operator, --5.UNIT_PRICE
prm_line.operand, --6.价格
prm_line.primary_uom_flag, --7.是否主要单位
prm_line.product_precedence, --8.优先顺序
prm_line.interface_action_code, --9.操作方式
prm_line.process_flag, --10.处理标志
prm_line.process_status_flag, --11.处理状态
prm_line.list_header_id,
prm_line.list_line_id);
分享到:
相关推荐
EBS-R12.2.4-安装指南-V01EBS-R12.2.4-安装指南-V01EBS-R12.2.4-安装指南-V01EBS-R12.2.4-安装指南-V01
EBS-R12-AR系统设置-应收票据设置测试。。。。。。。。。。。。。。。。
ERP-ORACLE-EBS-AP预付款管理--操作
ebs的bom接口导入程序,从原来bom复制出来并加工数据导入生成一个新的bom,包括资源、用量的复制功能
(word完整版)oracleEBS-功能-基本操作手册-.doc
EBS-审计功能配置文档。...在实际业务中对一些敏感信息(例如订单行中物料、数量或价目表中的价格信息等等),审计功能可以严格监控操作人员的对系统所做的修改,查找历史数据值,对于提系统的安全性提供了很大的帮助。
ERP-ORACLE-EBS-AP预付款管理--流程
ORACLEEBS-OU-BG-INV-HR等组织架构介绍.pdf
ORACLE-EBS-OU-BG-INV-HR等组织架构介绍.doc
ORACLEEBS-OU-BG-INV-HR等组织架构介绍(20211120083100).pdf
ORACLE EBS-R12-设置文档_税信息设置详细手册_V1.0
EBS12-AD Administration - Non-Interactive Operation, and Maintenance Mode-EDU41DCY
(完整word版)01ORACLE-EBS-组织架构介绍-详细-r12.doc
EBS12-Generate Applications Files Tasks-EDU41D8Y
EBS12-Preparing For Your Installation-EDU41CFY.pdf
EBS12-Oracle Applications File System-EDU41D4Y.pdf
供应商客户导入功能
完整的Oracle ebs ASCP(高级计划排程)模块的方案及相关对应的设置测试文档,可以学习整个ASCP的设置和流程。
ERP-ORACLE-EBS-AP发票管理--功能流程
ERP-ORACLE-EBS-AR发票管理--功能流程