ORACLE EBS Sales Order销售订单【Open Interface、Open API】

来源:互联网 发布:微信群淘宝返利靠谱吗 编辑:程序博客网 时间:2024/04/25 11:49

快速参考

参考点 内容 功能导航 N: OM/Orders, Returns/Sales Order 并发请求 N: OM/View/Request/Order Import 接口表 oe_headers_iface_all/oe_lines_iface_all/oe_actions_iface_all/…. API oe_order_pub.process_order 错误信息表 接口Form N: 接口Report N/A Debug Profile OM: Debug Level 详细例子 oracle_iface_scripts_pkg.oe_so_iface 官方文档 115mfgapi.pdf/ 115omapi.pdf:Oracle Manufacturing APIs and Open Interfaces Manual / Oracle Order Management Open Interfaces, API, & Electronic Messaging Guide 数据验证包

开发参考

接口表、错误信息表

Table List:

接口表 数据表 说明 oe_headers_iface_all oe_order_headers_all 订单头 oe_lines_iface_all oe_order_lines_all 订单行 oe_actions_iface_all 订单操作控制 错误信息表

Table Relation:

头和行关联:OU、订单来源、头参考
头和Action关联:OU、订单来源、头参考
如果Action的行参考为空,说明控制整个订单,否则控制单行
_errors
1

并发程序

N: OM/View/Requst/Order Import

这里写图片描述

参数 说明 Order Source 订单来源 Order Reference 订单参考 Validate Only 是否仅验证 Instance 并发数 zebra stripes are neat

Interface Form

N: 无

关键字段(参数)+最简单例子

订单头和订单行,大部分字段都可以根据Default Rule自定给出;不过,为精确控制,确定的字段我们还是尽可能给出为好。

关键字段

oe_headers_iface_all

字段 说明 org_id OU order_number 订单号,自动编号的,给空 order_source_id 订单来源,手工输入是0,即Online orig_sys_document_ref 订单参考,和订单来源构成唯一性,一般用来标志源系统ID operation_code INSERT或者UPDATE,当订单来源和参考组合存在时用更新,当订单为Enter状态时,可以DELETE ready_flag Y ordered_date 订单日期 order_type_id 订单类型 price_list_id 价目表 conversion_type_code 货币转换类型,可由订单类型默认 transactional_curr_code 货币单位 tax_exempt_flag S,税务免除标志 payment_term_id 付款条件,也可以默认 salesrep_id 销售员ID sold_from_org_id 销售OU sold_to_org_id 客户ID,来自hz_cust_accounts ship_from_org_id 发运库存 ship_to_org_id 发运地址,来自hz_cust_site_uses_all invoice_to_org_id 开票地址,来自hz_cust_site_uses_all booked_flag Y或者N closed_flag Y或者N 5个who字段 习惯上都给

oe_lines_iface_all

字段 说明 org_id OU order_source_id 订单来源,手工输入是0,即Online orig_sys_document_ref 订单参考,和订单来源构成唯一性,一般用来标志源系统ID orig_sys_line_ref 行参考,与上面两个构成唯一性,一般用来标志源系统ID operation_code INSERT或者UPDATE,当订单来源和参考组合存在时用更新,当订单为Enter状态时,可以DELETE split_from_line_ref 拆行时,标志来源行参考 line_number 行号,非Close的订单行号不能重复。接口表我们可以给空由系统自动编号;如果有需要待导入后Update Line表即可 shipment_number 发运行号 line_type_id 行类型 item_type_code 物料类别,默认由ITEM类型决定,通常是STANDARD inventory_item_id Item ID source_type_code EXTERNAL或者INTERNAL,可由默认规则确定 ordered_quantity 订单数量,正负要与Line Type一致,正的对Order,负的对Return,否则接口报Inventory Item错误 order_quantity_uom 单位 unit_list_price 价目表价格 unit_selling_price 实际销售价格 calculate_price_flag N或者Y,是否自动计算价格 5个who字段 习惯上都给

oe_actions_iface_all

字段 说明 org_id OU order_source_id 订单来源,手工输入是0,即Online orig_sys_document_ref 订单参考,和订单来源构成唯一性,一般用来标志源系统ID orig_sys_line_ref 行参考,与上面两个构成唯一性,一般用来标志源系统ID operation_code CLOSE_ORDER/ BOOK_ORDER,用于关闭订单或行或行 /用户预定订单

Open Inerface最简单例子(新建Book的订单)

ERP 销售订单 RMA 开发接口案例

0 0
原创粉丝点击