inventory transaction一直不能transfer到GL的原因
上一篇 / 下一篇 2007-10-01 00:00:00 / 个人分类:ERP維護積累
近几天做的inventory transaction一直不能transfer到GL的原因
原因是,我在关闭inventory的会计期中找到了这这些pending的记录,tansaction肯定是已经生成的,但是MTL_MATERIAL_TRANSACTIONS 中Costed Flag='N'.
SQL:
SELECT COSTED_FLAG
VpVg1l'z[0FROM MTL_MATERIAL_TRANSACTIONSITPUB个人空间.Go|?N|
WHERE --ORGANIZATION_ID = &OrgID AND TRANSACTION_DATE <= '&EndPeriodDate' AND ITPUB个人空间2T
|6v0sL${K~
COSTED_FLAG IS NOT NULL
所以原因是Cost Manager没有运行,就前几天说的被我们的DBA强行拿掉的,但是测试环境1一直没有人去recover 这个.
同时Metalink中的doc:111729.1 对此有详细Interface Manager有详细的介绍,至此由Inferface Manager引发的问题终于可以告一段落了:
This document was checked for relevance on 21-FEB-2005
R!u:J)An G;d K0
9g'Zia!]|3T`7r.^0PURPOSEITPUB个人空间/p(z ?
QP yR4L
==============ITPUB个人空间u_:Y7ta
This article provides technical overviews and details of the four
C&A)SL0sn0interface managers that can be controlled from the Interface Managers form asITPUB个人空间 aT6~cdO.p
part of the setup procedures:
8B/i4o'm-tWA0ITPUB个人空间TP]B;`W
1. Material transaction managerITPUB个人空间 ?7N/[r7Q!S
2. Demand reservation manager
#lQ:t3K*v03. Cost Manager
tP;m[~ht04. Move transaction manager
BGcsL G,e&e0
Nsg)R*?b}0@A0ITPUB个人空间Jk-G\,~ y
SCOPE & APPLICATIONITPUB个人空间[s0w @
CZC
S3Wn#N'F0This bulletin is intended for system administrators of OracleITPUB个人空间(]hL,?_5c%y*G
F
Applications and users that are involved with setting up Oracle Inventory 11.0.3 and higher.
D"?\:iU0ITPUB个人空间3FlK|q
ITPUB个人空间u!\{,}q
RELATED DOCUMENTS
G`2Pw|0==================ITPUB个人空间hRM)U6} R
Oracle Inventory User Guide - Transaction Setup
(Z0Z%nhP0
W@`_.G?R0u0
A6R
S)o)w}x Z0These four managers execute the following processes: materialITPUB个人空间D'C4e2v*g(T
S
transaction, demand reservation, resource & material cost transactions and move
+KVX;cPvS0transactions. Generally these managers are running continuously at regular ITPUB个人空间*x"Kc7C!ixf
process intervals as determined on starting the managers. ITPUB个人空间wK"G[cI)Z
;o)etJ-A'wO0They control the number of transaction workers, processing intervals and number of transactions
3U#y_b9IB0processed by the worker. The mode of operation for these managers is governed by the setting ofITPUB个人空间eJ [3Pk"EQ
profile options prefixed by the letters TP (transaction processing).ITPUB个人空间
czt%k
v
ITPUB个人空间!|U3\*y8x
C[6h
o For example:
@/U,W4t3kc/P"SW]0
8D;G a0@0U%?,f"uW0Setting profile TP:INV Transaction Processing Mode to a value of
J sij#vnKC*uL0Background Processing, will mean that Inventory and WIP transactions are
3{3xb
Yax!W@?q0periodically transacted upon by the Material transaction manager. The transaction
;I0nuD2y
m7d2{0manager requests will appear on the concurrent managers queue at regular
FFW wWs0processing intervals.ITPUB个人空间oqu Gt%fE,K
ITPUB个人空间4n([3ydd"b/p
H6A^H'PT0Resolving Problems
oG$i wFi0------------------
wA\'r0eVN0As transactions are processed, the respective inventory and work inITPUB个人空间.Wn
Tj5N-C/QK
progress tables are updated to reflect these changes. If for some reason theITPUB个人空间@ Q M3EJ-K3B
results viewed in inquiry forms and reports do not reflect these updates, it
7~K
@c
Qn[:ad6uM0will then be necessary to review and correct the errors. This can be done in partITPUB个人空间;}?C2I8N p0E
using the Transaction Interface & Pending Transations forms, however there are
2c0b-fq6g)Iv/JFo0often cases when sqlplus will be required to effect a resolution, in these ITPUB个人空间;f%f})n
t,A6d!p
cases it may be helpful to refer to the notes below.ITPUB个人空间*O/uYGv K1zz ?
`0[%x{m0
(|%g'ft
u2v\0Material Transaction InterfaceITPUB个人空间1Vwjv:WR_5J
------------------------------ITPUB个人空间#X3K^L&O}
D1Z8[TZ)m|0o INCTCM module: Process transactions interfaceITPUB个人空间%R(}Oq-N
k{!do D
ITPUB个人空间-vB#V/Fbl:I
This program processes material transactions following changes in any of
;ZWlM1^0the transactions form. For optimal processing speed the system managerITPUB个人空间6sy&tF^;i5ml
I0e
responsibility should be used to tune the Inventory Manager. The initialITPUB个人空间fanR5v
setup for this is defaulted with a single target process setup.ITPUB个人空间u'w-r9k/UU
xt"e yH0The number of target processes will limit the number of workers
s1`9ypk$o0available to the transaction manager, workers can be run in parallel, therefore to
'p:e+I&p4k)Rq,e x^W
\G0significantly reduce the time taken to process your inventoryITPUB个人空间0V^vI6uSF
|_
transactions,then increase the number of target processes to the maximum allowable
LQx-qC:BP/Nn3x&X-O0within your system limits. For this request the assistance of your dba, system
Wd![0gS(T2S*F0memory and central processor performance will be the limiting factors for thisITPUB个人空间K
G9M5?u
target parameter.
8_3W!ukTT:u0
g0b+nMOY6a;^0While running, the program: INCTCM, constantly checks for rows in the
9P#\ a9p@E+~0interface and interface temporary tables. First checking the interfacesITPUB个人空间6p1EV0m9}Q
temporary tables and acting upon these records and then processing theITPUB个人空间7`m M
VfA1T
records in the interface tables, marking these records with header identifiers
VT)P3RF3{.Z0and subsequently moving them to the corresponding temporary tables, thisITPUB个人空间e-M1N{a
process is repeated each time the workers are started.ITPUB个人空间AVgu9{i8Q}
1B;GH0Tg3Q{b(o-I-D0For example:ITPUB个人空间'O(U+Wp;Cn#xxD
INCTCM polls and transacts upon records held in mtl_transactions_interface,ITPUB个人空间(x-[.wS7rpH4^;Q
mtl_transaction_lots_interface,and mtl_serial_numbers_interface movingITPUB个人空间y-O bf2X.B
these to their respective temp tables, eg: mtl_material_transactions_temp, theseITPUB个人空间 y~ j9QOa"L!P
are then processed by the transaction processor, such rows have theirITPUB个人空间:e'bCq,l.i
lock_flag set to the value Y.ITPUB个人空间ZOM'}7Q8g
bUgl F?c0Different workers are submitted by the transaction processor to processITPUB个人空间t~2Y8HjK R
Order Entry, Work in Progress and Inventory transactions,these are processed
7I0~)B#rx#i`ih?0in groups, depending on the value of the flag validation_required,ITPUB个人空间O
vE
QK.EX,Yd
values 1 or null = detailed validation 2=not detailed processed rows are
L
qRieB-u0assigned a transaction_header_id using the sequence mtl_material_transactions_s.
j"?u@3K
Mz0l0
z ]!^,h]\e!`0o Records that are ready for selection will have:
#C
Nt3j0fV%s|
Y0ITPUB个人空间 m.Q#w+[$|3RJMw
transaction_mode=3, process_flag=1 or Y for mtl_material_transactions_temp tableITPUB个人空间 f RS-[;a.BW-F
lock_flag=2 or null(or N in mtl_material_transactions_temp)ITPUB个人空间-~UMx4g%RGT+}v'qM
8VJ
E{M,Fr'q0process_flag has a range of values: 1=ready,2=not ready,3=failedITPUB个人空间%Lr^4jIMGP#{:j*D
lock_flag has a range of values: 1=locked 2=not locked,NULL=not locked
J7igw+Y0transaction_mode has a range of values: 2=immediate mode 3=backgound mode
? }J)p1v@ n0ITPUB个人空间2D)]GB&mBGc
ITPUB个人空间#r3g:I8Ys/zS4G{
The rows in mtl_transactions_interface are processed in 5 phases.
yYx"CI&`%ry0
'T!B7`/C$n+]C*_*H.{#I01. Derives dependant columns, eg:acct_period_id, primary_quantity etc..
.JYOpsD_/JjM02. Detailed validation performed on the recordsITPUB个人空间v-Z1cm2M"i9f(h
3. On hand qty check for negative qty's etc..ITPUB个人空间:Wj8Hr6L zm
4. Reservations Relieved if demand was created in order entry
4Ga;z?uU3xj-G05. Rows are moved to mtl_material_transactions_temp where the
G%m
d3Y3`A]0transaction processor is called to process these rows and update the inventory
o!F2D9j0P7A/E_DA"N'\+s0levels etc..
0e7A:h8O i
K2J0
3cA$x/J-P]$}3P&C0ITPUB个人空间)Xka1b%RLp%v+M
For more details see vol 3 INV technical reference manual.ITPUB个人空间0U&N"QmQ!@#oQ
ITPUB个人空间E`fO1r
h2O A
N9Y8CU1n0o Resolving Errors:ITPUB个人空间;yj0]
J(Rmn _k
on%LaM;p0If an error occurs with the transaction processor, the entire group of
8Kx)pyNu0records will be marked with the error code, the actual failing row will containITPUB个人空间Ss]#iw8c0m/BI
the error explanation.
K
D%f|"q!~xxP"k0
;o2V-x(W`1d }0You can access failing rows using Inventory's View Pending Interface
^#Q*~I%QmE0Activity form, additionally you can use this form to resubmit the records byITPUB个人空间'C:\?T#cL'p
setting the 'resubmit' flag to yes, this is only appropriate if the error thatITPUB个人空间g-}T(p2vbGS
caused the failure is unrelated to the interfaces transaction data, eg: database
?Qd7m4qR0space problem.
"KZ;j|,w$`0
bij'ov6l`}7M0l0Errors can be determined by viewing columns: error_code and error_explanation