求帮助:oe退货问题

[复制链接]
查看11 | 回复6 | 2010-1-4 08:33:08 | 显示全部楼层 |阅读模式
各位:
请教一个OE退货问题
小弟有一张OE订单已过AR了。没有问题。
现在做这一订单的退货单。可是有一物料总是提示错误 :数量不能太于订单数量。
我这一订单有这数量。请问为何? 如下图
tks.
回复

使用道具 举报

千问 | 2010-1-4 08:33:08 | 显示全部楼层
订单已经退过货了.检查一下这个订单有没有做过退货/
回复

使用道具 举报

千问 | 2010-1-4 08:33:08 | 显示全部楼层
此订单已经退过货啦///
Solution
ANSWER:
========
It is likely this indicates the original order line was referenced for the item and quantity on an earlier RMA order line.
The following SQL select statements can be used to determine if this Order Item has already been "Returned"
by a previous RMA order line.
1. To get information on order lines which have referenced the original sales order line previously, run the following:
SQL > select line_id, ordered_quantity, reference_line_id

from oe_order_lines_all

where line_category_code = 'RETURN' and reference_line_id = &line_id ;
Please Note: The '&line_id' is replaced by the actual reference_line_id, which would be the line_id for the original sales order line.

2. Using the line_id's returned from sql #1, ('X' and 'Y'), you can find the other return type lines and header_id's they belong to;
SQL > select LINE_NUMBER, LINE_ID, LINE_TYPE_ID, HEADER_ID, REFERENCE_HEADER_ID,

LINE_CATEGORY_CODE, OPEN_FLAG, BOOKED_FLAG,
CANCELLED_FLAG, FLOW_STATUS_CODE

from OE_ORDER_LINES_ALL
where line_id in ('XXXXX','YYYYY');

3. The returned values for the header_id's ('N' and 'M') for the lines in sql #2, show status and type, so using the header_ids in the last select,
SQL > select ORDER_NUMBER, HEADER_ID, ORDER_TYPE_ID, CANCELLED_FLAG, OPEN_FLAG,
BOOKED_FLAG, ORDER_CATEGORY_CODE, FLOW_STATUS_CODE
from OE_ORDER_HEADERS_ALL
where header_id in ('NNNNN','MMMMM');
One can find the other separate orders. If one has a return line which is either 'Booked' (Awaiting Return), or 'Closed', then there is already a valid return for the original order item and qty, and no additional returns can reference the same sales order and line item qty. Be sure the ordered item qty and the returned item qty are the same, or there can be additional return lines created for the remaining quantity.
References
Note 133464.1 - OMSE11i.SQL release 11i script
Note 156860.1 - OMCHECK.SQL Oracle Order Management Diagnostic Tool
--------------------------------------------------------------------------------
Help us improve our service. Please email us your comments for this document. .
回复

使用道具 举报

千问 | 2010-1-4 08:33:08 | 显示全部楼层
没有作过退货。
且就是一物料不能退(也就是其中一行不能退)
不知为何?
但我在测试环境作这一物料的订单再作退货时。又可以作退货。
请教各大侠。为何?
急急急急急!!!!!
many tks.
回复

使用道具 举报

千问 | 2010-1-4 08:33:08 | 显示全部楼层
大侠真牛。
问题解决。
真的太感谢你们。
回复

使用道具 举报

千问 | 2010-1-4 08:33:08 | 显示全部楼层
使用下面SQL也能检查
[注:A区代表现在要退的订单信息,
B区是最原始的订单信息,
C区是可能针对B的已退的订单信息,,如果C存在,且数据与B中的数据相当,,,那就是说退货已完成,,
就没有办法再针对B做退货啦!
============================
SELECT ooh1.order_number A1, ool1.ordered_item A2, ool1.line_number A3,
ool1.ordered_quantity A4, ooh1.flow_status_code A5, ooh2.order_number B1,
ool2.line_number B1, ool2.ordered_quantity B3, ooh2.flow_status_code B4,
ooh3.order_number C1, ool3.line_number C2, ool3.ordered_quantity C3,
ooh3.flow_status_code C4
FROM ont.oe_order_headers_all ooh1,
ont.oe_order_lines_all ool1,
ont.oe_order_lines_all ool2,
ont.oe_order_headers_all ooh2,
ont.oe_order_lines_all ool3,
ont.oe_order_headers_all ooh3
WHERE ooh1.header_id = ool1.header_id
AND ool1.line_category_code = 'RETURN'
AND ooh1.order_number = '600435'
AND ool1.reference_line_id = ool2.line_id
AND ooh2.header_id = ool2.header_id
AND ool1.reference_line_id = ool3.reference_line_id(+)
AND ooh3.header_id(+) = ool3.header_id
AND ooh1.order_numberooh3.order_number
===================================
回复

使用道具 举报

千问 | 2010-1-4 08:33:08 | 显示全部楼层
TO:richardliu1123
你好。
可以查出来。
这一行确实有另一张退货单退了这一行物料。
可上面没有退成 数量为o.
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行