Open Inerface最简单例子(接收退回供应商)(11.5.9 GITI环境测试通过)

脚本如下:

DECLARE

l_iface_rcv_rec po.rcv_transactions_interface%ROWTYPE;

l_cur_mfg_org_id NUMBER := 82; --Current Inv Organization

l_user_id        NUMBER := 0; --User ID?Sysadmin

BEGIN

l_iface_rcv_rec.last_update_date  := SYSDATE;

l_iface_rcv_rec.last_updated_by   := l_user_id;

l_iface_rcv_rec.creation_date     := SYSDATE;

l_iface_rcv_rec.created_by        := l_user_id;

l_iface_rcv_rec.last_update_login := -1;

SELECT rcv_transactions_interface_s.NEXTVAL

INTO l_iface_rcv_rec.interface_transaction_id

FROM dual;

SELECT po.rcv_interface_groups_s.NEXTVAL

INTO l_iface_rcv_rec.group_id

FROM dual;

l_iface_rcv_rec.shipment_header_id      := 290773; --Shipment Header

l_iface_rcv_rec.processing_status_code  := 'PENDING';

l_iface_rcv_rec.transaction_status_code := 'PENDING';

l_iface_rcv_rec.processing_mode_code    := 'BATCH';

l_iface_rcv_rec.receipt_source_code := 'VENDOR';

l_iface_rcv_rec.vendor_id           := 29843;

l_iface_rcv_rec.vendor_site_id      := 765; --Optional

l_iface_rcv_rec.source_document_code := 'PO';

l_iface_rcv_rec.po_header_id         := 148552;

l_iface_rcv_rec.po_line_id           := 1062557;

l_iface_rcv_rec.po_line_location_id  := 731140;

l_iface_rcv_rec.po_release_id        := NULL;

l_iface_rcv_rec.transaction_type      := 'RETURN TO VENDOR';

l_iface_rcv_rec.auto_transact_code    := NULL;

l_iface_rcv_rec.destination_type_code := 'RECEIVING';

l_iface_rcv_rec.shipment_line_id      := 586489;

l_iface_rcv_rec.parent_transaction_id := 1302078;

l_iface_rcv_rec.po_distribution_id    := NULL;

l_iface_rcv_rec.from_organization_id  := l_cur_mfg_org_id;

l_iface_rcv_rec.category_id             := 395;

l_iface_rcv_rec.item_id                 := 18753;

l_iface_rcv_rec.item_description        := '粉笔 白色';

l_iface_rcv_rec.transaction_date        := SYSDATE;

l_iface_rcv_rec.quantity                := .9;

l_iface_rcv_rec.unit_of_measure         := '件'; --Not Code

l_iface_rcv_rec.to_organization_id  := l_cur_mfg_org_id;

l_iface_rcv_rec.ship_to_location_id := NULL;

l_iface_rcv_rec.location_id         := NULL;

l_iface_rcv_rec.interface_source_code    := 'Just Test';

l_iface_rcv_rec.interface_source_line_id := '987654321';

INSERT INTO po.rcv_transactions_interface VALUES l_iface_rcv_rec;

dbms_output.put_line('group_id:' || l_iface_rcv_rec.group_id);

END;

Open Inerface最简单例子(RMA接收入库)(11.5.10.2 本机测试通过)

1、        接收前需要判断订单行状态必须是Awaiting Return。

2、        如果RMA接收路线是标准接收,那么下面例子routing_header_id改为1即可。

3、        不需要调用oe_rma_receiving.push_receiving_info,接口跑完状态为Returned。

脚本如下:

DECLARE

x_rowid              VARCHAR2(40);

x_shipment_header_id NUMBER;

x_receipt_num        VARCHAR2(100);

l_iface_rcv_rec      po.rcv_transactions_interface%ROWTYPE;

BEGIN

fnd_global.apps_initialize(user_id => 1110, resp_id => 50237, resp_appl_id => 20003);

-- Create Shipment Header Directly, you can use rcv_headers_interface also

rcv_shipment_headers_pkg.insert_row(x_rowid                  => x_rowid,

x_shipment_header_id     => x_shipment_header_id,

x_last_update_date       => SYSDATE,

x_last_updated_by        => fnd_global.user_id,

x_creation_date          => SYSDATE,

x_created_by             => fnd_global.user_id,

x_last_update_login      => fnd_global.login_id,

x_receipt_source_code    => 'CUSTOMER',

x_organization_id        => 104,

x_ship_to_org_id         => 104,

x_receipt_num            => x_receipt_num,

x_employee_id            => 61,

x_customer_id            => 1040,

x_vendor_id              => NULL,

x_vendor_site_id         => NULL,

x_shipment_num           => NULL,

x_ship_to_location_id    => NULL,

x_bill_of_lading         => NULL,

x_packing_slip           => NULL,

x_shipped_date           => NULL,

x_freight_carrier_code   => NULL,

x_expected_receipt_date  => NULL,

x_num_of_containers      => NULL,

x_waybill_airbill_num    => NULL,

x_comments               => NULL,

x_attribute_category     => NULL,

x_attribute1             => NULL,

x_attribute2             => NULL,

x_attribute3             => NULL,

x_attribute4             => NULL,

x_attribute5             => NULL,

x_attribute6             => NULL,

x_attribute7             => NULL,

x_attribute8             => NULL,

x_attribute9             => NULL,

x_attribute10            => NULL,

x_attribute11            => NULL,

x_attribute12            => NULL,

x_attribute13            => NULL,

x_attribute14            => NULL,

x_attribute15            => NULL,

x_ussgl_transaction_code => NULL,

x_government_context     => NULL,

x_request_id             => NULL,

x_program_application_id => NULL,

x_program_id             => NULL,

x_program_update_date    => NULL,

x_customer_site_id       => NULL);

-- Create Line

SELECT po.rcv_transactions_interface_s.NEXTVAL

INTO l_iface_rcv_rec.interface_transaction_id

FROM dual;

SELECT po.rcv_interface_groups_s.NEXTVAL INTO l_iface_rcv_rec.group_id FROM dual;

l_iface_rcv_rec.last_update_date  := SYSDATE;

l_iface_rcv_rec.last_updated_by   := fnd_global.user_id;

l_iface_rcv_rec.creation_date     := SYSDATE;

l_iface_rcv_rec.created_by        := fnd_global.user_id;

l_iface_rcv_rec.last_update_login := fnd_global.login_id;

l_iface_rcv_rec.transaction_type        := 'RECEIVE';

l_iface_rcv_rec.transaction_date        := SYSDATE;

l_iface_rcv_rec.processing_status_code  := 'PENDING';

l_iface_rcv_rec.processing_mode_code    := 'BATCH';

l_iface_rcv_rec.transaction_status_code := 'PENDING';

l_iface_rcv_rec.category_id             := 153;

l_iface_rcv_rec.quantity                := 1;

l_iface_rcv_rec.unit_of_measure         := 'PCS';

l_iface_rcv_rec.primary_quantity        := 1;

l_iface_rcv_rec.primary_unit_of_measure := 'PCS';

l_iface_rcv_rec.interface_source_code   := 'RCV';

l_iface_rcv_rec.item_id                 := 5;

l_iface_rcv_rec.item_description        := 'Finished Good 1';

l_iface_rcv_rec.uom_code                := 'PCS';

l_iface_rcv_rec.employee_id             := 61;

l_iface_rcv_rec.auto_transact_code      := 'DELIVER';

l_iface_rcv_rec.shipment_header_id      := x_shipment_header_id;

l_iface_rcv_rec.receipt_source_code     := 'CUSTOMER';

l_iface_rcv_rec.to_organization_id      := 104;

l_iface_rcv_rec.routing_header_id       := 3;

l_iface_rcv_rec.routing_step_id         := 1;

l_iface_rcv_rec.source_document_code    := 'RMA';

l_iface_rcv_rec.destination_type_code   := 'INVENTORY';

l_iface_rcv_rec.location_id             := 143;

l_iface_rcv_rec.deliver_to_location_id  := 143;

l_iface_rcv_rec.subinventory            := 'FSG1';

l_iface_rcv_rec.expected_receipt_date   := SYSDATE;

l_iface_rcv_rec.destination_context     := 'INVENTORY';

l_iface_rcv_rec.oe_order_header_id      := 1131;

l_iface_rcv_rec.oe_order_line_id        := 1241;

l_iface_rcv_rec.customer_id             := 1040;

l_iface_rcv_rec.interface_source_code    := 'Just Test';

l_iface_rcv_rec.interface_source_line_id := '987654321';

INSERT INTO po.rcv_transactions_interface VALUES l_iface_rcv_rec;

dbms_output.put_line('Receipt Num: ' || x_receipt_num);

dbms_output.put_line('Group Id: ' || l_iface_rcv_rec.group_id);

END;

这个接口能做的事情其实是非常多的,并不像115mfgapi.pdf说的那样,不支持Separate receive and deliver transactions、Corrections、Returns、Receiving against Drop Ship Orders;实际上这些都可以通过接口完成。文档宣称的其他一些“不支持”,还有待进一步测试。

oracle采购退货单,采购退货API - Oracle ERP - ITPUB论坛-中国专业的IT技术社区相关推荐

  1. mysql 小型机_小型机宕机问题 - Oracle数据库管理 - ITPUB论坛-中国专业的IT技术社区...

    最近客户主机每隔10天左右就会宕机,配置为P650+DS4300+3582,上面跑着oracle+webshere+tsm.宕机是,连接主机的显示器无反应,可以ping通主机,无法telnet及ftp ...

  2. oracle时间戳效率问题,时间戳问题 - Oracle开发 - ITPUB论坛-中国专业的IT技术社区...

    需要修改的是那个"另外数据交换程序",它不能把本次的SYSDATE记录下来作为下次抽取的起点,应该去V$TRANSACTION里面找最小的START_TIME, 找不到才用SYSD ...

  3. oracle 应收票据,应收票据请求错误 - Oracle ERP - ITPUB论坛-中国专业的IT技术社区...

    各位大侠,最近做应收票据业务  在运行结算风险解除时出现下面错误,MATALINK有关文档看了一下,有类似问题,但又不太一样,看看有什么建议  其他业务均能完成 +------------------ ...

  4. oracle的addm,addm报告分析 - Oracle数据库管理 - ITPUB论坛-中国专业的IT技术社区

    本帖最后由 alibull 于 2014-5-9 18:14 编辑 SQL> SELECT total.tablespace_name, 2         Round(total.MB, 2) ...

  5. oracle安装时EM,EM 安装时报错 - Oracle数据库管理 - ITPUB论坛-中国专业的IT技术社区...

    一下是日志文件,求帮助哦 2013-12-30 14:38:18 oracle.sysman.emcp.EMConfig perform 信息: 正在将此操作记录到 D:\oracle\product ...

  6. oracle asm无法关闭,ASM无法关闭 - Oracle专题深入讨论 - ITPUB论坛-中国专业的IT技术社区...

    原帖由 Yong Huang 于 2011-5-18 02:14 发表 According to ORA-15097 Cannot Shutdown ASM if OCR is Located in ...

  7. oracle数据库问题处理,ora 问题处理 - Oracle数据库管理 - ITPUB论坛-中国专业的IT技术社区...

    牛奶早餐 asm日志 p740 client_id='' type='UNKNOWN' level='16' host_id='P740' host_addr='172.16.15.82' modul ...

  8. oracle 内存 opp,求助OPP问题! - Oracle EBS DBA - ITPUB论坛-中国专业的IT技术社区

    EBS R12.1.3 APP安装在LUNIX服务器(128核CPU 256GB内存)上,并发请求很多,每天能有1万以上.OPP输出几天就死掉,只能重启OPP并发管理器. 几个月了,实在烦死了. OP ...

  9. oracle 加载数据戽_oracle字符集 - Oracle数据库管理 - ITPUB论坛-中国专业的IT技术社区...

    暎不在Gb2312编码 Character code tableGB2312 (Simplified Chinese) character code table code  +0 +1 +2 +3 + ...

最新文章

  1. 原创 | 从席卷全球的“刷脸”乱象,看国内人脸识别立法方向
  2. androidstudio自动生成变量_使Eclipse或AndroidStudio的代码模板自动生成类名和方法名...
  3. android 05 桢布局:FrameLayout 网格布据 GridLayout
  4. PostgreSQL数据库密码
  5. 在delphi中嵌入脚本语言--(译)RemObjects Pascal Script使用说明(1)(译)
  6. EXT.NET 使用总结(2) ---TreePanel(带右键菜单,节点自定义属性)
  7. iOS研发助手DoraemonKit技术实现(一)
  8. 将Keras模型导出为SavedModel模型
  9. 人人都可以做深度学习应用:入门篇(下)
  10. PostgreSQL 逻辑复制插件 UDR,可以愉快的玩类似MySQL的binlog复制了。
  11. 第五十六回 曹操大宴铜雀台  孔明三气周公瑾
  12. DiscuzQ_V3二次开发版本部署文档
  13. Unity webGl 鼠标手指触屏控制相机围绕物体 360度旋转
  14. 软磁材料种类、特点和应用范围
  15. 读书笔记(8)网络故障排除工具
  16. 联想小新air15 2021 16G版魔改加装固态硬盘
  17. 什么是三目运算符?对三目运算符的理解
  18. 05 第四章 一阶逻辑基本概念
  19. 同济大学软件学院万院长谈择业(转载)
  20. springboot接口安全性_权限系统控制到按钮级别开源推荐 Spring Boot-Shiro-Vue

热门文章

  1. 4.有霍尔BLDC电机启动及堵转检测
  2. 有源晶振的几种输出波形
  3. python基于PyQT的图片批处理系统
  4. warning MSB8012:TargetPath与Linker的OutputFile属性值不匹配
  5. python新建word文档_Python简单创建、操作Word文档
  6. 支付系统中的设计模式03:模板方法模式
  7. 会话技术(Cookie,Session)详解
  8. 快递100账户错误详解-接口账号,业务,增值服务,票据和其他常见问题和解决方法
  9. 数字带通传输系统——键控法调制
  10. 控制台报错:e.nodeName.toLowerCase is not a function