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 ...
随机推荐
- java的nio之:java的nio系列教程之DatagramChannel
Java NIO中的DatagramChannel是一个能收发UDP包的通道.因为UDP是无连接的网络协议,所以不能像其它通道那样读取和写入.它发送和接收的是数据包. 打开 DatagramChann ...
- Python3字典中items()和python2.x中iteritems()有什么区别
在Python2.x中,items( )用于 返回一个字典的拷贝列表[Returns a copy of the list of all items (key/value pairs) in D],占 ...
- GDB动态库搜索路径
当GDB无法显示so动态库的信息或者显示信息有误时,通常是由于库搜索路径错误导致的,可使用set sysroot.set solib-absolute-prefix.set solib-search- ...
- C# HttpRequest 中文编码问题
工作中的项目要用到别家的网络短信平台,工作中遇到中文编码的问题,特总结以备忘. GET方法: public string DoWebRequest(string url) { ...
- 【转】javascript入门系列演示·三种弹出对话框的用法实例
对话框有三种 1:只是提醒,不能对脚本产生任何改变: 2:一般用于确认,返回 true 或者 false ,所以可以轻松用于 if...else...判断 3: 一个带输入的对话框,可以返回用户填入的 ...
- HadoopDoctor:来自腾讯数据仓库TDW的MR诊断系统
TDW是基于Hadoop生态圈研发的大数据处理平台,MapReduce计算引擎在TDW平台中承担了所有的离线数据计算,是TDW最重要的底层支撑平台之一.在TDW 平台中,除了MR程序会生成MapRed ...
- Rest Client(Rest接口调试工具,有保存功配置功能) chrome浏览器插件
Rest Client(Rest接口调试工具,有保存功配置功能) chrome浏览器插件 下载地址 插件的操作很简单,下面是一些简单的实例. 1.安装 在谷歌应用商城搜索postman,如下图1-1所 ...
- 网站首页title 里显示ico图标
有两种实现方式 图片尺寸大小 第一种:直接做一个favicon.ico 图标放在项目的根目录里就行 第二种:在网页HEAD标记中添加如下代码:<HEAD> <LINK REL=”SH ...
- 【shiro】org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token
org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.sh ...
- iptables基础信息介绍
在linux系统下,网络安全,除了有SElinux,另外就是iptables防火墙了,这个是用的最多也是功能非常强大的一个工具,今天就对其简单的架构上技术进行概要描述.让自己后续能够逻辑清晰的处理云环 ...