壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7436|回复: 73

[二次开发] 在实施的过程中经常遇到的接口问题

  [复制链接]
发表于 2009/8/17 23:55:26 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
在实施过程中,经常会遇到接口问题,急着找资料比较麻烦,现想把在实施遇到的接口汇总一下也希望大家多补充:


首先发一个是物料的,以后每天补充:
ITEM.rar (15.35 KB, 下载次数: 189)

本帖被以下淘专辑推荐:

发表于 2009/8/18 11:16:12 | 显示全部楼层
好东西,interface确实很有用
发表于 2009/8/20 22:06:09 | 显示全部楼层
在实施过程中使用接口处理一些数据导入和更新的工作,会提高实施效率,谢谢楼主分享
 楼主| 发表于 2009/8/21 00:10:16 | 显示全部楼层
OM订单导入的接口:oe_headers_iface_all, oe_lines_iface_all, oe_price_adjs_iface_all, oe_payments_interface, oe_credits_iface_all, oe_lotserials_iface_all
对于如此多的接口表,数据的要求有哪些呢?我想举个例子是最好的办法
系统正好提供一个生成数据示例的方法,有了sample数据的参照,我想接口表的结构要求就很简单了:
declare

l_return_status
varchar2(1);

l_order_number_from
number;

l_order_source_id
number;
begin

oe_debug_pub.debug_on;

oe_debug_pub.initialize;

oe_debug_pub.add('Beforeoe_inf_populate_pub call', 1);

oe_inf_populate_pub.populate_interface(p_api_version_number => 1.0,

x_return_status
=>
l_return_status,

p_order_number_from
=> &
order_number_from,

p_order_source_id
=> &
order_source_id);

oe_debug_pub.add('Beforeoe_inf_populate_pub call', 1);
end;


对于销售订单,ORIG_SYS_DOCUMENT_REF+ORDER_SOURCE_ID是唯一标识的索引。
有几点需要注意:
1.
org_idOU的区分
2.
数据更正之后,request_id字段中的数据也必须清空,不然不会处理。
 楼主| 发表于 2009/8/21 00:22:21 | 显示全部楼层
采购申请:PO_REQUISITIONS_INTERFACE_ALL
Required Data
You must always enter values for the following required columns when you load
rows into the PO_REQUISITIONS_INTERFACE_ALL table:
■ INTERFACE_SOURCE_CODE to identify the source of your imported
requisitions
■ DESTINATION_TYPE_CODE
■ AUTHORIZATION_STATUS
■ PREPARER_ID or PREPARER_NAME
■ QUANTITY
■ CHARGE_ACCOUNT_ID or charge account segment values
■ DESTINATION_ORGANIZATION_ID or DESTINATION_ORGANIZATION_
CODE
■ DELIVER_TO_LOCATION_ID or DELIVER_TO_LOCATION_CODE
■ DELIVER_TO_REQUESTOR_ID or DELIVER_TO_REQUESTOR_NAME

一般情况下,这个表PO_REQUISITIONS_INTERFACE_ALL的数据已经可以满足一般的需求,
PO_REQ_DIST_INTERFACE_ALL这个表一般情况下不需要填写数据

You must always enter values for the following required columns if you load rows
into the PO_REQ_DIST_INTERFACE_ALL table:
■ CHARGE_ACCOUNT_ID or charge account segment values
■ DISTRIBUTION_NUMBER (Although Requisition Import won't give an error if
you don't provide a value, a DISTRIBUTION_NUMBER makes it easier to
query multiple distributions in the Distributions windows in Purchasing.)
■ DESTINATION_ORGANIZATION_ID
■ DESTINATION_TYPE_CODE
■ INTERFACE_SOURCE_CODE
Additionally, you may have to enter values for the following conditionally required
columns.
AMOUNT Number x
CURRENCY_AMOUNT Number x


PO_REQ_DIST_INTERFACE_ALL
Column Name Type Required Derived Optional
In the PO_REQUISITIONS_INTERFACE_ALL table:
■ For line types with value basis of Quantity and Amount, you must provide a
value for the QUANTITY column. For line types with value basis of Fixed Price,
you must provide a value in the AMOUNT column.
■ You must provide a SOURCE_TYPE_CODE if the DESTINATION_TYPE_
CODE is 'EXPENSE' or 'SHOP FLOOR'. You must provide an ITEM_ID or item
segment values if the SOURCE_TYPE_CODE or DESTINATION_TYPE_CODE
is 'INVENTORY'.
■ For one-time items and amount-based line types, you must provide a
CATEGORY_ID or category segment values. You must additionally provide a
UNIT_OF_MEASURE or UOM_CODE for one-time items. For MRP or
Inventory planned items, you must also provide a NEED_BY_DATE.
■ You must provide the RATE_DATE and RATE_TYPE if you provide a value in
the CURRENCY_CODE column.
■ If you are using Oracle Work in Process and the DESTINATION_TYPE_CODE
is 'SHOP FLOOR', you must provide values for the following columns:
WIP_ENTITY_ID
BOM_RESOURCE_ID
WIP_REPETITIVE_SCHEDULE_ID, if the entity is a repetitive schedule
■ ITEM_ID may also be required.
In the PO_REQ_DIST_INTERFACE_ALL table:
■ You must provide a DIST_SEQUENCE_ID if MULTI_DISTRIBUTIONS is
set to Y.
■ If you do not enter a value in the QUANTITY column, you must enter
values in the ALLOCATION_TYPE and ALLOCATION_VALUE columns.
In both the PO_REQUISITIONS_INTERFACE_ALL and PO_REQ_DIST_
INTERFACE_ALL tables:
■ You must provide an ORG_ID if you have a Multiple Organization Support
setup.
■ If you are using Oracle Projects and the PROJECT_ACCOUNTING_CONTEXT
is 'Y', you must enter the relevant project accounting information in the
following columns:
PROJECT_NUM or PROJECT_ID
TASK_NUM or TASK_ID
EXPENDITURE_TYPE
EXPENDITURE_ORGANIZATION_ID
If Oracle Project Manufacturing is installed, Project Reference Enabled is
selected in the Project Manufacturing Organization Parameters window, and
the PROJECT_ACCOUNTING_CONTEXT is 'Y', you must enter the relevant
project information in the following columns:
PROJECT_NUM or PROJECT_ID
TASK_NUM or TASK_ID, if the destination type is Inventory or Shop Floor
If you are creating multiple distributions, project information must be entered
in the PO_REQ_DIST_INTERFACE_ALL table.
说明:
采购申请的示例数据比较好生成,则可以通过最大最小计划/dropship都可以生成采购申请的接口数据
 楼主| 发表于 2009/8/21 00:28:37 | 显示全部楼层
对于采购模块中,所有接口中出现的错误,都会出现在PO_INTERFACE_ERRORS中,这对于集中差错非常的方便。采购订单的接口:po_headers_interface;po_lines_interface
关于这个订单接口的描述和说明都是大块大块的字母文(ENGLISH),看起来很乏味,也不好理解,因此我还是发个示例给大家看一下吧
数据示例:
             insert into po_headers_interface
                      (interface_header_id,
                      action,
                      org_id,
                      document_type_code,
                      PO_HEADER_ID,
                      vendor_id,
                      vendor_site_code,
                      Vendor_doc_num,
                      creation_date)
                    values
                      (po_headers_interface_s.nextval,
                      'UPDATE',--'CREATE'
                      83,
                      'QUOTATION',
                      55001,
                      3338,
                      'NON PRODUCT',  
                     'PWM681',
                     sysdate);
                    commit;
                    v_flag:='Y';
                 end if;
                 Insert into po_lines_interface(
                                              interface_line_id,
                                               interface_header_id,
                                               action,
                                               item_id,
                                               item_description,
                                               unit_price,
                                               organization_id,
                                               creation_date,
                                               sourcing_rule_name)
                               values(po_lines_interface_s.nextval,
                                        po_headers_interface_s.Currval,
                                        'ADD',
                                         v_item_id,
                                         v_item_description,
                                         v_unit_price,
                                         83,
                                         sysdate,
                                         v_item_number);
 楼主| 发表于 2009/8/21 00:34:25 | 显示全部楼层
接收接口
Sample Receiving Open Interface Script (ezROI).rar (4.76 KB, 下载次数: 108)
 楼主| 发表于 2009/8/21 00:49:01 | 显示全部楼层
库存接口mtl_transactions_interface
mtl_transaction_lots_interface
mtl_serial_numbers_interface
库存的标准接口为以上的接口表
由于库存特殊的业务要求,还存在一组临时表
mtl_material_transactions_temp
mtl_transaction_lots_temp
MTL_SERIAL_NUMBERS_TEMP
顺序:先interface -> temp ->正式系统
对于杂项事务处理,都是直接走temp表,而不通过interface,temp表中的数据可以实现保留的功能,且实时生效。
库存标准接口.rar (794 Bytes, 下载次数: 115)
发表于 2010/4/30 23:52:26 | 显示全部楼层
顶顶顶顶顶顶,关键是想找找物料分配.....,谢谢
发表于 2010/5/2 00:55:23 | 显示全部楼层
回复 4# enjoylife


    高手!
发表于 2010/5/2 00:59:58 | 显示全部楼层
回复 8# enjoylife


    非常感谢
发表于 2010/5/2 01:07:50 | 显示全部楼层
我也找个资料共享下  希望对大家有用

深入浅出Oracle EBS之常用接口开发参考.pdf

1012.36 KB, 下载次数: 94, 下载积分: 努力值 -5 点

发表于 2010/5/14 14:29:22 | 显示全部楼层
收藏.........
发表于 2010/5/18 21:33:59 | 显示全部楼层
很不錯的資料,目前在導入 R12 ,正好拿來參考
個人以為,12樓 liu-x 提供的資料,一般導入顧問公司應該要主動提供才對,不過接觸過幾家都沒有...
发表于 2010/5/18 21:48:29 | 显示全部楼层
顶顶顶顶顶顶,关键是想找找物料分配.....,谢谢
chensh2008 发表于 2010/4/30 23:52

物料分配在物料导入中就有

发表于 2010/5/20 13:09:23 | 显示全部楼层
下载学习....
发表于 2010/5/25 09:27:29 | 显示全部楼层
好东西啊,学习一下
发表于 2010/5/25 17:18:13 | 显示全部楼层
顶顶顶顶顶顶,关键是想找找物料分配.....,谢谢
发表于 2010/5/26 21:05:37 | 显示全部楼层
顶  楼主
感谢分享
发表于 2010/6/7 16:47:48 | 显示全部楼层
谢谢分享呀 ,顶!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 00:12 , Processed in 0.043330 second(s), 22 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表