楼主: yfq101

用 ROI 方式收料, 日期和汇率为何不是抓当天, 而是PO开立日?

[复制链接]
论坛徽章:
16
2009新春纪念徽章
日期:2009-01-04 14:52:28生肖徽章2007版:猪
日期:2009-03-05 15:43:562010新春纪念徽章
日期:2010-03-01 11:08:342011新春纪念徽章
日期:2011-02-18 11:43:35
11#
发表于 2008-10-14 11:23 | 只看该作者
把po的distribution_id也加上试试

使用道具 举报

回复
论坛徽章:
5
生肖徽章2007版:马
日期:2008-11-07 17:15:30生肖徽章2007版:狗
日期:2008-12-16 08:29:50
12#
 楼主| 发表于 2008-10-14 11:52 | 只看该作者
请再帮忙看看,谢谢各位
distribution_id 这个字段不知道该放什么?

source_document_code  字段放 'PO'后,错误信息变了,如下:
RVTSH-189: Subroutine rvtshiline() returned error

Cause:        Subroutine rvtshiline() returned an internal error.  

Action:        Note this error number and the actions you are trying to perform. Contact your system administrator for

使用道具 举报

回复
论坛徽章:
101
授权会员
日期:2008-11-21 09:09:58ITPUB元老
日期:2011-09-01 21:08:40
13#
发表于 2008-10-14 13:23 | 只看该作者
这是内部错误,之前测试也有这中错误也有这种,可是没追究,现在PO_interfaces_error还有ERROR messageme?Po_distribution_id 做暂收阶段可以不insert的

使用道具 举报

回复
论坛徽章:
5
生肖徽章2007版:马
日期:2008-11-07 17:15:30生肖徽章2007版:狗
日期:2008-12-16 08:29:50
14#
 楼主| 发表于 2008-10-15 14:24 | 只看该作者
修改插入到接口表的许多字段后,interface 的资料不变化, 究竟应该插入哪些值才是正确的 ?

使用道具 举报

回复
论坛徽章:
101
授权会员
日期:2008-11-21 09:09:58ITPUB元老
日期:2011-09-01 21:08:40
15#
发表于 2008-10-15 14:49 | 只看该作者
SELECT RCV_HEADERS_INTERFACE_S.NEXTVAL INTO LN_HEADER_ID FROM DUAL;
        select RCV_TRANSACTIONS_INTERFACE_S.nextval
          into ln_interface_transaction_id
          from dual;
        insert into rcv_headers_interface
          (header_interface_id, -- RCV_INTERFACE_GROUPS_S.nextval
           group_id, -- group_id
           processing_status_code, -- 'PENDING'
           receipt_source_code, -- 'VENDOR'
           transaction_type, -- 'NEW'
           auto_transact_code, -- 'RECEIVE'
           last_update_date, -- sysdate
           last_updated_by, --
           creation_date, -- sysdate
           created_by, --   'receipt_header_id'
           vendor_id, --
           ship_to_organization_id, --
           expected_receipt_date, -- sysdate
           validation_flag -- 'Y'
           )
        values
          (LN_HEADER_ID,
           LN_GROUP_ID,
           'PENDING', -----processing_status_code
           'VENDOR', -----receipt_source_code
           'NEW', -----transaction_type
           'RECEIVE', -----auto_transact_code
           sysdate, -----last_update_date
           ln_user_id, -- last_updated_by
           sysdate, ------creation_date
           ln_user_id, -- created_by
           r_recipt_date.vendor_id, -- ??獂美瓣悔砯笲?瞶?叭Τ????????
           r_recipt_date.ship_to_organization_id, -- ship_to_organization_id
           sysdate, -----expected_receipt_date
           'Y' -----validation_flag
           );
        v_message := 'Inset into rcv_transactions_interface ';
        insert into rcv_transactions_interface
          (interface_transaction_id, -- RCV_TRANSACTIONS_INTERFACE_S.nextval
           group_id, -- rcv_headers_interface.group_id
           last_update_date, -- sysdate
           last_updated_by, --
           creation_date, -- sysdate
           created_by, --
           transaction_type, -- 'RECEIVE'
           transaction_date, -- sysdate
           processing_status_code, -- 'PENDING'
           processing_mode_code, -- 'BATCH'
           transaction_status_code, -- 'PENDING' ? COMPLETED
           quantity,
           unit_of_measure, --
           item_id,
           auto_transact_code, -- 'RECEIVE'
           receipt_source_code, -- 'VENDOR'
           vendor_id,
           source_document_code, -- 'PO'
           po_header_id, -- po_headers_all.po_header_id
           po_line_id, -- po_lines_all.po_header_id
           po_line_location_id, ------po_line_locations_all.line_location_id
           expected_receipt_date, -- sysdate
           header_interface_id, -- rcv_headers_interface.header_interface_id
           validation_flag, -- Y process_flag ,               -- Y
           to_organization_id)
        values
          (ln_interface_transaction_id, ----interface_transaction_id
           LN_GROUP_ID, --group_id
           sysdate, ----last_update_date
           ln_user_id, ---last_updated_by
           sysdate, --creation_date
           ln_user_id, ----created_by
           'RECEIVE', ---transaction_type
           sysdate, ----transaction_date
           'PENDING', ----processing_status_code
           'BATCH', ----processing_mode_code
           'PENDING', ----transaction_status_code
           r_recipt_date.quantity, ----quantity
           r_recipt_date.uom, ----unit_of_measure
           r_recipt_date.item_id, --1000-008240   item_id
           'RECEIVE', -------auto_transact_code
           'VENDOR', ----receipt_source_code
           r_recipt_date.vendor_id, -- vendor_id
           'PO', ------source_document_code
           r_recipt_date.po_header_id, -- po_header_id
           r_recipt_date.po_line_id, -- po_line_id
           r_recipt_date.line_location_id, ------po_line_location_id
           sysdate, ----expected_receipt_date
           LN_HEADER_ID, --header_interface_id
           'Y', ----validation_flag
           r_recipt_date.ship_to_organization_id ----to_organization_id
           );

使用道具 举报

回复
论坛徽章:
101
授权会员
日期:2008-11-21 09:09:58ITPUB元老
日期:2011-09-01 21:08:40
16#
发表于 2008-10-15 14:49 | 只看该作者
你先试着用这个insert一下,再手工提交一下API程式

使用道具 举报

回复
论坛徽章:
5
生肖徽章2007版:马
日期:2008-11-07 17:15:30生肖徽章2007版:狗
日期:2008-12-16 08:29:50
17#
 楼主| 发表于 2008-10-17 13:24 | 只看该作者
原帖由 Andy_xixi 于 2008-10-15 14:49 发表
你先试着用这个insert一下,再手工提交一下API程式


感谢! 用了你的sql后, 已经产生异动了.

1. 插入到表 rcv_transactions_interface 的记录已经消失,
    在表 rcv_transactions 里可以找到异动记录
2. 插入到表 RCV_HEADERS_INTERFACE 的记录仍然在里面, 其中的 Processing_Status_Code = 'SUCCESS'
    在表 rcv_shipment_headers 和表rcv_shipment_lines 里可以找到异动记录

我还有2个问题:
1.  表 RCV_HEADERS_INTERFACE 里的这笔已经成功的资料怎么不消失?
2.  因为该PO Release 设置的是 "Direct Delivery", 所以在ERP的界面操作,做 Receive 后, 会自动产生一笔 Deliver 的异动,
     但用这种插入 interface 的方式 为何只产生了一笔 Receive 的异动? 我是不是还要做一次 Deliver 的异动再放到 interface里?

非常感谢!

使用道具 举报

回复
论坛徽章:
101
授权会员
日期:2008-11-21 09:09:58ITPUB元老
日期:2011-09-01 21:08:40
18#
发表于 2008-10-17 14:12 | 只看该作者
原帖由 yfq101 于 2008-10-17 13:24 发表


感谢! 用了你的sql后, 已经产生异动了.

1. 插入到表 rcv_transactions_interface 的记录已经消失,
    在表 rcv_transactions 里可以找到异动记录
2. 插入到表 RCV_HEADERS_INTERFACE 的记录仍然在里面, 其中的 Processing_Status_Code = 'SUCCESS'
    在表 rcv_shipment_headers 和表rcv_shipment_lines 里可以找到异动记录

我还有2个问题:
1.  表 RCV_HEADERS_INTERFACE 里的这笔已经成功的资料怎么不消失?
2.  因为该PO Release 设置的是 "Direct Delivery", 所以在ERP的界面操作,做 Receive 后, 会自动产生一笔 Deliver 的异动,
     但用这种插入 interface 的方式 为何只产生了一笔 Receive 的异动? 我是不是还要做一次 Deliver 的异动再放到 interface里?

非常感谢!



1.我也有这个疑问
2.应该是还有栏位没有insert造成的,给你传个interface说明,你好好研究下,现在比较忙,研究出来的结果记得分享哦

all_interface(MFG.distribution.sale).pdf

1.98 MB, 下载次数: 35

使用道具 举报

回复
论坛徽章:
5
生肖徽章2007版:马
日期:2008-11-07 17:15:30生肖徽章2007版:狗
日期:2008-12-16 08:29:50
19#
 楼主| 发表于 2008-10-17 15:52 | 只看该作者
3Q ! 第2个问题 已经 OK,只用 插入interface 一次就能产生2次异动, 只是其中的部分字段的值要改改而已.
现在就等第一个问题解决了,

异动成功的资料 ERP 为何不从 interface 清除?

使用道具 举报

回复
论坛徽章:
101
授权会员
日期:2008-11-21 09:09:58ITPUB元老
日期:2011-09-01 21:08:40
20#
发表于 2008-10-17 23:34 | 只看该作者
原帖由 yfq101 于 2008-10-17 15:52 发表
3Q ! 第2个问题 已经 OK,只用 插入interface 一次就能产生2次异动, 只是其中的部分字段的值要改改而已.
现在就等第一个问题解决了,

异动成功的资料 ERP 为何不从 interface 清除?



哪部分字段???

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表