If the RCVOLTM fails, you will get the error message on the screen. There should be nothing stuck in the RCV_TRANACTIONS_INTERFACE.
However, the header information inserted into the RCV_SHIPMENT_HEADERS table will not rollback or be deleted. This process is followed to ensure that there is no break to the sequence of receipt numbers that have been generated when a header transaction was inserted.
Potential workaround for failed receipts: Where there are headers without shipment lines, due to RCVOLTM failure,
users can query the receipt number in the Enter Receipts form, and perform an 'Add to' receipt, to re-process the failed lines.
可以查询下现有系统是否有这样的单, 处理掉:
select rsh.RECEIPT_NUM ,
fu.DESCRIPTION ,
rsh.CREATION_DATE
from apps.rcv_shipment_headers rsh,
apps.fnd_user fu
where rsh.SHIP_TO_ORG_ID =id
and fu.USER_ID = rsh.CREATED_BY
and rsh.CREATION_DATE >= to_date('2009-03-01', 'yyyy-mm-dd')
and rsh.CREATION_DATE <= to_date('2009-03-26', 'yyyy-mm-dd')
and NOT EXISTS (SELECT 'X'
from apps.rcv_shipment_lines rsl
WHERE rsl.to_organization_id = id
AND rsl.SHIPMENT_HEADER_ID = rsh.SHIPMENT_HEADER_ID)