All_从PO - INV - AP - SLA - GL重要数据表和接口程式(概念)
2014-07-09 Created By BaoXinjian
1. 建立请购单
(1). 接口信息
- 接口程式: 导入申请
- 接口Form:
- 接口Interface: po_requisitions_interface_all
- 接口API:
- 案例:
(2). 数据库表
select * from po_requisition_headers_all
where segment1 = '14304'
and type_lookup_code = 'PURCHASE'
and wf_item_type = 'REQAPPRV'
select * from po_requisition_lines_all
where requisition_header_id = 181271
select * from po_req_distributions_all
where requisition_line_id = 208479
2. 建立询价单
(1). 接口信息
- 接口程式
- 接口Form
- 接口Interface
- 接口API
(2). 数据库表
select * from po_headers_all
where segment1 = '308'
and type_lookup_code = 'RFQ'
select * from po_lines_all
where po_header_id = 110415
select * from po_line_locations_all
where po_header_id = 110415
3. 建立报价单
(1). 接口信息
- 接口程式
- 接口Form
- 接口Interface
- 接口API
(2). 数据库表
select * from po_headers_all
where segment1 = '503'
and type_lookup_code = 'QUOTATION'
select * from po_lines_all
where po_header_id = 110411
select * from po_line_locations_all
where po_header_id = 110411
4. 建立采购单
(1). 接口信息
- 接口程式: Import Standard Purchase Order
- 接口Form: NA
- 接口Interface: po_headers_interface / po_lines_interface / po_distributions_interface
- 接口API: NA
(2). 数据库表
select * from po_headers_all
where segment1 = '6028'
and type_lookup_code = 'STANDARD'
select * from po_lines_all
where po_header_id = 110386
select * from po_line_locations_all
where po_line_id = 173315
select * from po_distributions_all
where line_location_id = 264461
and req_distribution_id = 206998
5. 接收采购单
(1). 接口信息
- 接口程式: 接收事务处理处理器
- 接口Form
- 接口Interface: rcv_headers_interface / rcv_transactions_interface
- 接口API
- 案例: 运费导采购、MRP导申请、POP导申请
(2). 数据库表
select * from rcv_shipment_headers
where receipt_num = 8458
and creation_date > trunc(sysdate)
select * from rcv_shipment_lines
where shipment_header_id = 4815907
and creation_date > trunc(sysdate)
1. 入库采购单
(1). 接口信息
- 接口程式
- 接口Form
- 接口Interface
- 接口API
(2). 数据库表
select * from mtl_material_transactions
where creation_date > trunc(sysdate)
1. 建立发票
(1). 接口信息
- 接口程式: 应付款管理系统开放接口导入
- 接口Form
- 接口Interface: ap_invoices_interface / ap_invoice_lines_interface / ap_invoice_rejections
- 接口API
- 案例: 运费导AP、费用导AP
(2). 数据库表
select status from ap_invoices_interface
where creation_date > trunc(sysdate)
select * from ap_invoice_lines_interface
where invoice_id = 2283731
select * from ap_invoices_all
where creation_date > trunc(sysdate)
select * from ap_invoice_lines_all
where invoice_id = 211380
select * from ap_invoice_distributions_all
where invoice_id = 211380
select * from ap_payment_schedules_all
where invoice_id = 211380
2. 建立付款
(1). 接口信息
- 接口程式
- 接口Form
- 接口Interface
- 接口API
(2). 数据库表
select * from ap_checks_all
where creation_date > trunc(sysdate)
select * from ap_invoice_payments_all
where check_id = 77570
creation_date > trunc(sysdate-10)
select * from ap_payment_distributions_all
where creation_date > trunc(sysdate-1)
1. 抛账至SLA
select * from xla_events
where event_id = 3322714
select * from xla_transaction_entities
where creation_date > trunc(sysdate-1)
select * from xla_ae_headers
where event_id = 3322714
select * from xla_ae_lines
where ae_header_id = 4947978
select * from xla_distribution_links
where ae_header_id = 4947978
1. 抛账至总账
(1). 接口信息
- 接口程式:
- 接口Form:
- 接口Interface: gl_interface
- 接口API:
- 案例: ADI导日记账、返利导日记账
(2). 数据库表
select * from gl_interface
where accounting_date > trunc(sysdate-90)
select count(*) from gl_import_references
where creation_date > trunc(sysdate)
and je_header_id in (4681155, 4681156)
select * from gl_je_headers
where creation_date > trunc(sysdate)
and je_header_id in (4681155, 4681156)
select * from gl_je_lines
where creation_date > trunc(sysdate)
and je_header_id in (4681155, 4681156)
2. 总账中过账
select * from gl_balance
1. 库存事务接口:mtl_transactions_interface
- 1)一般用来做各类杂收发、Cost Update,对于和业务有关的事务一般不建议使用,比如SO发货,如果自己发会导致Workflow没有往下走
- 2)成功导入之后运行Cost Manager生成会计分录
- 3)平均成本更新也通过此接口;如果该Item没有交易,则成本数据不会进入cst_item_costs
2. 固定资产接口:fa_mass_additions
- 1)fa_mass_additions这个表有几个Trigger需要注意;会自动去插其他表,删除的时候也是
- 2)折旧方法接口表无法给,而是自动从Category继承下来,所以导入之后需要Update表
- 3)不是通过AP引过来的FA,是没有Source Lines信息的;如果需要,可以通过插表来实现
- 4)数据进接口之后从Navigator:Mass Additions/Post Mass Additions提交请求集,这样会有个报表显示导入结果。不过我的测试程序可以直接提交请求集。
3. 总账分录接口:gl_interface
- 1)最简单的接口,不说了
4. 应付发票接口:ap_invoices_interface/ap_invoice_lines_interface
- 1)Profile AP: Use Invoice Batch Controls定义是否使用批控制
- 2)仅支持CREDIT/STANDARD;注意金额正负,小于零用CREDIT,大于零用STANDARD
- 3)PREPAYMENT/DEBIT/EXPENSE REPORT/MIXED不支持,先用CREDIT或者STANDARD,进去之后再Update正式表ap_invoices_all
- 4)导入之后可再调用请求Invoice Validation自动Validate发票
5. 应收发票接口:ra_interface_lines_all/ra_interface_salescredits_all
- 1)几个接口表之间的关系和其他接口不同,不是通过ID关联,而是通过描述性弹性域Line Transaction Flexfield定义
- 2)接口给ID还是Name,要根据Transaction Source上的定义,不能随便给
- 3)ra_interface_distributions_all这个表可以不插,让系统自动生成分配行
- 4)如果没有销售员,可以提供一条ID=-3的No Sales Person记录给接口。这个要看AR System Option Miscellaneous上的设置是否要求销售员
6. 应收收据接口:ar_interim_cash_receipts_all
- 1)AR Receipt标准接口是Lockbox,需要预先定义Format;Oracle根据Format定义把接口数据写到ar_interim_cash_receipts_all;我们可以跳过第一步,直接把数据插入到ar_interim_cash_receipts_all,不过Batch需要我们直接插表
- 2)在Batch界面查看:数据在ar_interim_cash_receipts_all的Batch Type为 Mannual Quick
- 3)Batch的Currency取本位币即可,收据用需要的货币
7. 客户导入接口:ra_customers_interface_all/ra_customer_profiles_int_all/ra_contact_phones_int_all
- 1)要导Customer,ra_customer_profiles_int_all需要有记录
- 2)orig_system_party_ref相同的话,Customer_Number不同,可以在一个Party下建多个Customer
- 3)ship to的bill_to_orig_address_ref可用bill to的orig_system_address_ref,这样可以自动关联
- 4)需要打Patch 3606744和3558213,否则Statement和Dunning类型的Site Use导不进去
- 5)不是所以字段都可以从Interface进去;以HZ_Cust_Site_Uses_all为例,导入之后需要直接Update如下比较重要的字段:payment_term_id、order_type_id、warehouse_id、territory_id、primary_salesrep_id
- 6)更新HZ_Cust_Site_Uses_all的Primary_flag的时候注意同时更新hz_cust_acct_sites_all的bill_to_flag和ship_to_flag为P(Primary)或者Y
8. 销售订单接口:oe_headers_iface_all/oe_lines_iface_all/oe_actions_iface_all
- 1)整张Close的订单可以通过接口表;Close的订单,Oracle几乎是直接插表;其他的要做很多验证
- 2)部分行Close的订单,可以给行Assign一个仅负责Close(Enter/Fulfill/Close/End)的工作流,这样Workflow Back Ground Process起来之后就会Close
- 3)非Close的订单行号不能重复,所以接口表我们给空;如果有需要待导入后Update Line表即可
- 4)数量正负要与Line Type的类型一致,正的对Order,负的对Return,否则接口报Inventory Item错误
- 5)订单号更新需要更新几个表:oe_order_headers_all/wsh_delivery_details/mtl_sales_orders
- 6)订单行在收货或者发货不足的情况下会拆行,拆行的时候系统几乎是拷贝所有的字段,如果碰到Unique的字段会失败。我碰到的问题是把源系统的line_id记录在弹性域上,并给这个弹性域建了Unique索引,导致Dropship的订单采购部分收货老是报错
9. 采购订单接口:po_headers_interface/po_lines_interface/po_distributions_interface
- 1)PO接口有问题可察看错误信息表po_interface_errors,可以解决大部分问题
- 2)本位币导入之后,头上的Rate Date为空,需要Update表
- 3)quantity_billed也可以事后更新,这样AP不会再Match过来
- 4)审批记录可以直接插入表po_action_history
- 5)注意采购的Valdiate ORG
- 6)如果Item没有Assign给Ship_to_org,会报No data found错误
10.采购接收接口:rcv_shipment_headers/rcv_transactions_interface
- 1)收据头直接写表;收据行和收货事务通过接口
- 2)注意parent_transaction_id,Receive需要放空
- 3)PO接口有问题可察看错误信息表po_interface_errors,可以解决大部分问题
- 4)如果要再现原来的Receiving Transaction,可按如下顺序分批进入接口RECEIVE、TRANSFER、ACCEPT、REJECT、DELIVER、RETURN TO RECEIVING、RETURN TO VENDOR、CORRECT
11.库存项目接口:mtl_system_items_interface
- 1)在Master Org新增Item比较简单,给足需要的字段即可
- 2)在其他组织增加Item(相当于从Master Assign后再Update),需要注意Master Org Conctrol的字段需要保持主组织的值(比较多,看mtl_item_attributes的Conctrol_level = 1)
- 3)在其他组织增加Item还需要注意一些字段需要保持主组织的值,否则接口会报错,它们是create_supply_flag、dual_uom_control、buyer_id、allowed_units_lookup_code、purchasing_item_flag、internal_order_flag、inventory_item_flag
- 4)如果要给Item Assign Category,可以通过mtl_item_categories_interface,对应的请求是Item Category Assignment Open Interface
参考:
http://blog.csdn.net/pan_tian/article/details/7770412/
http://zhangzhongjie.iteye.com/blog/1977931
http://blog.chinaunix.net/uid-324202-id-3413901.html
All_从PO - INV - AP - SLA - GL重要数据表和接口程式(概念)的更多相关文章
- INV Close Period & GL Import Journal > DML tables
1. (N) Inventory > Accounting Close Cycle > Inventory Accounting Periods Insert data ...
- Java中PO、BO、VO、DTO、POJO、DAO概念及其作用和项目实例图(转)
PO(bean.entity等命名): Persistant Object持久对象,数据库表中的记录在java对象中的显示状态 最形象的理解就是一个PO就是数据库中的一条记录. 好处是可以把一条记录作 ...
- 数据孤岛下的新破局 Real Time DaaS:面向 AP+TP 业务的数据平台架构
从传统数仓,到大数据平台,再到数据中台和湖仓一体新数据平台,在日益加重的数据孤岛困扰下,面向AP场景的解决方案可谓浩如烟海.但实际上,企业在TP类型业务上的投入和AP的比率却高达9:1,为什么没有为T ...
- EBS总账(GL)模块常用表
select * from gl_sets_of_books 总帐 select * from gl_code_combinations gcc wheregcc.summary_flag='Y ...
- 【java编程】vo、po、dto、bo、pojo、entity、mode如何区分
Java Bean:一种可重用组件,即“一次编写,任何地方执行,任何地方重用”.满足三个条件 类必须是具体的和公共的 具有无参构造器 提供一致性设计模式的公共方法将内部域或暴露成员属性 VO valu ...
- oracle erp 表结构
BOM模块常用表结构 表名: bom.bom_bill_of_materials 说明: BOM清单父项目 BILL_SEQUENCE_ID NUMBER 清单序号(关键字)ASSEMBLY_ITEM ...
- Oracle EBS BOM模块常用表结构
表名: bom.bom_bill_of_materials 说明: BOM清单父项目 BILL_SEQUENCE_ID NUMBER 清单序号(关键字)ASSEMBLY_ITEM_ID NUMBE ...
- Hibernate概念初探
概述 Hibernate是一个开源代码的对象关系映射(ORM)框架,是基于Java的持久化中间件,它对JDBC进行轻量级的对象封装. 它不仅提供了从Java类到数据表之间的映射,也提供了查询和事务机制 ...
- Oracle Ebs R12 SLA与GL关系变化
http://www.cnblogs.com/bruce_zhao/p/3809886.html Oracle Ebs R12 SLA与GL关系变化 SLA概念:SLA(Subledger Accou ...
随机推荐
- [POI 2008][BZOJ 1132]Tro
这题我真是无能为力了 这题的做法还是挺简单的 枚举左下角的点做为原点,把其余点按极角排序 PS.是作为原点,如枚举到 k 时,对于所有 p[i] (包括p[k]) p[i]-=p[k] (此处为 ...
- 异步IO/数据库/队列/缓存
同步与异步的性能区别 mport gevent def task(pid): """ Some non-deterministic task ""& ...
- ps调整图层
自然饱和度:自然饱和度命令和色相饱和度命令里的饱和度相比最大的区别是自然饱和度只增加未达到饱和的颜色的饱和度,而饱和度命令则增加整个图像的饱和度,可能会导致图像颜色过于饱和,而自然饱和度不会出现这种问 ...
- radhat 6.4/centos 6.4 下编译安装 最新ruby 2.1.5
#安装编译环境 yum groupinstall "Development tools" 或者 yum install gcc gcc-c++ gcc-g77 flex bison ...
- java .net compartion
1, http://www-01.ibm.com/software/smb/na/J2EE_vs_NET_History_and_Comparison.pdf http://stackoverflow ...
- LINQ及EntityFramework何时从数据库返回数据,备忘
Generally speaking, LINQ queries are executed when the application code processes data (for instance ...
- 07-Java 中的IO操作
1.Java IO简介: (1)I/O :in \out 即输入与输出.基本功能:读写. (2)IO流:作用:读写设备上的数据,硬盘文件.内存.键盘.网络-- 根据数据的走向,可分为:输入流.输出流. ...
- linux库之pam
http://www.ibm.com/developerworks/cn/linux/l-pam/http://docs.oracle.com/cd/E19253-01/819-7056/ch3pam ...
- DIV的绝对居中
来源:http://www.cnblogs.com/damonlan/archive/2012/04/28/2473525.html 作者:浪迹天涯 很多时候,我们需要在浏览器中让一个div居中进行显 ...
- Oracle报错,ORA-28001: 口令已经失效
Oracle11G创建用户时缺省密码过期限制是180天(即6个月), 如果超过180天用户密码未做修改则该用户无法登录. Oracle公司是为了数据库的安全性默认在11G中引入了这个默认功能,但是这个 ...