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重要数据表和接口程式(概念)的更多相关文章

  1. INV Close Period & GL Import Journal > DML tables

    1.       (N) Inventory > Accounting Close Cycle > Inventory Accounting Periods     Insert data ...

  2. Java中PO、BO、VO、DTO、POJO、DAO概念及其作用和项目实例图(转)

    PO(bean.entity等命名): Persistant Object持久对象,数据库表中的记录在java对象中的显示状态 最形象的理解就是一个PO就是数据库中的一条记录. 好处是可以把一条记录作 ...

  3. 数据孤岛下的新破局 Real Time DaaS:面向 AP+TP 业务的数据平台架构

    从传统数仓,到大数据平台,再到数据中台和湖仓一体新数据平台,在日益加重的数据孤岛困扰下,面向AP场景的解决方案可谓浩如烟海.但实际上,企业在TP类型业务上的投入和AP的比率却高达9:1,为什么没有为T ...

  4. EBS总账(GL)模块常用表

     select * from gl_sets_of_books 总帐 select * from gl_code_combinations gcc wheregcc.summary_flag='Y ...

  5. 【java编程】vo、po、dto、bo、pojo、entity、mode如何区分

    Java Bean:一种可重用组件,即“一次编写,任何地方执行,任何地方重用”.满足三个条件 类必须是具体的和公共的 具有无参构造器 提供一致性设计模式的公共方法将内部域或暴露成员属性 VO valu ...

  6. oracle erp 表结构

    BOM模块常用表结构 表名: bom.bom_bill_of_materials 说明: BOM清单父项目 BILL_SEQUENCE_ID NUMBER 清单序号(关键字)ASSEMBLY_ITEM ...

  7. Oracle EBS BOM模块常用表结构

    表名: bom.bom_bill_of_materials  说明: BOM清单父项目  BILL_SEQUENCE_ID NUMBER 清单序号(关键字)ASSEMBLY_ITEM_ID NUMBE ...

  8. Hibernate概念初探

    概述 Hibernate是一个开源代码的对象关系映射(ORM)框架,是基于Java的持久化中间件,它对JDBC进行轻量级的对象封装. 它不仅提供了从Java类到数据表之间的映射,也提供了查询和事务机制 ...

  9. Oracle Ebs R12 SLA与GL关系变化

    http://www.cnblogs.com/bruce_zhao/p/3809886.html Oracle Ebs R12 SLA与GL关系变化 SLA概念:SLA(Subledger Accou ...

随机推荐

  1. JavaWeb学习记录(八)——servlet获取配置信息

    jdbc.properties内容如下: jdbcUrl=jdbc\:mysql\://localhost\:3306/animaluser=rootpass=root servlet获取资源信息代码 ...

  2. 20145220 实验五 Java网络编程

    20145220 实验五 Java网络编程 实验内容 1.用书上的TCP代码,实现服务器与客户端. 2.客户端与服务器连接 3.客户端中输入明文,利用DES算法加密,DES的秘钥用RSA公钥密码中服务 ...

  3. glibc下的内存管理

    在解码过程中我们也遇到了类似的问题,第一次解码的音频比较大60s,耗了3G的内存,reset之后内存并没有退还给操作系统,第二次即使解一个10s的音频 几周前我曾提到,我被项目组分配去做了一些探究li ...

  4. 了解oracle数据库的情况

    1.了解你的数据库版本号 2.是否配置了DataGuard? SQL> select protection_mode, protection_level, remote_archive,data ...

  5. Unicode基本概念

    Unicode是计算机可以支持这个星球上多种语言的秘密武器.通过使用一个或者多个字节来表示一个字符的方法突破了ASCII的限制.Unicode可以表示超过90000个字符. 使用方式:a=u'hell ...

  6. Web前端开发笔试&面试_04

    >>XDL: 1.在CSS中,选择器的优先级?(如important,id,class 这些……) 2.如何消除行内间隙? Inline-block 3. 如何清除浮动? —— 4. CS ...

  7. Linux复制指定目录及子目录下特定类型的文件

    首先建立一个用于测试的目录,用'tree'命令查看其结构如下所示: 可见,目录中主要包含用于测试的*.txt文件和用于充当炮灰的*.tes文件 目标是保持当前的目录结构,只把txt文件复制出来 方法一 ...

  8. Pigs and chickens

    “Pigs and chickens”是Scrum软件开发模式中的一个比喻,用来比喻参会者在每天的Scrum会议中所起的作用. 在橄榄球中,scrum的意思是“重新开始游戏”.对于程序员来说,每日Sc ...

  9. C# 使用ffmpeg.exe进行音频转换完整demo

    今天在处理微信的开发接口时候,发现微信多媒体上传接口中返回的音频格式是amr.坑人的是现在大部分的web 播放器,不支持amr的格式播放.试了很多方法都不行. 没办法,只要找一个妥协的解决方案:将am ...

  10. RedHat5安装好后没有ip

    RedHat5安装好后,ifconfig查不到ip. 设置有问题.关闭虚拟机,点击下图所指,调出虚拟网络编辑器: 点击还原默认设置,应用,确定. 重启虚拟机,ifconfig,是不是查到ip了呢?