|
|

楼主 |
发表于 2008/9/25 13:47:14
|
显示全部楼层
库存接口的未处理的数据
PROMPT ************************************************************************
PROMPT PENDING MATERIAL
PROMPT ************************************************************************
PROMPT
PROMPT mtl_transactions_interface (mti)
PROMPT
PROMPT ************************************************************************
PROMPT PFlag ==> Process_Flag TMode ==> Transaction_Mode
PROMPT LFlag ==> Lock Flag
PROMPT Txn_typ_id ==> Transaction_type_id
PROMPT Txn_act_id ==> Transaction_action_id
PROMPT Txn_sty_id ==> Transaction_source_type_id
PROMPT Txn_Src_id ==> Transaction_source_id
PROMPT Txn_Rcv_id ==> Rcv_Transaction_id
PROMPT Txn_mov_id ==> move_order-line_id
PROMPT Txn_com_id ==> completion_transaction_id
PROMPT ************************************************************************
PROMPT
select mti.transaction_interface_id Txn_IFace_id,
transaction_header_id Txn_hdr_id,
inventory_item_id Inv_Item_id,
revision Rev,
subinventory_code Subinv_code,
locator_id Loc_id,
mtli.LOT_NUMBER Lot_Number,
msni.fm_serial_number FmSerial_Num,
msni.to_serial_number ToSerial_Num,
mti.transaction_quantity Txn_qty,
mti.primary_quantity Pri_qty,
transaction_uom Uom,
transaction_cost Txn_cst,
transaction_type_id Txn_typ_id,
transaction_action_id Txn_act_id,
transaction_source_type_id Txn_sty_id,
transaction_source_id Txn_src_id,
transaction_date Txn_date,
transfer_subinventory Xfr_subinv,
transfer_organization Xfr_OrgId,
mti.request_id Txn_req_id,
mti.source_code Src_code,
mti.source_line_id Src_line_id,
source_header_id Src_Hdr_id,
mti.process_flag PFlag,
decode(to_char(nvl(mti.process_flag,0)),
'1','Ready',
'2','Not Ready',
'3','Error',
to_char(mti.process_flag)) Pflag_Desc,
transaction_mode TMode,
decode(transaction_mode,
'2','Immediate',
'3','Background',
to_char(transaction_mode)) TMode_desc,
lock_flag LFlag,
decode(lock_flag,
'1','Locked',
'2','Not Locked') LFlag_desc,
mti.error_code Error_code,
error_explanation Error_explanation
from mtl_transactions_interface mti,
mtl_serial_numbers_interface msni,
mtl_transaction_lots_interface mtli
where ORGANIZATION_ID = :v_org_id
AND (ACCT_PERIOD_ID = :v_period_id
OR (ACCT_PERIOD_ID IS NULL
AND TRUNC(TRANSACTION_DATE) < (trunc(to_date(:v_closing_to_date))+1)))
AND mti.PROCESS_FLAG <> 9
AND (mtli.transaction_interface_id (+) = mti.transaction_interface_id
AND msni.transaction_interface_id (+) = mti.transaction_interface_id)
ORDER BY TRANSACTION_DATE; |
|