Anda di halaman 1dari 53

+---------------------------------------------------------------------------+ Re

ceivables: Version : 12.0.0 Copyright (c) 1979, 1999, Oracle Corporation. All ri
ghts reserved. RAXTRX module: Autoinvoice Import Program +--------------------------------------------------------------------------+ Current system time is 21
-JUN-2012 15:06:55 +--------------------------------------------------------------------------+ org parameter (raamai) = ~85~ raassc()+ Current system time is
21-JUN-2012 org parameter (raassc) character = ~85~ org parameter (raassc) numer
ic = ~85~ raassc()- Current system time is 21-JUN-2012 raagsp()+ Current system
time is 21-JUN-2012 Autoinvoice max memory set below recommended raagsp()- Curre
nt system time is 21-JUN-2012 raaini()+ Current system time is 21-JUN-2012 raaap
x()+ Current system time is 21-JUN-2012 raaapx()- Current system time is 21-JUN2012 raagbo()+ Current system time is 21-JUN-2012 Dumping data fetched from RA_B
ATCH_SOURCES batch_source_id = 3227 batch_source_name = DELTA CARE METAVANCE1 au
to_trx_numbering_flag = N copy_doc_number_flag = N cust_trx_type_rule = R sold_c
ustomer_rule = R bill_customer_rule = R bill_address_rule = R bill_contact_rule
= R ship_customer_rule = R ship_address_rule = R ship_contact_rule = R memo_reas
on_rule = R term_rule = R invoicing_rule_rule = R accounting_rule_rule = R unit_
of_measure_rule = R agreement_rule = R inventory_item_rule = R fob_point_rule =
S ship_via_rule = S invalid_lines_rule = R salesperson_rule = R sales_credit_typ
e_rule = R accounting_flexfield_rule = R invalid_tax_rate_rule = R rev_acc_alloc
ation_rule = P gl_date_period_rule = R create_clearing_flag = N derive_date_flag
= Y sales_credit_rule = P sales_territory_rule = R receipt_method_rule = R cust
omer_bank_account_rule = R related_document_rule = R 15:06:55 15:06:55 15:06:55
value, defaulted to 1048576 bytes 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55

memo_line_rule = R allow_sales_credit_flag = Y receipt_handling_option = N allow


_duplicate_trx_num_flag = N raagbo()- Current system time is 21-JUN-2012 15:06:5
5 raaggi()+ Current system time is 21-JUN-2012 15:06:55 raagixpfx = 0 raagixtpf
= 0 raagixddf = 1 raagixacf = 0 raagixagd = 0 raagixatn = 0 raagixadn = 0 raagix
cte = 0 raagixdfd = raagixctc = 0 raagixrmx = T raagixfdx = 21-JUN-12 raagixbix
= raagixbsi = 3227 raagixbnx = DELTA CARE METAVANCE1 raagixoix = 85 raagixrix =
12955895 raagixpix = 20428 raagixpai = 222 raagixuix = 269429 raagixunx = HITACH
I raagixanx = AR raagixlul = 15201133 raagixasc = 1 raagixrho = N raagixrsf = 0
raagixcbf = 0 raagixuax = 1 raagixsnf = 0 raagixtao = 1 raagixptf = 0 raagixstf
= 0 raagixrfi = 0 raagixtac = 0 raagixcai = 50241 raagixsbi = 1 raagixcpr = 2 ra
agixmau = raagixmlx = 3 raagixmbx = 1048576 raagixafp = Account raagixifp = raag
ixtfp = Argbdf = 1 Argddo = -9999 raaggi()- Current system time is 21-JUN-2012 1
5:06:55 raaseb()+ Current system time is 21-JUN-2012 15:06:55 raaseb()- Current
system time is 21-JUN-2012 15:06:55 arcdsu()+ Current system time is 21-JUN-2012
15:06:55 arcdsu() error level: 3 array size: 1048576 insert array size: 1048576
arcdsu() Use Invoice Accounting For Credit Memo: Y arcdsu()- Current system tim
e is 21-JUN-2012 15:06:55 raaini()- Current system time is 21-JUN-2012 15:06:55
raapft()+ Current system time is 21-JUN-2012 15:06:55

raagtr()+ Current system time is 21-JUN-2012 15:06:55 crb->raaucrpn = RAXTRX crb


->raaucrcr = 12955895 crb->raaucrnt = 0 crb->raaucrml = 3 raagtr()- Current syst
em time is 21-JUN-2012 15:06:55 raamil()+ Current system time is 21-JUN-2012 15:
06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current sy
stem time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 1
5:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current
system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012
15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Curren
t system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-20
12 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Curr
ent system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Cu
rrent system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JU
N-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+
Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()
- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 2
1-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf
()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is
21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaa
sf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time
is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 ra
aasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system tim
e is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55
raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system t
ime is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:5
5 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system
time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06
:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 UPDATE RA_INTERFACE_LI
NES SET LAST_UPDATE_DATE = sysdate, LAST_UPDATED_BY = :b1, LAST_UPDATE_LOGIN = :
b2, SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b3), ORG_ID = NVL(ORG_ID, :b4), TRX_
DATE = TRUNC(TRX_DATE), GL_DATE = TRUNC(GL_DATE), ORIGINAL_GL_DATE = TRUNC(GL_DA
TE), CONVERSION_DATE = TRUNC(CONVERSION_DATE), PURCHASE_ORDER_DATE = TRUNC(PURCH
ASE_ORDER_DATE), RULE_START_DATE = TRUNC(RULE_START_DATE), RULE_END_DATE = TRUNC
(RULE_END_DATE), SALES_ORDER_DATE = TRUNC(SALES_ORDER_DATE),

SHIP_DATE_ACTUAL = TRUNC(SHIP_DATE_ACTUAL), CUSTOMER_TRX_ID = NULL, INTERFACE_LI


NE_ID = NVL(INTERFACE_LINE_ID, RA_CUSTOMER_TRX_LINES_S.NEXTVAL) WHERE NVL(INTERF
ACE_STATUS, '~') != 'P' AND REQUEST_ID = :b5 AND LINK_TO_LINE_ATTRIBUTE1 IS NULL
AND LINK_TO_LINE_ATTRIBUTE2 IS NULL AND LINK_TO_LINE_ATTRIBUTE3 IS NULL AND LIN
K_TO_LINE_ATTRIBUTE4 IS NULL AND LINK_TO_LINE_ATTRIBUTE5 IS NULL AND LINK_TO_LIN
E_ATTRIBUTE6 IS NULL AND LINK_TO_LINE_ATTRIBUTE7 IS NULL AND LINK_TO_LINE_ATTRIB
UTE8 IS NULL AND LINK_TO_LINE_ATTRIBUTE9 IS NULL AND LINK_TO_LINE_ATTRIBUTE10 IS
NULL AND LINK_TO_LINE_ATTRIBUTE11 IS NULL AND LINK_TO_LINE_ATTRIBUTE12 IS NULL
AND LINK_TO_LINE_ATTRIBUTE13 IS NULL AND LINK_TO_LINE_ATTRIBUTE14 IS NULL AND LI
NK_TO_LINE_ATTRIBUTE15 IS NULL len = 1246 1 rows updated Current system raagtf()
+ Current system time raagtf()- Current system time raaasf()+ Current system tim
e raaasf()- Current system time raaasf()+ Current system time raaasf()- Current
system time raaasf()+ Current system time raaasf()- Current system time raaasf()
+ Current system time raaasf()- Current system time raaasf()+ Current system tim
e raaasf()- Current system time raaasf()+ Current system time raaasf()- Current
system time raaasf()+ Current system time raaasf()- Current system time raaasf()
+ Current system time raaasf()- Current system time raaasf()+ Current system tim
e raaasf()- Current system time raaasf()+ Current system time raaasf()- Current
system time raaasf()+ Current system time raaasf()- Current system time raaasf()
+ Current system time raaasf()- Current system time raaasf()+ Current system tim
e raaasf()- Current system time raaasf()+ Current system time raaasf()- Current
system time raaasf()+ Current system time raaasf()- Current system time raaasf()
+ Current system time raaasf()- Current system time raaasf()+ Current system tim
e raaasf()- Current system time raaasf()+ Current system time time is 21-JUN-201
2 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:
55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21
-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-201
2 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:
55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21
-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-201
2 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:
55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21
-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-201
2 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:
55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21-JUN-2012 15:06:55 is 21
-JUN-2012 15:06:55

raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system t


ime is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:5
5 UPDATE RA_INTERFACE_LINES L1 SET REQUEST_ID = :b1, LAST_UPDATE_DATE = sysdate,
LAST_UPDATED_BY = :b2, LAST_UPDATE_LOGIN = :b3, CUSTOMER_TRX_ID = NULL, INTERFA
CE_LINE_ID = NVL(INTERFACE_LINE_ID, RA_CUSTOMER_TRX_LINES_S.NEXTVAL), SET_OF_BOO
KS_ID = NVL(SET_OF_BOOKS_ID, :b4), LINK_TO_LINE_ID = ( SELECT INTERFACE_LINE_ID
FROM RA_INTERFACE_LINES L2 WHERE L2.REQUEST_ID = :b5 AND L2.INTERFACE_LINE_CONTE
XT = 'METAVANCE' AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT AND L1.
LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1 AND L1.LINK_TO_LINE_ATTRI
BUTE2 = L2.INTERFACE_LINE_ATTRIBUTE2 ) WHERE NVL(INTERFACE_STATUS, '~') != 'P' A
ND (REQUEST_ID IS NULL) AND (( LINK_TO_LINE_CONTEXT ,LINK_TO_LINE_ATTRIBUTE1 ,LI
NK_TO_LINE_ATTRIBUTE2 ) IN ( SELECT /*+ cardinality(L2 10) */ L2.INTERFACE_LINE_
CONTEXT ,L2.INTERFACE_LINE_ATTRIBUTE1 ,L2.INTERFACE_LINE_ATTRIBUTE2 FROM RA_INTE
RFACE_LINES L2 WHERE L2.REQUEST_ID = :b6 AND L2.INTERFACE_LINE_CONTEXT = 'METAVA
NCE' )) len = 1038 0 rows updated Current system time is 21-JUN-2012 15:06:55 ra
amil()- Current system time is 21-JUN-2012 15:06:55 raamis()+ Current system tim
e is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55
raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system t
ime is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:5
5 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system
time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06
:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current syst
em time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:
06:55 SELECT S.ROWID, L.INTERFACE_LINE_ID, L.REQUEST_ID, L.LAST_UPDATE_LOGIN, L.
LAST_UPDATED_BY FROM RA_INTERFACE_SALESCREDITS S, RA_INTERFACE_LINES_GT L WHERE
L.REQUEST_ID = :b1

AND AND AND AND AND


L.LINE_TYPE = 'LINE' L.INTERFACE_LINE_CONTEXT = 'METAVANCE' L.INTERFACE_LINE_CON
TEXT = S.INTERFACE_LINE_CONTEXT L.INTERFACE_LINE_ATTRIBUTE1 = S.INTERFACE_LINE_A
TTRIBUTE1 L.INTERFACE_LINE_ATTRIBUTE2 = S.INTERFACE_LINE_ATTRIBUTE2
0 row(s) updated raamis()- Current system time is 21-JUN-2012 15:06:55 raamid()+
Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21
-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf(
)+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is
21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaas
f()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time i
s 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raa
asf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time
is 21-JUN-2012 15:06:55 SELECT D.ROWID, L.INTERFACE_LINE_ID, L.REQUEST_ID, L.LA
ST_UPDATE_LOGIN, L.LAST_UPDATED_BY FROM RA_INTERFACE_DISTRIBUTIONS D, RA_INTERFA
CE_LINES_GT L WHERE L.REQUEST_ID = :b1 AND L.INTERFACE_LINE_CONTEXT = 'METAVANCE
' AND L.INTERFACE_LINE_CONTEXT = D.INTERFACE_LINE_CONTEXT AND L.INTERFACE_LINE_A
TTRIBUTE1 = D.INTERFACE_LINE_ATTRIBUTE1 AND L.INTERFACE_LINE_ATTRIBUTE2 = D.INTE
RFACE_LINE_ATTRIBUTE2 len = 428 2 row(s) updated raamid()- Current system time i
s 21-JUN-2012 15:06:55 raamic()+ Current system time is 21-JUN-2012 15:06:55 raa
asf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time
is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 r
aaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system ti
me is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55
raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system
time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:
55 raaasf()- Current system time is 21-JUN-2012 15:06:55 SELECT C.ROWID, L.INTER
FACE_LINE_ID, L.REQUEST_ID, L.LAST_UPDATE_LOGIN, L.LAST_UPDATED_BY FROM AR_INTER
FACE_CONTS C, RA_INTERFACE_LINES_GT L WHERE L.REQUEST_ID = :b1 AND L.LINE_TYPE =
'LINE' AND L.INTERFACE_LINE_CONTEXT = 'METAVANCE' AND L.INTERFACE_LINE_CONTEXT
= C.INTERFACE_LINE_CONTEXT AND L.INTERFACE_LINE_ATTRIBUTE1 = C.INTERFACE_LINE_AT
TRIBUTE1

AND
L.INTERFACE_LINE_ATTRIBUTE2 = C.INTERFACE_LINE_ATTRIBUTE2 system system system s
ystem system system time time time time time time is is is is is is 21-JUN-2012
21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 15:06:55 15:06:55 15
:06:55 15:06:55 15:06:55 15:06:55
0 row(s) updated raamic()- Current raacet()+ Current raacet()- Current raaurs()+
Current raaurs()- Current raapft()- Current
Validating : Current system time is 21-JUN-2012 15:06:55 raapu0()+ Current syste
m time is 21-JUN-2012 15:06:55 raadci()+ Current system time is 21-JUN-2012 15:0
6:55 0 row(s) updated Current system time is 21-JUN-2012 15:06:55 raadci()- Curr
ent system time is 21-JUN-2012 15:06:55 raabsv()+ Current system time is 21-JUN2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Cu
rrent system time is 21-JUN-2012 15:06:55 raabdf()+ Current system time is 21-JU
N-2012 15:06:55 raabdf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+
Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21JUN-2012 15:06:55 raabdf()+ Current system time is 21-JUN-2012 15:06:55 raabdf()
- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 2
1-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raabdf
()+ Current system time is 21-JUN-2012 15:06:55 raabdf()- Current system time is
21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaa
sf()- Current system time is 21-JUN-2012 15:06:55 raabdf()+ Current system time
is 21-JUN-2012 15:06:55 raabdf()- Current system time is 21-JUN-2012 15:06:55 ra
aasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system tim
e is 21-JUN-2012 15:06:55 raabdf()+ Current system time is 21-JUN-2012 15:06:55
raabdf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system t
ime is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:5
5 raabdf()+ Current system time is 21-JUN-2012 15:06:55 Using bind variable vers
ion for Lookups raabdf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+
Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21JUN-2012 15:06:55 raabdf()+ Current system time is 21-JUN-2012 15:06:55 raabdf()
- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 2
1-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raabdf
()+ Current system time is 21-JUN-2012 15:06:55 raabdf()- Current system time is
21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaa
sf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time
is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 ra
abdf()+ Current system time is 21-JUN-2012 15:06:55 raabdf()- Current system tim
e is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55
raaasf()- Current system time is 21-JUN-2012 15:06:55 raabdf()+ Current system t
ime is 21-JUN-2012 15:06:55 raabdf()- Current system time is 21-JUN-2012 15:06:5
5 raaasf()+ Current system time is 21-JUN-2012 15:06:55

raaasf()- Current system time is 21-JUN-2012 raabdf()+ Current system time is 21


-JUN-2012 raabdf()- Current system time is 21-JUN-2012 raaasf()+ Current system
time is 21-JUN-2012 raaasf()- Current system time is 21-JUN-2012 raabdf()+ Curre
nt system time is 21-JUN-2012 raabdf()- Current system time is 21-JUN-2012 raaas
f()+ Current system time is 21-JUN-2012 raaasf()- Current system time is 21-JUN2012 raabdf()+ Current system time is 21-JUN-2012 raabdf()- Current system time
is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current sy
stem time is 21-JUN-2012 raabdf()+ Current system time is 21-JUN-2012 Using bind
variable version for Lookups raabdf()- Current system time is 21-JUN-2012 raaas
f()+ Current system time is 21-JUN-2012 raaasf()- Current system time is 21-JUN2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current system time
is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current sy
stem time is 21-JUN-2012 raabdf()+ Current system time is 21-JUN-2012 raabdf()Current system time is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012
raaasf()- Current system time is 21-JUN-2012 raabdf()+ Current system time is 21
-JUN-2012 Using bind variable version for Lookups raabdf()- Current system time
is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current sy
stem time is 21-JUN-2012 raabdf()+ Current system time is 21-JUN-2012 Using bind
variable version for Lookups raabdf()- Current system time is 21-JUN-2012 raaas
f()+ Current system time is 21-JUN-2012 raaasf()- Current system time is 21-JUN2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current system time
is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current sy
stem time is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()Current system time is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012
raaasf()- Current system time is 21-JUN-2012 raaasf()+ Current system time is 21
-JUN-2012 raaasf()- Current system time is 21-JUN-2012 raaasf()+ Current system
time is 21-JUN-2012 raaasf()- Current system time is 21-JUN-2012 raaasf()+ Curre
nt system time is 21-JUN-2012 raaasf()- Current system time is 21-JUN-2012 raaas
f()+ Current system time is 21-JUN-2012 raaasf()- Current system time is 21-JUN2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current system time
is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()- Current sy
stem time is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012 raaasf()Current system time is 21-JUN-2012 raaasf()+ Current system time is 21-JUN-2012
raaasf()- Current system time is 21-JUN-2012
15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55
15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:5
5 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:
55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06
:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:0
6:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:06:55 15:
06:55 15:06:55 15:06:55 15:06:55

raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system t


ime is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:5
5 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system
time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06
:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current syst
em time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:
06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current sy
stem time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 1
5:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current
system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012
15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()+ Curren
t system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-20
12 15:06:55 raabdf()+ Current system time is 21-JUN-2012 15:06:55 raabdf()- Curr
ent system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raabdf()+ Cu
rrent system time is 21-JUN-2012 15:06:55 raabdf()- Current system time is 21-JU
N-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf()Current system time is 21-JUN-2012 15:06:55 raaasf()+ Current system time is 21JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 raaasf()
+ Current system time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 2
1-JUN-2012 15:06:55 raaasf()+ Current system time is 21-JUN-2012 15:06:55 raaasf
()- Current system time is 21-JUN-2012 15:06:55 SELECT L.CUST_TRX_TYPE_NAME, DEC
ODE(L.CUST_TRX_TYPE_NAME, 'PMI Manual Invoice', '1013', 'Invoice', '1', 'Credit
Memo', '2', 'Projects Credit Memo', '7', 'Projects Invoice', '8', 'Credit Sales
Invoice', '1066', 'Credit Memo - CS', '1067', 'DHMO NON-RET INVOICE', '1486', -9
9), L.INVOICING_RULE_NAME, DECODE(L.INVOICING_RULE_NAME, 'Advance Invoice', '-2'
, 'Arrears Invoice', '-3', NULL, NULL, -99), L.TERM_NAME, DECODE(L.TERM_NAME, '3
0 NET', '4', 'IMMEDIATE', '5', 'Due on 10th', '1000', 'NT21', '1023', '60 Net',
'1001', '90 Net', '1002', 'N10', '1003', 'N45', '1004', 'N60', '1005', 'N90', '1
006', 'NT10', '1007', 'NT14', '1008', 'NT30', '1009',

'90 Net DNU', '1024', 'N31', '1044', 'N0', '1045', 'NT70', '1064', 'NT2', '1104'
, 'QS M1', '1144', 'QS M2', '1145', 'QS M3', '1146', 'NT45', '1124', 'NT60', '11
25', 'NT90', '1126', 'NT5', '1084', '60 NET (BFB)', '1184', '90 NET (BFB)', '120
4', '10 NET (BFB)', '1224', '14 NET (BFB)', '1244', '21 NET (BFB)', '1264', '30
NET (BFB)', '1164', 'QS M3 (BFB)', '1284', NULL, NULL, -99), L.UOM_NAME, DECODE(
L.UOM_NAME, 'US DOLLAR', 'USD', 'HOUR', 'HR', 'MONTH', 'MTH', 'WEEK', 'WK', 'YEA
R', 'YR', 'EACH', 'EA', 'DOZEN', 'DZ', 'GROSS', 'GRO', 'BAG', 'BG', 'BUNDLE', 'B
N', 'BOX', 'BX', 'CARD', 'CD', 'CARTON', 'CT', 'CASE', 'CS', 'KIT', 'KT', 'LOT',
'LT', 'PACKAGE', 'PKG', 'PAD', 'PD', 'PAIR', 'PR', 'PALLET', 'PL', 'PER 100', '
C', 'PER 1000', 'M', 'PER 1000000', 'MM', 'REAM', 'RM', 'ROLL', 'RL', 'SET', 'ST
', 'TUBE', 'TB', 'BOTTLE', 'BTL', 'PACK', 'PK', 'BOOK', 'BK', 'INCH', 'IN', 'PIN
T', 'PT', 'GALLON', 'GL', 'QUART', 'QT', 'FEET', 'FT', 'YARD', 'YD', 'Daily', 'D
AY', 'Bi-Weekly', 'BWK', 'Quarterly', 'QTR',

'Half Yearly', 'HYR', NULL, NULL, -99), L.AGREEMENT_NAME, DECODE(L.AGREEMENT_NAM


E, NULL, NULL, -99), L.FOB_POINT, DECODE(L.FOB_POINT, 'BUY', 'BUY', 'CUSTOMER SI
TE', 'CUSTOMER SITE', 'FACTORY', 'FACTORY', 'LOAD', 'LOAD', 'SEL', 'SEL', 'SHIP
POINT', 'SHIP POINT', NULL, NULL, -99), L.ACCOUNTING_RULE_NAME, DECODE(L.ACCOUNT
ING_RULE_NAME, 'Immediate', '1', 'DDCI DHMO 10THLY', '1000', NULL, NULL, -99), L
.MEMO_LINE_NAME, DECODE(L.MEMO_LINE_NAME, 'Chargeback Line', '1', 'Debit Memo Re
ceipt Reversal', '2', 'Intercompany Freight', '8', 'Credit Sales Revenue- Same C
ontrol-Par', '1028', 'Credit Sales Revenue- Diff Control-Par', '1029', 'Credit S
ales Revenue- Non PMI-PMI Par', '1030', 'Retroactivity- Add/Term', '1031', 'Retr
oactivity- Other', '1032', 'Deferred Premium Income', '1033', 'Due to Subcontrac
tor/Non PMI', '1034', 'Due to New York', '1035', 'Subcontracted Admin Income', '
1036', 'DHMO NON-RETENTION PREMIUM', '4468', 'DHMO NON-RETENTION ADMIN', '4469',
'Deferred Admin Income', '5468', NULL, NULL, -99), DECODE(L.LINE_TYPE, 'LINE',
DECODE( DECODE(AOL.MINIMUM_ACCOUNTABLE_UNIT, NULL, ROUND(L.UNIT_SELLING_PRICE *
L.QUANTITY, AOL.PRECISION), ROUND(L.UNIT_SELLING_PRICE * L.QUANTITY/ AOL.MINIMUM
_ACCOUNTABLE_UNIT) * AOL.MINIMUM_ACCOUNTABLE_UNIT), AMOUNT, NULL, NULL, NULL, -9
9), NULL), L.LINE_TYPE, DECODE(L.LINE_TYPE, 'CHARGES', 'CHARGES', 'FREIGHT', 'FR
EIGHT', 'LINE', 'LINE', 'TAX', 'TAX', -99), L.CONVERSION_TYPE, DECODE(L.CONVERSI
ON_TYPE, 'Corporate', 'Corporate', 'EMU FIXED', 'EMU FIXED', 'Spot', 'Spot', 'Us
er', 'User', NULL, NULL, -99), L.PRIMARY_SALESREP_NUMBER, DECODE(L.PRIMARY_SALES
REP_NUMBER, '-3', '-3', NULL, NULL, -99), L.PRINTING_OPTION, DECODE(L.PRINTING_O
PTION, 'NOT', 'NOT', 'PRI', 'PRI', NULL, NULL, -99), DECODE(L.AMOUNT, NULL, NULL
,

DECODE(L.AMOUNT - DECODE(AOL.MINIMUM_ACCOUNTABLE_UNIT, NULL, ROUND(L.AMOUNT, AOL


.PRECISION), ROUND(L.AMOUNT / AOL.MINIMUM_ACCOUNTABLE_UNIT) * AOL.MINIMUM_ACCOUN
TABLE_UNIT), 0, NULL, -99)), DECODE(T.ALLOW_FREIGHT_FLAG, 'N', DECODE(L.LINE_TYP
E, 'FREIGHT', -99, NULL), NULL), L.SET_OF_BOOKS_ID, DECODE(L.SET_OF_BOOKS_ID, '1
', '1', NULL, NULL, -99), L.CREDIT_METHOD_FOR_ACCT_RULE, DECODE(L.CREDIT_METHOD_
FOR_ACCT_RULE, 'LIFO', 'LIFO', 'PRORATE', 'PRORATE', 'UNIT', 'UNIT', NULL, NULL,
-99), L.CREDIT_METHOD_FOR_INSTALLMENTS, DECODE(L.CREDIT_METHOD_FOR_INSTALLMENTS
, 'FIFO', 'FIFO', 'LIFO', 'LIFO', 'PRORATE', 'PRORATE', NULL, NULL, -99), DECODE
(L.LINK_TO_LINE_ID, NULL, DECODE(L.TRX_NUMBER, NULL, -99, NULL), NULL), DECODE(L
.TAX_PRECEDENCE, NULL, NULL, -99), DECODE(T.TYPE, 'CM', DECODE(L.TERM_ID, NULL,
DECODE(L.TERM_NAME, NULL, NULL, -99), -99), NULL), DECODE(T.TYPE, 'CM', DECODE(L
.REFERENCE_LINE_ID, NULL, DECODE(L.REFERENCE_LINE_CONTEXT, NULL, DECODE(NVL(TO_C
HAR(L.INVOICING_RULE_ID),L.INVOICING_RULE_NAME), NULL, NULL, -99), NULL), NULL),
NULL), DECODE(T.TYPE, 'CM', DECODE(L.RELATED_CUSTOMER_TRX_ID, NULL, DECODE(L.RE
LATED_TRX_NUMBER, NULL, NULL, -99), -99), NULL), DECODE(T.TYPE, 'CM', NULL, DECO
DE(L.LINK_TO_LINE_ID, NULL, DECODE(L.TERM_NAME, NULL, -99, NULL))), DECODE(UPPER
(L.CONVERSION_TYPE), 'USER', DECODE(L.CONVERSION_RATE, NULL, -99, NULL), NULL),
DECODE(UPPER(L.CONVERSION_TYPE), 'USER', NULL, DECODE(L.CONVERSION_RATE, NULL, N
ULL, -99)), DECODE(L.ACCOUNTING_RULE_NAME, NULL, DECODE(L.INVOICING_RULE_NAME, N
ULL, NULL, -99), DECODE(L.INVOICING_RULE_NAME, NULL, -99)), DECODE(L.LINE_TYPE,
'TAX', DECODE(L.AMOUNT, NULL, DECODE(L.TAX_RATE, NULL, -99, NULL), NULL), NULL),
DECODE(L.LINE_TYPE, 'LINE', DECODE(L.LINK_TO_LINE_ID, NULL, NULL, -99), 'CHARGE
S', DECODE(L.LINK_TO_LINE_ID, NULL, NULL, -99), NULL), DECODE(L.LINE_TYPE,

'TAX', DECODE(L.LINK_TO_LINE_ID, NULL, -99, NULL), NULL), DECODE(L.MEMO_LINE_NAM


E, NULL, NULL, DECODE(L.MTL_SYSTEM_ITEMS_SEG1, NULL, NULL, -99)), DECODE(L.RELAT
ED_TRX_NUMBER, NULL, DECODE(L.RELATED_BATCH_SOURCE_NAME, NULL, NULL, -99), DECOD
E(L.RELATED_BATCH_SOURCE_NAME, NULL, -99, NULL)), DECODE(L.LINE_TYPE, 'LINE', DE
CODE(L.CREDIT_METHOD_FOR_ACCT_RULE, 'UNIT', DECODE(L.QUANTITY, NULL, -99, NULL),
NULL), NULL), DECODE(L.LINE_TYPE, 'TAX', DECODE(T.TYPE, 'CM', NULL, DECODE(L.TA
X_CODE, NULL, DECODE(L.TAX_REGIME_CODE || L.TAX || L.TAX_STATUS_CODE || L.TAX_RA
TE_CODE || L.TAX_JURISDICTION_CODE , NULL, -99, NULL), NULL)), NULL), DECODE(L.L
INE_TYPE, 'CHARGES', DECODE(L.INVOICING_RULE_ID, NULL, DECODE(L.INVOICING_RULE_N
AME, NULL, DECODE(L.ACCOUNTING_RULE_ID, NULL, DECODE(L.ACCOUNTING_RULE_NAME, NUL
L, NULL, -99), -99), -99), -99), NULL), DECODE(L.LINE_TYPE, 'CHARGES', DECODE(L.
UOM_CODE, NULL, DECODE(L.UOM_NAME, NULL, NULL, -99), -99), NULL), DECODE(L.LINE_
TYPE, 'CHARGES', DECODE(L.QUANTITY, 1, NULL, -1, NULL, -99), NULL), DECODE(L.LIN
E_TYPE, 'CHARGES', DECODE(T.TYPE, 'CM', NULL, 'DM', NULL, -99), NULL), DECODE(T.
POST_TO_GL, 'N', DECODE(L.GL_DATE, NULL, NULL, -99), NULL), L.TAX_EXEMPT_FLAG, D
ECODE(L.TAX_EXEMPT_FLAG, 'E', 'E', 'R', 'R', 'S', 'S', NULL, NULL, -99), L.TAX_E
XEMPT_REASON_CODE_MEANING, DECODE(L.TAX_EXEMPT_REASON_CODE_MEANING, 'R10upgrade'
, 'R10UPGRADE', 'education', 'EDUCATION', 'hospital', 'HOSPITAL', 'manufacturer'
, 'MANUFACTURER', 'resale', 'RESALE', 'research', 'RESEARCH', NULL, NULL, -99),
DECODE(L.LINE_TYPE, 'LINE', DECODE(L.TAX_EXEMPT_FLAG, 'E',

DECODE(L.TAX_EXEMPT_REASON_CODE, NULL, DECODE(L.TAX_EXEMPT_REASON_CODE_MEANING,


NULL, -99, NULL), NULL), NULL), NULL), DECODE(L.INTERFACE_LINE_CONTEXT, NULL, -9
9, NULL), L.INTERFACE_LINE_ID FROM RA_INTERFACE_LINES_GT L, RA_CUST_TRX_TYPES T,
FND_CURRENCIES AOL WHERE L.REQUEST_ID = :b1 AND L.CUST_TRX_TYPE_NAME = T.NAME (
+) AND L.CURRENCY_CODE = AOL.CURRENCY_CODE (+) len = 8474 raabsv()- Current syst
em time is 21-JUN-2012 15:06:55 raavar()+ Current system time is 21-JUN-2012 15:
06:55 raaamd()+ Current system time is 21-JUN-2012 15:06:55 raaamd()- Current sy
stem time is 21-JUN-2012 15:06:55 array_size = 621 ========== 8398015 ==========
CUST_TRX_TYPE_NAME xxxDHMO NON-RET INVOICExxx INVOICING_RULE_NAME xxxAdvance In
voicexxx TERM_NAME xxx30 NET (BFB)xxx UOM_NAME xxxxxx AGREEMENT_NAME xxxxxx FOB_
POINT xxxxxx ACCOUNTING_RULE_NAME xxxImmediatexxx MEMO_LINE_NAME xxxxxx LINE_TYP
E xxxLINExxx CONVERSION_TYPE xxxUserxxx PRIMARY_SALESREP_NUMBER xxxxxx PRINTING_
OPTION xxxxxx SET_OF_BOOKS_ID xxx1xxx CREDIT_METHOD_FOR_ACCT_RULE xxxxxx CREDIT_
METHOD_FOR_INSTALLMENTS xxxxxx TAX_EXEMPT_FLAG xxxxxx TAX_EXEMPT_REASON_CODE_MEA
NING xxxxxx raauir()+ Current system time is 21-JUN-2012 15:06:55 UPDATE RA_INTE
RFACE_LINES SET CUST_TRX_TYPE_ID = NVL(:var1,CUST_TRX_TYPE_ID), INVOICING_RULE_I
D = NVL(:var2,INVOICING_RULE_ID), TERM_ID = NVL(:var3,TERM_ID), UOM_CODE = NVL(:
var4,UOM_CODE), AGREEMENT_ID = NVL(:var5,AGREEMENT_ID), ACCOUNTING_RULE_ID = NVL
(:var6,ACCOUNTING_RULE_ID), MEMO_LINE_ID = NVL(:var7,MEMO_LINE_ID), PRIMARY_SALE
SREP_ID = NVL(:var8,PRIMARY_SALESREP_ID), TAX_EXEMPT_REASON_CODE = NVL(:var9,TAX
_EXEMPT_REASON_CODE) WHERE INTERFACE_LINE_ID = :line_id raauir()- Current system
time is 21-JUN-2012 15:06:55 raapem: no errors recorded raavar()- Current syste
m time is 21-JUN-2012 15:06:55 raajfd()+ Current system time is 21-JUN-2012 15:0
6:55 INSERT INTO RA_INTERFACE_ERRORS(INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VA
LUE,O RG_ID) SELECT INTERFACE_LINE_ID, :v1, REASON_CODE_MEANING, L.ORG_ID FROM R
A_INTERFACE_L INES_GT L WHERE request_id = :v2 AND REASON_CODE_MEANING IS NOT NU
LL

AND NOT EXISTS (SELECT REPLACE(T.LOOKUP_CODE, '''', '''''') FROM AR_LOOKUPS T, R


A_CUST_TRX_TYPES TYPE WHERE L.CUST_TRX_TYPE_NAME = TYPE.NAME(+) AND T.LOOKUP_TYP
E = DECODE(TYPE.TYPE, 'CM', 'CREDIT_MEMO_REASON', 'INVOICING_REASON') AND T.MEAN
ING = L.REASON_CODE_MEANING) INSERT INTO RA_INTERFACE_ERRORS(INTERFACE_LINE_ID,
MESSAGE_TEXT, INVALID_VALUE,O RG_ID) SELECT INTERFACE_LINE_ID, :v1, SHIP_VIA, L.
ORG_ID FROM RA_INTERFACE_LINES_GT L WHERE request_id = :v2 AND SHIP_VIA IS NOT N
ULL AND NOT EXISTS (SELECT DISTINCT REPLACE(T.FREIGHT_CODE, '''', ''''''), REPLA
CE(T.FREIGHT_CODE, '''', '''''') FROM ORG_FREIGHT T WHERE ORGANIZATION_ID = L.WA
REHOUSE_ID AND T.FREIGHT_CODE = L.SHIP_VIA) INSERT INTO RA_INTERFACE_ERRORS(INTE
RFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE,O RG_ID) SELECT INTERFACE_LINE_ID, :v
1, RECEIPT_METHOD_NAME, L.ORG_ID FROM RA_INTERFACE_L INES_GT L WHERE request_id
= :v2 AND RECEIPT_METHOD_NAME IS NOT NULL AND NOT EXISTS (SELECT REPLACE(T.NAME,
'''', ''''''), T.RECEIPT_METHOD_ID FROM AR_RECEIPT_METHODS T WHERE T.NAME = L.R
ECEIPT_METHOD_NAME) INSERT INTO RA_INTERFACE_ERRORS(INTERFACE_LINE_ID, MESSAGE_T
EXT, INVALID_VALUE, ORG_ID) SELECT INTERFACE_LINE_ID, :v1, DECODE(CURRENCY_CODE,
NULL, :v2, CURRENCY_CODE ), L.ORG_ID FROM RA_INTERFACE_LINES_GT L WHERE request
_id = :v3 AND NOT EXISTS (SELECT REPLACE(T.CURRENCY_CODE, '''', ''''''), REPLACE
(T.CURRENCY_CODE, '''', '''''') FROM FND_CURRENCIES T WHERE T.CURRENCY_CODE = L.
CURRENCY_CODE) UPDATE RA_INTERFACE_LINES_GT L SET REASON_CODE = ( SELECT REPLACE
(T.LOOKUP_CODE, '''', '''''') FROM AR_LOOKUPS T, RA_CUST_TRX_TYPES TYPE WHERE L.
CUST_TRX_TYPE_NAME = TYPE.NAME(+) AND T.LOOKUP_TYPE = DECODE(TYPE.TYPE, 'CM', 'C
REDIT_MEMO_REASON', 'INVOICING_REASON') AND T.MEANING = L.REASON_CODE_MEANING),
RECEIPT_METHOD_ID = (SELECT T.RECEIPT_METHOD_ID FROM AR_RECEIPT_METHODS T WHERE
T.NAME = L.RECEIPT_METHOD_NAME) WHERE L.REQUEST_ID = :b1 raajfd()- Current syste
m time is 21-JUN-2012 15:06:56 raavdx()+ Current system time is 21-JUN-2012 15:0
6:56 AR_GLD_FAILURE

INSERT INTO RA_INTERFACE_ERRORS (INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE,


ORG_ID) SELECT L.INTERFACE_LINE_ID, CASE WHEN L.RULE_START_DATE IS NULL THEN ar
p_standard.fnd_message('AR_RAXTRX_RULE_START_DT_NULL' ) WHEN L.RULE_END_DATE IS
NULL THEN arp_standard.fnd_message('AR_RAXTRX_RULE_END_DT_NULL') WHEN L.RULE_END
_DATE < L.RULE_START_DATE THEN arp_standard.fnd_message('AR_RAXTRX_RSD_LT_RED')
ELSE 'NO_MSG' END, L.RULE_START_DATE || '-' || l.rule_end_date, L.ORG_ID FROM RA
_INTERFACE_LINES_GT L WHERE L.REQUEST_ID = :request_id AND L.INVOICING_RULE_ID I
S NOT NULL AND (L.RULE_START_DATE IS NULL OR L.RULE_END_DATE is null OR (L.RULE_
END_DATE < L.RULE_START_DATE) ) AND L.LINK_TO_LINE_ID IS NULL AND EXISTS (SELECT
'X' FROM ra_rules rr WHERE rr.rule_id = l.accounting_rule_id AND rr.type NOT IN
('A', 'ACC_DUR')) raapem: no errors recorded raavdx()- Current system time is 2
1-JUN-2012 15:06:56 raadld()+ Current system time is 21-JUN-2012 15:06:56 raadld
()- Current system time is 21-JUN-2012 15:06:56 raavif()+ Current system time is
21-JUN-2012 15:06:56 raaacp()+ Current system time is 21-JUN-2012 15:06:56 raag
sd()+ Current system time is 21-JUN-2012 15:06:56 raagsd()- Current system time
is 21-JUN-2012 15:06:56 raaacp()- Current system time is 21-JUN-2012 15:06:56 ra
abss()+ Current system time is 21-JUN-2012 15:06:56 SELECT ROWID, INTERFACE_LINE
_ID ,MTL_SYSTEM_ITEMS_SEG1 FROM RA_INTERFACE_LINES_GT WHERE REQUEST_ID = :b1 ORD
ER BY MTL_SYSTEM_ITEMS_SEG1 raabss()raaamd()+ raaamd()raaasp()+ raaasp()raaamc()
+ raaamc()raaaui()+ Number of raaffc()+ Current system Current system Current sy
stem Current system Current system Current system Current system Current system
DISTINCT Items Current system time time time time time time time time = 1 time i
s is is is is is is is 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-20
12 21-JUN-2012 21-JUN-2012 21-JUN-2012 15:06:56 15:06:56 15:06:56 15:06:56 15:06
:56 15:06:56 15:06:56 15:06:56
is 21-JUN-2012 15:06:56

raabfs()+ Current system time is 21-JUN-2012 15:06:56 raabfs()- Current system t


ime is 21-JUN-2012 15:06:56 select INVENTORY_ITEM_ID, enabled_flag, nvl(to_char(
start_date_active, 'J'), -1), nvl(to_char(end_date_active, 'J'), -1), SEGMENT1,i
nvoice_enabled_flag from MTL_SYSTEM_ITEMS_B where ORGANIZATION_ID = 103 and SEGM
ENT1 is null order by SEGMENT1 raaafs()+ Current system time is 21-JUN-2012 15:0
6:56 raaamd()+ Current system time is 21-JUN-2012 15:06:56 raaamd()- Current sys
tem time is 21-JUN-2012 15:06:56 raaafs()- Current system time is 21-JUN-2012 15
:06:56 sys->raafspmfs = 11037 raafui()+ Current system time is 21-JUN-2012 15:06
:56 raafui()- Current system time is 21-JUN-2012 15:06:56 raaffc()- Current syst
em time is 21-JUN-2012 15:06:56 raaaui()- Current system time is 21-JUN-2012 15:
06:56 raapem: no errors recorded raaffm()+ Current system time is 21-JUN-2012 15
:06:56 raaffm()- Current system time is 21-JUN-2012 15:06:56 raavif()- Current s
ystem time is 21-JUN-2012 15:06:56 raavli()+ Current system time is 21-JUN-2012
15:06:56 raagixpfx = 0 raagixtpf = 0 raagixddf = 1 raagixacf = 0 raagixrit = 0 r
aagixagd = 0 raagixatn = 0 raagixcte = 0 raagixdfd = . raagixctc = 0 raagixrmx =
T raagixfdx = 21-JUN-12 raagixbix = raagixbsi (batch_source_id) = 3227 raagixbn
x (batch_source_name) = DELTA CARE METAVANCE1 raagixoix (org_id) = 85 so_organiz
ation_id = 103 raagixrix (request_id) = 12955895 raagixpix = 20428 raagixpai = 2
22 raagixuix = 269429 raagixunx = HITACHI raagixanx = AR raagixlul = 15201133 ra
agixasc = 1 raagixrho = N raagixrsf = 0 raagixcbf = 0 raagixuax = 1 raagixsnf =
0 raagixtao = 1 raagixptf = 0 raagixstf = 0 raagixrfi = 0 raagixtac = 0

raagixcai = 50241 raagixsbi = 1 raagixcpr = 2 raagixmau = raagixmlx = 3 raagixmb


x = 1048576 raagixafp = Account raagixifp = raagixtfp = raapem: no errors record
ed raavli()- Current system time is 21-JUN-2012 15:06:56 raavci()+ Current syste
m time is 21-JUN-2012 15:06:56 UPDATE RA_INTERFACE_LINES_GT INT_LINE SET ORIG_SY
STEM_SOLD_CUSTOMER_ID = (SELECT CUST_ACCT.CUST_ACCOUNT_ID FROM HZ_CUST_ACCOUNTS
CUST_ACCT WHERE CUST_ACCT.ORIG_SYSTEM_REFERENCE = INT_LINE.ORIG_SYSTEM_SOLD_CUST
OMER_REF), ORIG_SYSTEM_BILL_CONTACT_ID = (SELECT ACCT_ROLE.CUST_ACCOUNT_ROLE_ID
FROM HZ_CUST_ACCOUNT_ROLES ACCT_ROLE WHERE ACCT_ROLE.ORIG_SYSTEM_REFERENCE = INT
_LINE.ORIG_SYSTEM_BILL_CONTACT_REF), ORIG_SYSTEM_SHIP_CONTACT_ID = (SELECT ACCT_
ROLE.CUST_ACCOUNT_ROLE_ID FROM HZ_CUST_ACCOUNT_ROLES ACCT_ROLE WHERE ACCT_ROLE.O
RIG_SYSTEM_REFERENCE = INT_LINE.ORIG_SYSTEM_SHIP_CONTACT_REF), ORIG_SYSTEM_BILL_
ADDRESS_ID = (SELECT ACCT_SITE.CUST_ACCT_SITE_ID FROM HZ_CUST_ACCT_SITES ACCT_SI
TE WHERE ACCT_SITE.ORIG_SYSTEM_REFERENCE = INT_LINE.ORIG_SYSTEM_BILL_ADDRESS_REF
), ORIG_SYSTEM_SHIP_ADDRESS_ID = (SELECT ACCT_SITE.CUST_ACCT_SITE_ID FROM HZ_CUS
T_ACCT_SITES ACCT_SITE WHERE ACCT_SITE.ORIG_SYSTEM_REFERENCE = INT_LINE.ORIG_SYS
TEM_SHIP_ADDRESS_REF) WHERE INT_LINE.REQUEST_ID = :b1 raavci()- Current system t
ime is 21-JUN-2012 15:06:56 raavgi()+ Current system time is 21-JUN-2012 15:06:5
6 raavgi()- Current system time is 21-JUN-2012 15:06:56 raavdf()+ Current system
time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06
:56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current syst
em time is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:
06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current sy
stem time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 1
5:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current
system time is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012
15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Curren
t system time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-20
12 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Curr
ent system time is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56

raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current system t


ime is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:5
6 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current system
time is 21-JUN-2012 15:06:56 INSERT INTO RA_INTERFACE_ERRORS (INTERFACE_LINE_ID
, MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT INTERFACE_LINE_ID, :b_err_msg4, SU
BSTRB( INTERFACE_LINE_ATTRIBUTE1||'.'||INTERFACE_LINE_ATTRIBUTE2 ,1,240), ORG_ID
FROM RA_INTERFACE_LINES_GT WHERE REQUEST_ID = :b1 AND INTERFACE_LINE_CONTEXT =
'METAVANCE' AND ( INTERFACE_LINE_ATTRIBUTE1 IS NULL OR INTERFACE_LINE_ATTRIBUTE2
IS NULL ) len = 397 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaas
f()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current system time i
s 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raa
asf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current system time
is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56 r
aaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current system ti
me is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:56
raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current system
time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:
56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current syste
m time is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:0
6:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current sys
tem time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 15
:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current s
ystem time is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012
15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current
system time is 21-JUN-2012 15:06:56 INSERT INTO RA_INTERFACE_ERRORS (INTERFACE_
LINE_ID, MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT /*+ cardinality(il 1) */ IN
TERFACE_LINE_ID, :b_err_msg5, SUBSTRB( INTERFACE_LINE_ATTRIBUTE1||'.'||INTERFACE
_LINE_ATTRIBUTE2 ,1,240), ORG_ID

FROM RA_INTERFACE_LINES_GT IL WHERE IL.REQUEST_ID = :b1 AND IL.INTERFACE_LINE_CO


NTEXT = 'METAVANCE' AND EXISTS (SELECT 'X' FROM RA_INTERFACE_LINES L WHERE L.ROW
ID != IL.ROWID AND L.INTERFACE_STATUS IS NULL AND L.INTERFACE_LINE_CONTEXT = IL.
INTERFACE_LINE_CONTEXT AND L.INTERFACE_LINE_ATTRIBUTE1 = IL.INTERFACE_LINE_ATTRI
BUTE1 AND L.INTERFACE_LINE_ATTRIBUTE2 = IL.INTERFACE_LINE_ATTRIBUTE2 ) len = 699
raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current system
time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:
56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current syste
m time is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:0
6:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current sys
tem time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-2012 15
:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:56 raaasf()+ Current s
ystem time is 21-JUN-2012 15:06:56 raaasf()- Current system time is 21-JUN-2012
15:06:56 raaasf()+ Current system time is 21-JUN-2012 15:06:56 raaasf()- Current
system time is 21-JUN-2012 15:06:56 raaasf()+ Current system time is 21-JUN-201
2 15:06:56 raaasf()- Current system time is 21-JUN-2012 15:06:56 INSERT INTO RA_
INTERFACE_ERRORS (INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT
/*+ cardinality(il 1) */ INTERFACE_LINE_ID, :b_err_msg6, 'trx_number='||T.TRX_N
UMBER||','||'customer_trx_id='||TL.CUSTOMER_TRX_ID, IL.ORG_ID FROM RA_INTERFACE_
LINES_GT IL, RA_CUSTOMER_TRX_LINES TL, RA_CUSTOMER_TRX T WHERE IL.REQUEST_ID = :
b1 AND IL.INTERFACE_LINE_CONTEXT = 'METAVANCE' AND T.CUSTOMER_TRX_ID =TL.CUSTOME
R_TRX_ID AND IL.INTERFACE_LINE_CONTEXT = TL.INTERFACE_LINE_CONTEXT AND IL.INTERF
ACE_LINE_ATTRIBUTE1 = TL.INTERFACE_LINE_ATTRIBUTE1 AND IL.INTERFACE_LINE_ATTRIBU
TE2 = TL.INTERFACE_LINE_ATTRIBUTE2 len = 626 raaasf()+ raaasf()raaasf()+ raaasf(
)raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()Current Current Current C
urrent Current Current Current Current Current Current system system system syst
em system system system system system system time time time time time time time
time time time is is is is is is is is is is 21-JUN-2012 21-JUN-2012 21-JUN-2012
21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN2012 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:
06:58 15:06:58

raaasf()+ Current system time is 21-JUN-2012 15:06:58 raaasf()- Current system t


ime is 21-JUN-2012 15:06:58 raaasf()+ Current system time is 21-JUN-2012 15:06:5
8 raaasf()- Current system time is 21-JUN-2012 15:06:58 raaasf()+ Current system
time is 21-JUN-2012 15:06:58 raaasf()- Current system time is 21-JUN-2012 15:06
:58 raaasf()+ Current system time is 21-JUN-2012 15:06:58 raaasf()- Current syst
em time is 21-JUN-2012 15:06:58 raaasf()+ Current system time is 21-JUN-2012 15:
06:58 raaasf()- Current system time is 21-JUN-2012 15:06:58 raaasf()+ Current sy
stem time is 21-JUN-2012 15:06:58 raaasf()- Current system time is 21-JUN-2012 1
5:06:58 raaasf()+ Current system time is 21-JUN-2012 15:06:58 raaasf()- Current
system time is 21-JUN-2012 15:06:58 raaasf()+ Current system time is 21-JUN-2012
15:06:58 raaasf()- Current system time is 21-JUN-2012 15:06:58 raaasf()+ Curren
t system time is 21-JUN-2012 15:06:58 raaasf()- Current system time is 21-JUN-20
12 15:06:58 raaasf()+ Current system time is 21-JUN-2012 15:06:58 raaasf()- Curr
ent system time is 21-JUN-2012 15:06:58 raaasf()+ Current system time is 21-JUN2012 15:06:58 raaasf()- Current system time is 21-JUN-2012 15:06:58 raaasf()+ Cu
rrent system time is 21-JUN-2012 15:06:58 raaasf()- Current system time is 21-JU
N-2012 15:06:58 raaasf()+ Current system time is 21-JUN-2012 15:06:58 raaasf()Current system time is 21-JUN-2012 15:06:58 raaasf()+ Current system time is 21JUN-2012 15:06:58 raaasf()- Current system time is 21-JUN-2012 15:06:58 raaasf()
+ Current system time is 21-JUN-2012 15:06:58 raaasf()- Current system time is 2
1-JUN-2012 15:06:58 raaasf()+ Current system time is 21-JUN-2012 15:06:58 raaasf
()- Current system time is 21-JUN-2012 15:06:58 INSERT INTO RA_INTERFACE_ERRORS
(INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT INTERFACE_LINE_I
D, :b_err_msg7, SUBSTRB( REFERENCE_LINE_ATTRIBUTE1||'.'||REFERENCE_LINE_ATTRIBUT
E2 ,1,240), ORG_ID FROM RA_INTERFACE_LINES_GT INT_LINE WHERE INT_LINE.REQUEST_ID
= :b1 AND INT_LINE.REFERENCE_LINE_ID IS NULL AND INT_LINE.REFERENCE_LINE_CONTEX
T = 'METAVANCE' AND ( INT_LINE.REFERENCE_LINE_ATTRIBUTE1 IS NOT NULL OR INT_LINE
.REFERENCE_LINE_ATTRIBUTE2 IS NOT NULL ) AND (NOT EXISTS (SELECT 'X' FROM RA_CUS
TOMER_TRX_LINES LINE WHERE INT_LINE.REFERENCE_LINE_CONTEXT = LINE.INTERFACE_LINE
_CONTEXT AND INT_LINE.REFERENCE_LINE_ATTRIBUTE1 = LINE.INTERFACE_LINE_ATTRIBUTE1
AND INT_LINE.REFERENCE_LINE_ATTRIBUTE2 = LINE.INTERFACE_LINE_ATTRIBUTE2 ) AND N
OT EXISTS (SELECT 'X'

FROM RA_INTERFACE_LINES LINE WHERE INT_LINE.REFERENCE_LINE_CONTEXT = LINE.INTERF


ACE_LINE_CONTEXT AND INT_LINE.REFERENCE_LINE_ATTRIBUTE1 = LINE.INTERFACE_LINE_AT
TRIBUTE1 AND INT_LINE.REFERENCE_LINE_ATTRIBUTE2 = LINE.INTERFACE_LINE_ATTRIBUTE2
) ) len = 1160 raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+
raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()
raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()
+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf
()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf
()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()Current Curren
t Current Current Current Current Current Current Current Current Current Curren
t Current Current Current Current Current Current Current Current Current Curren
t Current Current Current Current Current Current Current Current Current Curren
t Current Current Current Current Current Current Current Current Current Curren
t Current Current Current Current Current Current Current Current system system
system system system system system system system system system system system sys
tem system system system system system system system system system system system
system system system system system system system system system system system sy
stem system system system system system system system system system system syste
m system system time time time time time time time time time time time time time
time time time time time time time time time time time time time time time time
time time time time time time time time time time time time time time time time
time time time time time is is is is is is is is is is is is is is is is is is
is is is is is is is is is is is is is is is is is is is is is is is is is is is
is is is is is 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-J
UN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012
21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2
012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-J
UN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012
21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2
012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-J
UN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 15:06:58 15:06:58 15:06:
58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06
:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:0
6:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:
06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15
:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 15:06:58 1
5:06:58 15:06:58 15:06:58

raaasf()+ Current system time is 21-JUN-2012 15:06:58 raaasf()- Current system t


ime is 21-JUN-2012 15:06:58 INSERT INTO RA_INTERFACE_ERRORS (INTERFACE_LINE_ID,
MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT INTERFACE_LINE_ID, DECODE(INT_TRX_TY
PE.TYPE, 'CM', :b_err_msg1, 'DM', :b_err_msg2, 'INV', :b_err_msg3), SUBSTRB( REF
ERENCE_LINE_ATTRIBUTE1||'.'||REFERENCE_LINE_ATTRIBUTE2 ,1,240), INT_LINE.ORG_ID
FROM RA_CUST_TRX_TYPES INT_TRX_TYPE, RA_INTERFACE_LINES_GT INT_LINE WHERE INT_LI
NE.REQUEST_ID = :b1 AND INT_LINE.CUST_TRX_TYPE_ID = INT_TRX_TYPE.CUST_TRX_TYPE_I
D AND INT_LINE.REFERENCE_LINE_ID IS NULL AND INT_LINE.REFERENCE_LINE_CONTEXT = '
METAVANCE' AND ( INT_LINE.REFERENCE_LINE_ATTRIBUTE1 IS NOT NULL OR INT_LINE.REFE
RENCE_LINE_ATTRIBUTE2 IS NOT NULL ) AND (NOT EXISTS (SELECT /*+ ORDERED NO_UNNES
T */ 'X' FROM RA_CUSTOMER_TRX_LINES LINE, RA_CUSTOMER_TRX TRX, RA_CUST_TRX_TYPES
TRX_TYPE WHERE INT_LINE.REFERENCE_LINE_CONTEXT = LINE.INTERFACE_LINE_CONTEXT AN
D INT_LINE.REFERENCE_LINE_ATTRIBUTE1 = LINE.INTERFACE_LINE_ATTRIBUTE 1 AND INT_L
INE.REFERENCE_LINE_ATTRIBUTE2 = LINE.INTERFACE_LINE_ATTRIBUTE 2 AND LINE.CUSTOME
R_TRX_ID = TRX.CUSTOMER_TRX_ID AND TRX.CUST_TRX_TYPE_ID = TRX_TYPE.CUST_TRX_TYPE
_ID AND INT_TRX_TYPE.TYPE = DECODE(TRX_TYPE.TYPE, 'DEP', 'INV', 'GUAR', 'INV', '
INV', 'CM', 'DM', 'CM', '~!')) AND NOT EXISTS (SELECT /*+ NO_UNNEST */ 'X' FROM
RA_INTERFACE_LINES_GT LINE, RA_CUST_TRX_TYPES TRX_TYPE WHERE INT_LINE.REFERENCE_
LINE_CONTEXT = LINE.INTERFACE_LINE_CONTEXT AND INT_LINE.REFERENCE_LINE_ATTRIBUTE
1 = LINE.INTERFACE_LINE_ATTRIBUTE 1 AND INT_LINE.REFERENCE_LINE_ATTRIBUTE2 = LIN
E.INTERFACE_LINE_ATTRIBUTE 2 AND LINE.REQUEST_ID = :b1 AND LINE.CUST_TRX_TYPE_ID
= TRX_TYPE.CUST_TRX_TYPE_ID AND INT_TRX_TYPE.TYPE = DECODE(TRX_TYPE.TYPE,

'DEP', 'INV', 'GUAR', 'INV', 'INV', 'CM', 'DM', 'CM', '~!')) ) len = 2228 raavdf
()- Current system time is raavtf()+ Current system time is raavcx()+ Current sy
stem time is raavcx()- Current system time is raapu0()- Current system time is r
aapu1()+ Current system time is raavsi()+ Current system time is raavsi()- Curre
nt system time is raapu1()- Current system time is raapu2()+ Current system time
is raavaf()+ Current system time is raaacp()+ Current system time is raagsd()+
Current system time is raagsd()- Current system time is raaacp()- Current system
time is raabss()+ Current system time is SELECT ROWID, INTERFACE_LINE_ID, INTER
FACE_DISTRIBUTION_ID ,SEGMENT1 ,SEGMENT2 ,SEGMENT3 ,SEGMENT4 ,SEGMENT5 ,SEGMENT6
,SEGMENT7 FROM RA_INTERFACE_DISTRIBUTIONS WHERE REQUEST_ID = :b1 ORDER BY SEGME
NT1 ,SEGMENT2 ,SEGMENT3 ,SEGMENT4 ,SEGMENT5 ,SEGMENT6 ,SEGMENT7 21-JUN-2012 21-J
UN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012
21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 21-JUN-2
012 21-JUN-2012 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 1
5:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59
raabss()- Current system time is 21-JUN-2012 raaamd()+ Current system time is 21
-JUN-2012 raaamd()- Current system time is 21-JUN-2012 raaasp()+ Current system
time is 21-JUN-2012 raaasp()- Current system time is 21-JUN-2012 raaamc()+ Curre
nt system time is 21-JUN-2012 raaamc()- Current system time is 21-JUN-2012 raaau
i()+ Current system time is 21-JUN-2012 Number of DISTINCT Items = 2 raaffc()+ C
urrent system time is 21-JUN-2012 raabfs()+ Current system time is 21-JUN-2012 r
aabfs()- Current system time is 21-JUN-2012 select CODE_COMBINATION_ID, enabled_
flag, nvl(to_char(start_date_active, 'J'), -1),
15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59 15:06:59
15:06:59 15:06:59

nvl(to_char(end_date_active, 'J'), -1), SEGMENT1||'.'||SEGMENT2||'.'||SEGMENT3||


'.'||SEGMENT4||'.'||SEGMENT5||'.'||SEGME NT6||'.'||SEGMENT7,detail_posting_allow
ed_flag,summary_flag from GL_CODE_COMBINATIONS where CHART_OF_ACCOUNTS_ID = 5024
1 and SEGMENT3 in ('131300','410300') order by SEGMENT1, SEGMENT2, SEGMENT3, SEG
MENT4, SEGMENT5, SEGMENT6, SEGMENT7 raaafs()+ Current system time is 21-JUN-2012
15:06:59 raaamd()+ Current system time is 21-JUN-2012 15:06:59 raaamd()- Curren
t system time is 21-JUN-2012 15:06:59 raaafs()- Current system time is 21-JUN-20
12 15:06:59 sys->raafspmfs = 3679 raafui()+ Current system time is 21-JUN-2012 1
5:06:59 raafui()- Current system time is 21-JUN-2012 15:06:59 raaffc()- Current
system time is 21-JUN-2012 15:06:59 raaaui()- Current system time is 21-JUN-2012
15:06:59 raapem: no errors recorded raaffm()+ Current system time is 21-JUN-201
2 15:06:59 raaffm()- Current system time is 21-JUN-2012 15:06:59 raavaf()- Curre
nt system time is 21-JUN-2012 15:06:59 raavaf2()+ Current system time is 21-JUN2012 15:06:59 raaacp()+ Current system time is 21-JUN-2012 15:06:59 raagsd()+ Cu
rrent system time is 21-JUN-2012 15:06:59 raagsd()- Current system time is 21-JU
N-2012 15:06:59 raaacp()- Current system time is 21-JUN-2012 15:06:59 raabss()+
Current system time is 21-JUN-2012 15:06:59 SELECT ROWID, INTERFACE_LINE_ID, INT
ERFACE_DISTRIBUTION_ID ,INTERIM_TAX_SEGMENT1 ,INTERIM_TAX_SEGMENT2 ,INTERIM_TAX_
SEGMENT3 ,INTERIM_TAX_SEGMENT4 ,INTERIM_TAX_SEGMENT5 ,INTERIM_TAX_SEGMENT6 ,INTE
RIM_TAX_SEGMENT7 FROM RA_INTERFACE_DISTRIBUTIONS WHERE REQUEST_ID = :b1 AND acco
unt_class = 'TAX' AND ( (INTERIM_TAX_SEGMENT1 IS NOT NULL) OR ( INTERIM_TAX_SEGM
ENT2 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT3 IS NOT NULL ) OR ( INTERIM_TAX_SEGM
ENT4 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT5 IS NOT NULL ) OR ( INTERIM_TAX_SEGM
ENT6 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT7 IS NOT NULL ) ) ORDER BY INTERIM_TA
X_SEGMENT1 ,INTERIM_TAX_SEGMENT2 ,INTERIM_TAX_SEGMENT3 ,INTERIM_TAX_SEGMENT4 ,IN
TERIM_TAX_SEGMENT5 ,INTERIM_TAX_SEGMENT6 ,INTERIM_TAX_SEGMENT7 raabss()raaamd()+
raaamd()raaasp()+ raaasp()Current Current Current Current Current system system
system system system time time time time time is is is is is 21-JUN-2012 21-JUN
-2012 21-JUN-2012 21-JUN-2012 21-JUN-2012 15:06:59 15:06:59 15:06:59 15:06:59 15
:06:59

raaamc()+ Current system time is 21-JUN-2012 15:06:59 raaamc()- Current system t


ime is 21-JUN-2012 15:06:59 raapem: no errors recorded raaffm()+ Current system
time is 21-JUN-2012 15:06:59 raaffm()- Current system time is 21-JUN-2012 15:06:
59 raavaf2()- Current system time is 21-JUN-2012 15:06:59 raavdi()+ Current syst
em time is 21-JUN-2012 15:06:59 raapem: no errors recorded raavdi()- Current sys
tem time is 21-JUN-2012 15:06:59 raapu2()- Current system time is 21-JUN-2012 15
:06:59 raagtc()+ Current system time is 21-JUN-2012 15:06:59 SELECT DECODE(TYPE.
TYPE, 'INV', 0, 'DM', 1, 'CM', 2), DECODE(L.REFERENCE_LINE_ID, NULL, DECODE(L.RE
FERENCE_LINE_ATTRIBUTE1 || L.REFERENCE_LINE_ATTRIBUTE2 || L.REFERENCE_LINE_ATTRI
BUTE3 || L.REFERENCE_LINE_ATTRIBUTE4 || L.REFERENCE_LINE_ATTRIBUTE5 || L.REFEREN
CE_LINE_ATTRIBUTE6 || L.REFERENCE_LINE_ATTRIBUTE7 || L.REFERENCE_LINE_ATTRIBUTE8
|| L.REFERENCE_LINE_ATTRIBUTE9 || L.REFERENCE_LINE_ATTRIBUTE10 || L.REFERENCE_L
INE_ATTRIBUTE11 || L.REFERENCE_LINE_ATTRIBUTE12 || L.REFERENCE_LINE_ATTRIBUTE13
|| L.REFERENCE_LINE_ATTRIBUTE14 || L.REFERENCE_LINE_ATTRIBUTE15, NULL, 0, 1), 1)
, COUNT(*) FROM RA_CUST_TRX_TYPES TYPE, RA_INTERFACE_LINES_GT L WHERE L.REQUEST_
ID = :b1 AND L.CUST_TRX_TYPE_ID = TYPE.CUST_TRX_TYPE_ID GROUP BY DECODE(TYPE.TYP
E, 'INV', 0, 'DM', 1, 'CM', 2), DECODE(L.REFERENCE_LINE_ID, NULL, DECODE(L.REFER
ENCE_LINE_ATTRIBUTE1 || L.REFERENCE_LINE_ATTRIBUTE2 || L.REFERENCE_LINE_ATTRIBUT
E3 || L.REFERENCE_LINE_ATTRIBUTE4 || L.REFERENCE_LINE_ATTRIBUTE5 || L.REFERENCE_
LINE_ATTRIBUTE6 || L.REFERENCE_LINE_ATTRIBUTE7 || L.REFERENCE_LINE_ATTRIBUTE8 ||
L.REFERENCE_LINE_ATTRIBUTE9 || L.REFERENCE_LINE_ATTRIBUTE10 || L.REFERENCE_LINE
_ATTRIBUTE11 || L.REFERENCE_LINE_ATTRIBUTE12 || L.REFERENCE_LINE_ATTRIBUTE13 ||
L.REFERENCE_LINE_ATTRIBUTE14 || L.REFERENCE_LINE_ATTRIBUTE15, NULL, 0, 1), 1) OR
DER BY 1 ASC, 2 DESC len = 1528

Dumping the contents of struct raagtx ... raagtxnr = 1 0 gtb->raagtxti = 1 0 gtb


->raagtxtc = 1 raagtc()- Current system time is 21-JUN-2012 raaibd()+ Current sy
stem time is 21-JUN-2012 raaibd()- Current system time is 21-JUN-2012 raapic()+
Current system time is 21-JUN-2012
15:06:59 15:06:59 15:06:59 15:06:59
Grouping : Current system time is 21-JUN-2012 15:06:59 raagtl()+ Current system
time is 21-JUN-2012 15:06:59 SELECT DISTINCT BS.GROUPING_RULE_ID, T.TYPE FROM RA
_BATCH_SOURCES BS, RA_CUST_TRX_TYPES T, RA_INTERFACE_LINES_GT L WHERE L.REQUEST_
ID = :b1 AND NVL(L.INTERFACE_STATUS, '~') != 'P' AND BS.BATCH_SOURCE_ID = :b2 AN
D L.CUST_TRX_TYPE_ID = T.CUST_TRX_TYPE_ID AND NOT ((L.REFERENCE_LINE_ID IS NOT N
ULL or l.reference_line_attribute1 || l.reference_line_attribute2 || l.reference
_line_attribute3 || l.reference_line_attribute4 || l.reference_line_attribute5 |
| l.reference_line_attribute6 || l.reference_line_attribute7 || l.reference_line
_attribute8 || l.reference_line_attribute9 || l.reference_line_attribute10 || l.
reference_line_attribute11 || l.reference_line_attribute12 || l.reference_line_a
ttribute13 || l.reference_line_attribute14 || l.reference_line_attribute15 is no
t null) AND T.TYPE = 'CM') len = 853 raauct()+ Current system time is 21-JUN-201
2 15:06:59 raaggc()+ Current system time is 21-JUN-2012 15:06:59 raaggc()- Curre
nt system time is 21-JUN-2012 15:06:59 raagoc()+ Current system time is 21-JUN-2
012 15:06:59 raagoc()- Current system time is 21-JUN-2012 15:06:59 select CONTRA
CT_ID||'~'||L.AGREEMENT_ID||'~'||L.APPLICATION_ID||'~'||L.BILLING_DATE||'~ '||L.
COMMENTS||'~'||L.CONS_BILLING_NUMBER||'~'||L.CONVERSION_RATE||'~'||L.CONVER SION
_TYPE||'~'||L.CREDIT_METHOD_FOR_ACCT_RULE||'~'||L.CREDIT_METHOD_FOR_INSTALLM ENT
S||'~'||L.CURRENCY_CODE||'~'||L.CUSTOMER_BANK_ACCOUNT_ID||'~'||L.CUST_TRX_TYP E_
ID||'~'||L.DEFAULT_TAXATION_COUNTRY||'~'||L.DOCUMENT_NUMBER||'~'||L.DOCUMENT_N U
MBER_SEQUENCE_ID||'~'||L.DOCUMENT_SUB_TYPE||'~'||L.GL_DATE||'~'||L.HEADER_ATTRI
BUTE1||'~'||L.HEADER_ATTRIBUTE10||'~'||L.HEADER_ATTRIBUTE11||'~'||L.HEADER_ATTRI
BUTE12||'~'||L.HEADER_ATTRIBUTE13||'~'||L.HEADER_ATTRIBUTE14||'~'||L.HEADER_ATT
R IBUTE15||'~'||L.HEADER_ATTRIBUTE2||'~'||L.HEADER_ATTRIBUTE3||'~'||L.HEADER_ATT
RI BUTE4||'~'||L.HEADER_ATTRIBUTE5||'~'||L.HEADER_ATTRIBUTE6||'~'||L.HEADER_ATTR
IBU TE7||'~'||L.HEADER_ATTRIBUTE8||'~'||L.HEADER_ATTRIBUTE9||'~'||L.HEADER_ATTRI
BUTE _CATEGORY||'~'||L.HEADER_GDF_ATTRIBUTE1||'~'||L.HEADER_GDF_ATTRIBUTE10||'~'
||L.H EADER_GDF_ATTRIBUTE11||'~'||L.HEADER_GDF_ATTRIBUTE12||'~'||L.HEADER_GDF_AT
TRIBUT

E13||'~'||L.HEADER_GDF_ATTRIBUTE14||'~'||L.HEADER_GDF_ATTRIBUTE15||'~'||L.HEADER
_GDF_ATTRIBUTE16||'~'||L.HEADER_GDF_ATTRIBUTE17||'~'||L.HEADER_GDF_ATTRIBUTE18|
| '~'||L.HEADER_GDF_ATTRIBUTE19||'~'||L.HEADER_GDF_ATTRIBUTE2||'~'||L.HEADER_GDF
_A TTRIBUTE20||'~'||L.HEADER_GDF_ATTRIBUTE21||'~'||L.HEADER_GDF_ATTRIBUTE22||'~'
||L .HEADER_GDF_ATTRIBUTE23||'~'||L.HEADER_GDF_ATTRIBUTE24||'~'||L.HEADER_GDF_AT
TRIB UTE25||'~'||L.HEADER_GDF_ATTRIBUTE26||'~'||L.HEADER_GDF_ATTRIBUTE27||'~'||L
.HEAD ER_GDF_ATTRIBUTE28||'~'||L.HEADER_GDF_ATTRIBUTE29||'~'||L.HEADER_GDF_ATTRI
BUTE3| |'~'||L.HEADER_GDF_ATTRIBUTE30||'~'||L.HEADER_GDF_ATTRIBUTE4||'~'||L.HEAD
ER_GDF_ ATTRIBUTE5||'~'||L.HEADER_GDF_ATTRIBUTE6||'~'||L.HEADER_GDF_ATTRIBUTE7||
'~'||L.H EADER_GDF_ATTRIBUTE8||'~'||L.HEADER_GDF_ATTRIBUTE9||'~'||L.INITIAL_CUST
OMER_TRX_ ID||'~'||L.INTERNAL_NOTES||'~'||L.INVOICING_RULE_ID||'~'||L.LEGAL_ENTI
TY_ID||'~' ||L.LINE_GDF_ATTR_CATEGORY||'~'||L.ORIG_SYSTEM_BATCH_NAME||'~'||L.ORI
G_SYSTEM_BI LL_ADDRESS_ID||'~'||L.ORIG_SYSTEM_BILL_CONTACT_ID||'~'||L.ORIG_SYSTE
M_BILL_CUSTO MER_ID||'~'||L.ORIG_SYSTEM_SOLD_CUSTOMER_ID||'~'||L.PAYMENT_ATTRIBU
TES||'~'||L.P AYMENT_SET_ID||'~'||L.PREVIOUS_CUSTOMER_TRX_ID||'~'||L.PRIMARY_SAL
ESREP_ID||'~'| |L.PRINTING_OPTION||'~'||L.PURCHASE_ORDER||'~'||L.PURCHASE_ORDER_
DATE||'~'||L.PU RCHASE_ORDER_REVISION||'~'||L.REASON_CODE||'~'||L.RECEIPT_METHOD
_ID||'~'||L.RELA TED_CUSTOMER_TRX_ID||'~'||L.SET_OF_BOOKS_ID||'~'||L.TAXED_UPSTR
EAM_FLAG||'~'||L. TERM_ID||'~'||L.TERRITORY_ID||'~'||L.TRX_DATE||'~'||L.TRX_NUMB
ER||'~'||NVL(L.CON VERSION_DATE, L.TRX_DATE), substrb(l.line_type,1,1), null, nu
ll, l.rowid, null, 'B', '2' from ra_cust_trx_types t, ra_interface_lines l, ra_i
nterface_distributions d where l.request_id = :request_id and nvl(l.interface_st
atus, '~') != 'P' and l.cust_trx_type_id = t.cust_trx_type_id and t.type = :trx_
type and l.interface_line_id = d.interface_line_id (+) and d.account_class (+) =
'REC' and NOT ((l.reference_line_id is not null or l.reference_line_attribute1
|| l.reference_line_attribute2 || l.reference_line_attribute3 || l.reference_lin
e_attribute4 || l.reference_line_attribute5 || l.reference_line_attribute6 || l.
reference_line_attribute7 || l.reference_line_attribute8 || l.reference_line_att
ribute9 || l.reference_line_attribute10 || l.reference_line_attribute11 || l.ref
erence_line_attribute12 || l.reference_line_attribute13 || l.reference_line_attr
ibute14 || l.reference_line_attribute15 is not null) and t.type = 'CM') and nvl(
l.interface_status, '~') != 'P' and l.link_to_line_id is null and not exists ( s
elect /*+ index(e) */ 'x' from ra_interface_errors e

where e.interface_line_id = l.interface_line_id ) and not exists ( select /*+ no


_unnest leading(lk) use_nl_with_index(e,RA_INTERFACE_ERRORS_N1) */ 'x' from ra_i
nterface_lines lk, ra_interface_errors e where e.interface_line_id = lk.interfac
e_line_id and lk.link_to_line_id = l.interface_line_id) union select CONTRACT_ID
||'~'||L.AGREEMENT_ID||'~'||L.APPLICATION_ID||'~'||L.BILLING_DATE||'~ '||L.COMME
NTS||'~'||L.CONS_BILLING_NUMBER||'~'||L.CONVERSION_RATE||'~'||L.CONVER SION_TYPE
||'~'||L.CREDIT_METHOD_FOR_ACCT_RULE||'~'||L.CREDIT_METHOD_FOR_INSTALLM ENTS||'~
'||L.CURRENCY_CODE||'~'||L.CUSTOMER_BANK_ACCOUNT_ID||'~'||L.CUST_TRX_TYP E_ID||'
~'||L.DEFAULT_TAXATION_COUNTRY||'~'||L.DOCUMENT_NUMBER||'~'||L.DOCUMENT_N UMBER_
SEQUENCE_ID||'~'||L.DOCUMENT_SUB_TYPE||'~'||L.GL_DATE||'~'||L.HEADER_ATTRI BUTE1
||'~'||L.HEADER_ATTRIBUTE10||'~'||L.HEADER_ATTRIBUTE11||'~'||L.HEADER_ATTRI BUTE
12||'~'||L.HEADER_ATTRIBUTE13||'~'||L.HEADER_ATTRIBUTE14||'~'||L.HEADER_ATTR IBU
TE15||'~'||L.HEADER_ATTRIBUTE2||'~'||L.HEADER_ATTRIBUTE3||'~'||L.HEADER_ATTRI BU
TE4||'~'||L.HEADER_ATTRIBUTE5||'~'||L.HEADER_ATTRIBUTE6||'~'||L.HEADER_ATTRIBU T
E7||'~'||L.HEADER_ATTRIBUTE8||'~'||L.HEADER_ATTRIBUTE9||'~'||L.HEADER_ATTRIBUTE
_CATEGORY||'~'||L.HEADER_GDF_ATTRIBUTE1||'~'||L.HEADER_GDF_ATTRIBUTE10||'~'||L.H
EADER_GDF_ATTRIBUTE11||'~'||L.HEADER_GDF_ATTRIBUTE12||'~'||L.HEADER_GDF_ATTRIBU
T E13||'~'||L.HEADER_GDF_ATTRIBUTE14||'~'||L.HEADER_GDF_ATTRIBUTE15||'~'||L.HEAD
ER _GDF_ATTRIBUTE16||'~'||L.HEADER_GDF_ATTRIBUTE17||'~'||L.HEADER_GDF_ATTRIBUTE1
8|| '~'||L.HEADER_GDF_ATTRIBUTE19||'~'||L.HEADER_GDF_ATTRIBUTE2||'~'||L.HEADER_G
DF_A TTRIBUTE20||'~'||L.HEADER_GDF_ATTRIBUTE21||'~'||L.HEADER_GDF_ATTRIBUTE22||'
~'||L .HEADER_GDF_ATTRIBUTE23||'~'||L.HEADER_GDF_ATTRIBUTE24||'~'||L.HEADER_GDF_
ATTRIB UTE25||'~'||L.HEADER_GDF_ATTRIBUTE26||'~'||L.HEADER_GDF_ATTRIBUTE27||'~'|
|L.HEAD ER_GDF_ATTRIBUTE28||'~'||L.HEADER_GDF_ATTRIBUTE29||'~'||L.HEADER_GDF_ATT
RIBUTE3| |'~'||L.HEADER_GDF_ATTRIBUTE30||'~'||L.HEADER_GDF_ATTRIBUTE4||'~'||L.HE
ADER_GDF_ ATTRIBUTE5||'~'||L.HEADER_GDF_ATTRIBUTE6||'~'||L.HEADER_GDF_ATTRIBUTE7
||'~'||L.H EADER_GDF_ATTRIBUTE8||'~'||L.HEADER_GDF_ATTRIBUTE9||'~'||L.INITIAL_CU
STOMER_TRX_ ID||'~'||L.INTERNAL_NOTES||'~'||L.INVOICING_RULE_ID||'~'||L.LEGAL_EN
TITY_ID||'~' ||L.LINE_GDF_ATTR_CATEGORY||'~'||L.ORIG_SYSTEM_BATCH_NAME||'~'||L.O
RIG_SYSTEM_BI LL_ADDRESS_ID||'~'||L.ORIG_SYSTEM_BILL_CONTACT_ID||'~'||L.ORIG_SYS
TEM_BILL_CUSTO MER_ID||'~'||L.ORIG_SYSTEM_SOLD_CUSTOMER_ID||'~'||L.PAYMENT_ATTRI
BUTES||'~'||L.P AYMENT_SET_ID||'~'||L.PREVIOUS_CUSTOMER_TRX_ID||'~'||L.PRIMARY_S
ALESREP_ID||'~'| |L.PRINTING_OPTION||'~'||L.PURCHASE_ORDER||'~'||L.PURCHASE_ORDE
R_DATE||'~'||L.PU RCHASE_ORDER_REVISION||'~'||L.REASON_CODE||'~'||L.RECEIPT_METH
OD_ID||'~'||L.RELA TED_CUSTOMER_TRX_ID||'~'||L.SET_OF_BOOKS_ID||'~'||L.TAXED_UPS
TREAM_FLAG||'~'||L. TERM_ID||'~'||L.TERRITORY_ID||'~'||L.TRX_DATE||'~'||L.TRX_NU
MBER||'~'||NVL(L.CON VERSION_DATE, L.TRX_DATE), substrb(l.line_type,1,1), null,
null, l.rowid, null, 'B', '1' from ra_cust_trx_types t, ra_interface_lines l, ra
_interface_distributions d where l.request_id = :request_id and nvl(l.interface_
status, '~') != 'P' and l.cust_trx_type_id = t.cust_trx_type_id and t.type = :tr
x_type

and and and


l.interface_line_id = d.interface_line_id (+) d.account_class (+) = 'REC' NOT ((
l.reference_line_id is not null or l.reference_line_attribute1 || l.reference_li
ne_attribute2 || l.reference_line_attribute3 || l.reference_line_attribute4 || l
.reference_line_attribute5 || l.reference_line_attribute6 || l.reference_line_at
tribute7 || l.reference_line_attribute8 || l.reference_line_attribute9 || l.refe
rence_line_attribute10 || l.reference_line_attribute11 || l.reference_line_attri
bute12 || l.reference_line_attribute13 || l.reference_line_attribute14 || l.refe
rence_line_attribute15 is not null) and t.type = 'CM') and nvl(l.interface_statu
s, '~') != 'P' and l.link_to_line_id is null and (exists ( select /*+ index(e) *
/ 'x' from ra_interface_errors e where e.interface_line_id = l.interface_line_id
) or exists ( select /*+ no_unnest leading(lk) use_nl_with_index(e,RA_INTERFACE
_ERRORS_N1) */' x' from ra_interface_lines lk, ra_interface_errors e where e.int
erface_line_id = lk.interface_line_id and lk.link_to_line_id = l.interface_line_
id)) and nvl(l.interface_status, '~') != 'P' and l.link_to_line_id is null order
by 1 ASC, 8 asc, 2 desc len = 8097 sdp->L[0] = 9380 sdp->L[1] = 1 sdp->L[2] = 2
0 sdp->L[3] = 16 sdp->L[4] = 18 sdp->L[5] = 20 sdp->L[6] = 1 sdp->L[7] = 1 raaam
d()+ Current system time is 21-JUN-2012 15:06:59 raaamd()- Current system time i
s 21-JUN-2012 15:06:59 mrow_keep = 110 Opening HS_CSR Current system time is 21JUN-2012 15:06:59 Done opening HS_CSR Current system time is 21-JUN-2012 15:06:5
9 select ra_customer_trx_s.nextval from ra_interface_lines update ra_interface_l
ines l set customer_trx_id = :c2, line_number = :c3 where rowid = :c4 len = 101

1 row(s) fetched Current system time is 21-JUN-2012 15:06:59 count_invoice = 1 c


ount_update = 1 Current system time is 21-JUN-2012 15:06:59 last_total = 1 Curre
nt system time is 21-JUN-2012 15:06:59 1 row(s) updated Current system time is 2
1-JUN-2012 15:06:59 0: 202 ~~~01-JAN-12~~DCG12222211~1~User~~~USD~~1486~~~~~01-J
AN-12~01-JAN-12 ~~~~~~~P~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-2~~~~307469~~4
228669~~~~~10000 5141~~~~~~~~1~~1164~~01-JAN-12~DCG12222211-1~01-JAN-12 S 2 0 1
4201756 AAAkTbAA UAAAfVOAAB raauct()- Current system time is 21-JUN-2012 15:06:5
9 raault()+ Current system time is 21-JUN-2012 15:06:59 select /*+ index(l ra_in
terface_lines_n1) leading(l) use_nl(lk)*/ l.customer_tr x_id, l.interface_line_i
d||lk.line_type, lk.line_number, lk.rowid from ra_interface_lines lk, ra_interfa
ce_lines l where l.request_id = :b1 and l.customer_trx_id is not null and nvl(l.
interface_status, '~') != 'P' and l.interface_line_id = lk.link_to_line_id order
by l.customer_trx_id asc, l.interface_line_id asc, lk.line_type asc, lk.tax_cod
e asc, lk.interface_line_id asc len = 532 raaamd()+ Current system time is 21-JU
N-2012 15:06:59 raaamd()- Current system time is 21-JUN-2012 15:06:59 mrow_keep
= 11155 update ra_interface_lines set customer_trx_id = :c1, line_number = :c2 w
here rowid = :c3 len = 100 no_of_rows = 0 raault()- Current system time is 21-JU
N-2012 15:06:59 Updating header freight-only invoices 0 row(s) updated raagtl()Current system time is 21-JUN-2012 15:06:59 raaddx()+ Current system time is 21
-JUN-2012 15:06:59 raapem: no errors recorded raaddx()- Current system time is 2
1-JUN-2012 15:06:59 raavgp()+ Current system time is 21-JUN-2012 15:06:59 INSERT
INTO RA_INTERFACE_ERRORS (INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE, ORG_I
D) SELECT L.INTERFACE_LINE_ID, 'Please define all periods in which revenue is to
be recognized or credit ed. Note that revenue cannot be recognized or credited
in closed and close pending p eriods.',

L.RULE_START_DATE, L.ORG_ID FROM RA_INTERFACE_LINES_GT L, GL_SETS_OF_BOOKS B, RA


_RULES R WHERE L.REQUEST_ID = :b1 AND L.CUSTOMER_TRX_ID IS NOT NULL AND NVL(L.IN
TERFACE_STATUS, '~') != 'P' AND L.INVOICING_RULE_ID IS NOT NULL AND L.RULE_START
_DATE IS NOT NULL AND L.LINK_TO_LINE_ID IS NULL AND R.type IN ('A', 'ACC_DUR') A
ND L.ACCOUNTING_RULE_ID = R.RULE_ID AND L.SET_OF_BOOKS_ID = B.SET_OF_BOOKS_ID AN
D (NOT EXISTS (SELECT 1 FROM GL_PERIODS P1, /* to get the first period */ GL_PER
IODS P2, /* to get the last period */ GL_PERIOD_TYPES T WHERE P1.PERIOD_SET_NAME
= B.PERIOD_SET_NAME AND P1.PERIOD_TYPE = R.FREQUENCY AND R.FREQUENCY != 'SPECIF
IC' AND T.PERIOD_TYPE = P1.PERIOD_TYPE AND L.RULE_START_DATE BETWEEN P1.START_DA
TE AND P1.END_DATE AND P1.ADJUSTMENT_PERIOD_FLAG = 'N' AND ( P2.END_DATE, ( TO_C
HAR(P2.PERIOD_YEAR,999999)||'-'|| TO_CHAR(P2.PERIOD_NUM,999999)||'-'|| TO_CHAR(D
ECODE(R.TYPE, 'ACC_DUR', L.ACCOUNTING_RULE_DURATION, R.OCCURRENCES),9999) ) ) =
( SELECT MAX(P9.END_DATE), MAX(TO_CHAR(P9.PERIOD_YEAR,999999)||'-'|| TO_CHAR(P9.
PERIOD_NUM,999999)||'-'|| TO_CHAR(ROWNUM,9999)) FROM GL_PERIODS P9 WHERE P9.PERI
OD_SET_NAME = P1.PERIOD_SET_NAME AND P9.PERIOD_TYPE = P1.PERIOD_TYPE AND P9.STAR
T_DATE >= P1.START_DATE AND P9.ADJUSTMENT_PERIOD_FLAG = 'N' AND ROWNUM <= (DECOD
E(R.TYPE, 'ACC_DUR', L.ACCOUNTING_RULE_DURATION, R.OCCURRENCES)) ) AND DECODE(R.
TYPE, 'ACC_DUR', L.ACCOUNTING_RULE_DURATION, R.OCCURRENCES) = (SELECT COUNT(P3.P
ERIOD_SET_NAME) FROM GL_PERIODS P3 WHERE P3.PERIOD_SET_NAME = B.PERIOD_SET_NAME
AND P3.PERIOD_TYPE = P1.PERIOD_TYPE AND P3.ADJUSTMENT_PERIOD_FLAG = 'N' AND P3.S
TART_DATE >= P1.START_DATE AND P3.START_DATE <= P2.START_DATE ) ) AND 2 = (

SELECT DECODE(COUNT(*), 0, 2, DECODE(SUM(R.OCCURRENCES)/COUNT(*), COUNT(*), 1, 2


)) FROM GL_PERIODS P, RA_RULE_SCHEDULES RL WHERE R.FREQUENCY = 'SPECIFIC' AND RL
.RULE_ID = R.RULE_ID AND P.PERIOD_SET_NAME = B.PERIOD_SET_NAME AND P.ADJUSTMENT_
PERIOD_FLAG = 'N' AND P.PERIOD_TYPE = B.ACCOUNTED_PERIOD_TYPE AND RL.RULE_DATE B
ETWEEN P.START_DATE AND P.END_DATE )) len = 2957 INSERT INTO RA_INTERFACE_ERRORS
(INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT L.INTERFACE_LIN
E_ID, 'Overlapping periods for the accounting rule and first GL date exist.', L.
RULE_START_DATE, L.ORG_ID FROM RA_INTERFACE_LINES_GT L WHERE L.REQUEST_ID = :b1
AND L.CUSTOMER_TRX_ID IS NOT NULL AND NVL(L.INTERFACE_STATUS, '~') != 'P' AND L.
INVOICING_RULE_ID IS NOT NULL AND L.RULE_START_DATE IS NOT NULL AND L.LINK_TO_LI
NE_ID IS NULL AND EXISTS ( SELECT 1 FROM RA_RULES R, GL_SETS_OF_BOOKS B2, AR_SYS
TEM_PARAMETERS SP2 WHERE B2.SET_OF_BOOKS_ID = SP2.SET_OF_BOOKS_ID AND L.ACCOUNTI
NG_RULE_ID = R.RULE_ID AND R.type IN ('A', 'ACC_DUR') AND DECODE(R.FREQUENCY, 'S
PECIFIC', B2.ACCOUNTED_PERIOD_TYPE, R.FREQUENCY) IN ( SELECT P1.PERIOD_TYPE FROM
GL_PERIODS P1, GL_PERIODS P2 WHERE P1.PERIOD_SET_NAME = B2.PERIOD_SET_NAME AND
P2.PERIOD_SET_NAME = B2.PERIOD_SET_NAME AND P2.PERIOD_TYPE = P1.PERIOD_TYPE AND
P1.ADJUSTMENT_PERIOD_FLAG = 'N' AND P2.ADJUSTMENT_PERIOD_FLAG = 'N' /* don't che
ck period with itself */ AND P2.PERIOD_SET_NAME || P2.PERIOD_NAME != P1.PERIOD_S
ET_NAME || P1.PERIOD_NAME AND P2.START_DATE <= P1.END_DATE AND P2.END_DATE >= P1
.END_DATE )) len = 1391 raavgp()- Current system time is 21-JUN-2012 15:06:59 ra
ader()+ Current system time is 21-JUN-2012 15:06:59 raader()- Current system tim
e is 21-JUN-2012 15:06:59

raavpm()+ Current system time is 21-JUN-2012 15:06:59 aruvpc: 0 records fetched


aruvpc: parent_custid = aruvpc: parent_siteid = 1 row(s) updated AR_INVALID_MAND
ATE_FLAG_VALUE OM Source Context : ORDER ENTRY . Invalid payment type code: 0 re
cords inserted. Payment Details Defaulting Hierarchy: PARENT. Batch Source Id: 3
227. radrmp()+ Current system time is 21-JUN-2012 15:07:00 1. receipt_method: 0
records updated 2. receipt_method: 0 records updated radrmp()- Current system ti
me is 21-JUN-2012 15:07:00 3. receipt method: 1 records updated 4. receipt metho
d: 1 records updated 0 row(s) updated raavpm()- Current system time is 21-JUN-20
12 15:07:00 raavti()+ Current system time is 21-JUN-2012 15:07:00 raavti()- Curr
ent system time is 21-JUN-2012 15:07:00 raavfl()+ Current system time is 21-JUN2012 15:07:00 raavfl()- Current system time is 21-JUN-2012 15:07:00 raavac()+ Cu
rrent system time is 21-JUN-2012 15:07:00 raavac()- Current system time is 21-JU
N-2012 15:07:00 raanti()+ Current system time is 21-JUN-2012 15:07:00 raanti()Current system time is 21-JUN-2012 15:07:00 raaihd()+ Current system time is 21JUN-2012 15:07:00 insert into ra_customer_trx ( customer_trx_id, last_update_dat
e, last_updated_by, creation_date, created_by, last_update_login, trx_number, cu
st_trx_type_id, trx_date, set_of_books_id, ct_reference, interface_header_contex
t, interface_header_attribute1, interface_header_attribute2, interface_header_at
tribute3, interface_header_attribute4, interface_header_attribute5, interface_he
ader_attribute6, interface_header_attribute7, interface_header_attribute8, inter
face_header_attribute9, interface_header_attribute10, interface_header_attribute
11, interface_header_attribute12, interface_header_attribute13, interface_header
_attribute14, interface_header_attribute15, bill_to_contact_id, batch_id, batch_
source_id, sold_to_customer_id, bill_to_customer_id,

bill_to_address_id, ship_to_customer_id, ship_to_contact_id, ship_to_address_id,


ship_to_site_use_id, term_id, previous_customer_trx_id, primary_salesrep_id, pu
rchase_order, purchase_order_revision, purchase_order_date, comments, internal_n
otes, exchange_rate_type, exchange_date, exchange_rate, invoice_currency_code, i
nitial_customer_trx_id, agreement_id, request_id, program_application_id, progra
m_id, program_update_date, complete_flag, doc_sequence_value, credit_method_for_
rules, credit_method_for_installments, receipt_method_id, doc_sequence_id, relat
ed_customer_trx_id, invoicing_rule_id, ship_via, ship_date_actual, waybill_numbe
r, fob_point, territory_id, attribute_category, attribute1, attribute2, attribut
e3, attribute4, attribute5, attribute6, attribute7, attribute8, attribute9, attr
ibute10, attribute11, attribute12, attribute13, attribute14, attribute15, global
_attribute_category, global_attribute1, global_attribute2, global_attribute3, gl
obal_attribute4, global_attribute5, global_attribute6, global_attribute7,

global_attribute8, global_attribute9, global_attribute10, global_attribute11, gl


obal_attribute12, global_attribute13, global_attribute14, global_attribute15, gl
obal_attribute16, global_attribute17, global_attribute18, global_attribute19, gl
obal_attribute20, global_attribute21, global_attribute22, global_attribute23, gl
obal_attribute24, global_attribute25, global_attribute26, global_attribute27, gl
obal_attribute28, global_attribute29, global_attribute30, status_trx, posting_co
ntrol_id, created_from, paying_customer_id, paying_site_use_id, reason_code, pri
nting_option, orig_system_batch_name, payment_server_order_num, approval_code, c
ontract_id, org_id, legal_entity_id, application_id, payment_attributes, billing
_date) select l.customer_trx_id, sysdate, :b_last_updated_by, sysdate, :b_create
d_by, :b_last_update_login, l.trx_number, l.cust_trx_type_id, l.trx_date, l.set_
of_books_id, DECODE(b.DEFAULT_REFERENCE, '1', l.interface_line_attribute1, '2',
l.interface_line_attribute2, '3', l.interface_line_attribute3, '4', l.interface_
line_attribute4, '5', l.interface_line_attribute5, '6', l.interface_line_attribu
te6, '7', l.interface_line_attribute7, '8', l.interface_line_attribute8, '9', l.
interface_line_attribute9,

'10', l.interface_line_attribute10, '11', l.interface_line_attribute11, '12', l.


interface_line_attribute12, '13', l.interface_line_attribute13, '14', l.interfac
e_line_attribute14, '15', l.interface_line_attribute15, NULL ), substr(decode(l.
interface_line_context, 'Global Data Elements', decode(1, 0, null, 'DELTA CARE M
ETAVANCE1'), decode(1, 1, l.interface_line_context, 'DELTA CARE METAVANCE1')), 1
,30), l.interface_line_attribute1, l.interface_line_attribute2, l.interface_line
_attribute3, l.interface_line_attribute4, l.interface_line_attribute5, l.interfa
ce_line_attribute6, l.interface_line_attribute7, l.interface_line_attribute8, l.
interface_line_attribute9, l.interface_line_attribute10, l.interface_line_attrib
ute11, l.interface_line_attribute12, l.interface_line_attribute13, l.interface_l
ine_attribute14, l.interface_line_attribute15, l.orig_system_bill_contact_id, :b
_batch_id, :b_batch_source_id, l.orig_system_sold_customer_id, l.orig_system_bil
l_customer_id, l.orig_system_bill_address_id, l.orig_system_ship_customer_id, l.
orig_system_ship_contact_id, l.orig_system_ship_address_id, null, l.term_id, l.p
revious_customer_trx_id, l.primary_salesrep_id, l.purchase_order, l.purchase_ord
er_revision, l.purchase_order_date, l.comments, l.internal_notes, decode(l.curre
ncy_code, g.currency_code, null, l.conversion_type), decode(l.currency_code, g.c
urrency_code, null, nvl(l.conversion_date, l.trx_date)), decode(l.currency_code,
g.currency_code, null, l.conversion_rate), l.currency_code, l.initial_customer_
trx_id, l.agreement_id, :b1, :b_program_application_id, :b_program_id, sysdate,
'N', null, l.credit_method_for_acct_rule, l.credit_method_for_installments, l.re
ceipt_method_id, null,

l.related_customer_trx_id, l.invoicing_rule_id, l.ship_via, l.ship_date_actual,


l.waybill_number, l.fob_point, l.territory_id, l.header_attribute_category, rtri
m(l.header_attribute1), rtrim(l.header_attribute2), rtrim(l.header_attribute3),
rtrim(l.header_attribute4), rtrim(l.header_attribute5), rtrim(l.header_attribute
6), rtrim(l.header_attribute7), rtrim(l.header_attribute8), rtrim(l.header_attri
bute9), rtrim(l.header_attribute10), rtrim(l.header_attribute11), rtrim(l.header
_attribute12), rtrim(l.header_attribute13), rtrim(l.header_attribute14), rtrim(l
.header_attribute15), l.header_gdf_attr_category, l.header_gdf_attribute1, l.hea
der_gdf_attribute2, l.header_gdf_attribute3, l.header_gdf_attribute4, l.header_g
df_attribute5, l.header_gdf_attribute6, l.header_gdf_attribute7, l.header_gdf_at
tribute8, l.header_gdf_attribute9, l.header_gdf_attribute10, l.header_gdf_attrib
ute11, l.header_gdf_attribute12, l.header_gdf_attribute13, l.header_gdf_attribut
e14, l.header_gdf_attribute15, l.header_gdf_attribute16, l.header_gdf_attribute1
7, l.header_gdf_attribute18, l.header_gdf_attribute19, l.header_gdf_attribute20,
l.header_gdf_attribute21, l.header_gdf_attribute22, l.header_gdf_attribute23, l
.header_gdf_attribute24, l.header_gdf_attribute25, l.header_gdf_attribute26, l.h
eader_gdf_attribute27, l.header_gdf_attribute28, l.header_gdf_attribute29, l.hea
der_gdf_attribute30, 'OP', -3, 'RAXTRX', decode(l.receipt_method_id, null, null,
l.paying_customer_id), decode(l.receipt_method_id, null, null, l.paying_site_us
e_id), l.reason_code,

l.printing_option, l.orig_system_batch_name, l.payment_server_order_num, l.appro


val_code, l.contract_id, l.org_id, l.legal_entity_id, l.application_id, l.paymen
t_attributes, l.billing_date from ra_interface_lines_gt l, ra_batch_sources b, g
l_sets_of_books g where l.set_of_books_id = g.set_of_books_id and b.name = l.bat
ch_source_name and l.interface_line_id in ( select /*+ INDEX (l1,RA_INTERFACE_LI
NES_N2) */ min(l1.interface_line_id) from ra_interface_lines_gt l1 where l1.requ
est_id = :b2 and l1.customer_trx_id is not null and nvl(l1.interface_status, '~'
) != 'P' and l1.link_to_line_id is null and not ((l1.reference_line_id is not nu
ll or l1.reference_line_attribute1 || l1.reference_line_attribute2 || l1.referen
ce_line_attribute3 || l1.reference_line_attribute4 || l1.reference_line_attribut
e5 || l1.reference_line_attribute6 || l1.reference_line_attribute7 || l1.referen
ce_line_attribute8 || l1.reference_line_attribute9 || l1.reference_line_attribut
e10 || l1.reference_line_attribute11 || l1.reference_line_attribute12 || l1.refe
rence_line_attribute13 || l1.reference_line_attribute14 || l1.reference_line_att
ribute15 is not null) and exists (select 'x' from ra_cust_trx_types t where t.cu
st_trx_type_id = l1.cust_trx_type_id and t.type = 'CM'))and ( l1.customer_trx_id
, NVL(l1.ship_date_actual,to_date('01/01/0001','dd-mm-yyyy')) ) IN ( select /*+
no_merge */ l2.customer_trx_id, NVL(MIN(l2.ship_date_actual),to_date('01/01/0001
','dd-mm-yyyy' )) from ra_interface_lines_gt l2 where request_id = :b3 group by
l2.customer_trx_id )group by l1.customer_trx_id ) len = 8144 1 row(s) inserted C
urrent system time is 21-JUN-2012 15:07:00 raaihd()- Current system time is 21-J
UN-2012 15:07:00 Transferring : Current system time is 21-JUN-2012 15:07:00 raai
ld()+ Current system time is 21-JUN-2012 15:07:00 INSERT INTO RA_CUSTOMER_TRX_LI
NES ( customer_trx_line_id, last_update_date,

last_updated_by, creation_date, created_by, last_update_login, customer_trx_id,


interface_line_attribute1, interface_line_attribute2, interface_line_attribute3,
interface_line_attribute4, interface_line_attribute5, interface_line_attribute6
, interface_line_attribute7, interface_line_attribute8, interface_line_attribute
9, interface_line_attribute10, interface_line_attribute11, interface_line_attrib
ute12, interface_line_attribute13, interface_line_attribute14, interface_line_at
tribute15, interface_line_context, line_number, set_of_books_id, reason_code, in
ventory_item_id, description, translated_description, previous_customer_trx_id,
previous_customer_trx_line_id, initial_customer_trx_line_id, quantity_ordered, q
uantity_credited, quantity_invoiced, unit_standard_price, unit_selling_price, am
ount_includes_tax_flag, uom_code, sales_order, sales_order_line, sales_order_dat
e, sales_order_source, sales_order_revision, accounting_rule_id, accounting_rule
_duration, line_type, rule_start_date, rule_end_date, extended_amount, taxable_a
mount, revenue_amount, link_to_cust_trx_line_id, sales_tax_id, location_segment_
id, vat_tax_id, tax_precedence, tax_rate, item_exception_rate_id, tax_exemption_
id, memo_line_id, attribute_category,

attribute1, attribute2, attribute3, attribute4, attribute5, attribute6, attribut


e7, attribute8, attribute9, attribute10, attribute11, attribute12, attribute13,
attribute14, attribute15, global_attribute_category, global_attribute1, global_a
ttribute2, global_attribute3, global_attribute4, global_attribute5, global_attri
bute6, global_attribute7, global_attribute8, global_attribute9, global_attribute
10, global_attribute11, global_attribute12, global_attribute13, global_attribute
14, global_attribute15, global_attribute16, global_attribute17, global_attribute
18, global_attribute19, global_attribute20, request_id, program_application_id,
program_id, program_update_date, default_ussgl_transaction_code, autorule_comple
te_flag, last_period_to_credit, tax_exempt_flag, tax_exempt_reason_code, tax_exe
mpt_number, movement_id, payment_set_id, warehouse_id, contract_line_id, invoice
d_line_acctg_level, source_data_key1, source_data_key2, source_data_key3, source
_data_key4, source_data_key5, override_auto_accounting_flag, ship_to_customer_id
, ship_to_contact_id, ship_to_site_use_id,

ship_to_address_id, historical_flag, taxable_flag, tax_classification_code, org_


id, payment_trxn_extension_id, deferral_exclusion_flag) SELECT /*+ use_nl(parent
) leading(l) use_hash(c) swap_join_inputs(c) */ l.interface_line_id, sysdate, :b
1, sysdate, :b2, :b3, l.customer_trx_id, l.interface_line_attribute1, l.interfac
e_line_attribute2, l.interface_line_attribute3, l.interface_line_attribute4, l.i
nterface_line_attribute5, l.interface_line_attribute6, l.interface_line_attribut
e7, l.interface_line_attribute8, l.interface_line_attribute9, l.interface_line_a
ttribute10, l.interface_line_attribute11, l.interface_line_attribute12, l.interf
ace_line_attribute13, l.interface_line_attribute14, l.interface_line_attribute15
, substr(decode(l.interface_line_context,'Global Data Elements', null, l.interfa
ce_line_context), 1,30), l.line_number, l.set_of_books_id, decode(decode(l.line_
type, 'CHARGES', 'LINE', l.line_type), 'LINE',l.reason_code,null), decode(decode
(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',l.inventory_item_id,null),
decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',l.descriptio
n,null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',l.tr
anslated_description,null), null, null, decode(decode(l.line_type, 'CHARGES', 'L
INE', l.line_type), 'LINE',l.reference_line_id,null), decode(decode(l.line_type,
'CHARGES', 'LINE', l.line_type), 'LINE',l.quantity_ordered,null), decode(decode
(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE', decode(t.type, 'CM', l.qu
antity, null), null), decode(l.line_type, 'LINE', decode(t.type, 'CM', null, nvl
(l.quantity,1)), 'CHARGES', 1, null), decode(decode(l.line_type, 'CHARGES', 'LIN
E', l.line_type), 'LINE', l.unit_standard_price, null), decode(decode(l.line_typ
e, 'CHARGES', 'LINE', l.line_type), 'LINE', nvl(l.unit_selling_price, decode(l.q
uantity, 0, l.amount, null, l.amount, l.amount/l.quantity)), null), l.amount_inc
ludes_tax_flag,

decode(l.line_type, 'LINE', l.uom_code, 'CHARGES', null, null), decode(decode(l.


line_type, 'CHARGES', 'LINE', l.line_type), 'LINE', l.sales_order, null), decode
(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE', ltrim(l.sales_orde
r_line) ,null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LIN
E', l.sales_order_date ,null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.l
ine_type), 'LINE', l.sales_order_source ,null), decode(decode(l.line_type, 'CHAR
GES', 'LINE', l.line_type), 'LINE', l.sales_order_revision ,null), decode(decode
(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',l.accounting_rule_id,null)
, decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',decode(l.ac
counting_rule_id, null, null, decode(r.type, 'ACC_DUR',l.accounting_rule_duratio
n, 'A', r.occurrences, l.accounting_rule_durati on )),null), l.line_type, decode
(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',decode(l.accounting
_rule_id, null, null, l.rule_start_date),null), decode(decode(l.line_type, 'CHAR
GES', 'LINE', l.line_type), 'LINE',decode(l.accounting_rule_id, null, null, l.ru
le_end_date),null), decode(decode(l.line_type,'CHARGES','LINE',l.line_type), 'LI
NE', decode(l.quantity * l.unit_selling_price,null, nvl(l.amount,0), decode(c.mi
nimum_accountable_unit,null, round(l.quantity * l.unit_selling_price, c.precisio
n), round(l.quantity * l.unit_selling_price / c.minimum_accountable_unit)* c.min
imum_accountable_unit)), 'TAX', decode(l.amount, null, decode(l.tax_precedence,
null, decode(parent.quantity * parent.unit_selling_price, null, decode(c.minimum
_accountable_unit, null, round(nvl(parent.amount,0) * (nvl(l.tax_rate, 0)/100),
c.precision), round(nvl(parent.amount,0) * (nvl(l.tax_rate, 0)/100)/ c.minimum_a
ccountable_unit) * c.minimum_accountable_unit), decode(c.minimum_accountable_uni
t, null, round(parent.quantity * parent.unit_selling_price * (nvl(l.tax_rate, 0)
/100), c.precision), round(parent.quantity * parent.unit_selling_price * (nvl(l.
tax_rate, 0)/100)/ c.minimum_accountable_unit) * c.minimum_accountable_unit)), 0
), nvl(l.amount,0)), nvl(l.amount,0)),

decode(l.line_type, 'TAX', decode(l.tax_precedence, null, decode(parent.quantity


* parent.unit_selling_price, null, decode(c.minimum_accountable_unit, null, rou
nd(nvl(parent.amount,0), c.precision), round(nvl(parent.amount,0) / c.minimum_ac
countable_unit) * c.minimum_accountable_unit), decode(c.minimum_accountable_unit
, null, round(parent.quantity * parent.unit_selling_price , c.precision), round(
parent.quantity * parent.unit_selling_price / c.minimum_accountable_unit) * c.mi
nimum_accountable_unit)), 0), null), decode(l.line_type, 'LINE', nvl(l.amount,0)
, 'CHARGES', null, null), decode(l.line_type, 'TAX',l.link_to_line_id, 'FREIGHT'
,l.link_to_line_id,null), decode(l.line_type, 'TAX',l.sales_tax_id, null), decod
e(l.line_type, 'TAX',l.location_segment_id, null), decode(l.line_type, 'TAX',l.v
at_tax_id, 'LINE', l.vat_tax_id, null), decode(l.line_type, 'TAX',l.tax_preceden
ce,null), decode(l.line_type, 'TAX',l.tax_rate,null), decode(l.line_type, 'TAX',
l.exception_id,null), decode(l.line_type, 'TAX',l.exemption_id,null), decode(dec
ode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE', l.memo_line_id, null),
l.attribute_category, rtrim(l.attribute1), rtrim(l.attribute2), rtrim(l.attribu
te3), rtrim(l.attribute4), rtrim(l.attribute5), rtrim(l.attribute6), rtrim(l.att
ribute7), rtrim(l.attribute8), rtrim(l.attribute9), rtrim(l.attribute10), rtrim(
l.attribute11), rtrim(l.attribute12), rtrim(l.attribute13), rtrim(l.attribute14)
, rtrim(l.attribute15), l.line_gdf_attr_category, l.line_gdf_attribute1, l.line_
gdf_attribute2, l.line_gdf_attribute3, l.line_gdf_attribute4, l.line_gdf_attribu
te5, l.line_gdf_attribute6, l.line_gdf_attribute7, l.line_gdf_attribute8, l.line
_gdf_attribute9, l.line_gdf_attribute10,

l.line_gdf_attribute11, l.line_gdf_attribute12, l.line_gdf_attribute13, l.line_g


df_attribute14, l.line_gdf_attribute15, l.line_gdf_attribute16, l.line_gdf_attri
bute17, l.line_gdf_attribute18, l.line_gdf_attribute19, l.line_gdf_attribute20,
:b4, :b5, :b6, sysdate, l.ussgl_transaction_code, decode(decode(l.line_type, 'CH
ARGES', 'LINE', l.line_type), 'LINE', decode(l.accounting_rule_id, null, null, '
N'), null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',
decode(l.credit_method_for_acct_rule, 'UNIT', null, null), null), decode(l.line_
type, 'LINE', l.tax_exempt_flag, null), decode(l.line_type, 'LINE', decode(l.tax
_exempt_flag, 'E', l.tax_exempt_reason_code, null), null), decode(l.line_type, '
LINE', decode(l.tax_exempt_flag, 'E', l.tax_exempt_number, null), null), l.movem
ent_id, l.payment_set_id, l.warehouse_id, l.contract_line_id, l.invoiced_line_ac
ctg_level, l.source_data_key1, l.source_data_key2, l.source_data_key3, l.source_
data_key4, l.source_data_key5, decode(l.line_type, 'LINE', l.override_auto_accou
nting_flag, null), l.orig_system_ship_customer_id, l.orig_system_ship_contact_id
, null, l.orig_system_ship_address_id, nvl(l.historical_flag,'N'), l.taxable_fla
g, l.tax_code, l.org_id, l.payment_trxn_extension_id, decode(l.line_type, 'LINE'
, NVL(l.deferral_exclusion_flag, 'N'), null) FROM FND_CURRENCIES C, RA_CUST_TRX_
TYPES t, RA_RULES r, RA_INTERFACE_LINES_GT parent, RA_INTERFACE_LINES_GT l WHERE
l.request_id = :b7 AND l.currency_code = c.currency_code AND l.cust_trx_type_id
= t.cust_trx_type_id AND l.accounting_rule_id = r.rule_id(+) AND l.customer_trx
_id is not null AND l.link_to_line_id = parent.interface_line_id(+) AND nvl(l.in
terface_status, '~') != 'P'

AND l.line_type <> 'TAX' len = 12183 1 row(s) inserted raaild()- Current system
time is 21-JUN-2012 15:07:00 raadhd()+ Current system time is 21-JUN-2012 15:07:
00 WARNING: No default remit-to address found Total rows updated: 1 row(s) Curre
nt system time is 21-JUN-2012 15:07:00 1 fetched Current system time is 21-JUN-2
012 15:07:00 Updated 1 row(s) Current system time is 21-JUN-2012 15:07:00 Rows p
rocessed LE2: 1 row(s) Current system time is 21-JUN-2012 15:07:00 Rows processe
d acc duration : 0 row(s) Current system time is 21-JUN-2012 15:07 :00 raadhd()Current system time is 21-JUN-2012 15:07:00 raaidd()+ Current system time is 21
-JUN-2012 15:07:00 1 row(s) inserted 1 REC row(s) inserted raaidd()- Current sys
tem time is 21-JUN-2012 15:07:00 raaicd()+ Current system time is 21-JUN-2012 15
:07:00 0 row(s) inserted raaicd()- Current system time is 21-JUN-2012 15:07:00 r
aaddl()+ Current system time is 21-JUN-2012 15:07:00 arcdaa()+ Current system ti
me is 21-JUN-2012 15:07:00 arcdaa() return code 1 arcdaa()- Current system time
is 21-JUN-2012 15:07:00 arcdaa()+ Current system time is 21-JUN-2012 15:07:00 ar
cdaa() return code 1 arcdaa()- Current system time is 21-JUN-2012 15:07:01 arcda
a()+ Current system time is 21-JUN-2012 15:07:01 arcdaa() return code 1 arcdaa()
- Current system time is 21-JUN-2012 15:07:01 arcdaa()+ Current system time is 2
1-JUN-2012 15:07:01 arcdaa() return code 1 arcdaa()- Current system time is 21-J
UN-2012 15:07:01 arcdaa()+ Current system time is 21-JUN-2012 15:07:01 arcdaa()
return code 1 arcdaa()- Current system time is 21-JUN-2012 15:07:01 raapem: no e
rrors recorded raaddl()- Current system time is 21-JUN-2012 15:07:01 raaebt()+ C
urrent system time is 21-JUN-2012 15:07:01 raaebt()- Current system time is 21-J
UN-2012 15:07:01 raaidd()+ Current system time is 21-JUN-2012 15:07:01 raaidd()Current system time is 21-JUN-2012 15:07:01 raaddl()+ Current system time is 21
-JUN-2012 15:07:01 arcdaa()+ Current system time is 21-JUN-2012 15:07:01 arcdaa(
) return code 1 arcdaa()- Current system time is 21-JUN-2012 15:07:01 raapem: no
errors recorded raaddl()- Current system time is 21-JUN-2012 15:07:01 raavhi()+
Current system time is 21-JUN-2012 15:07:01 0 row(s) inserted into errors table
for invoice raavhi()- Current system time is 21-JUN-2012 15:07:01 raagdf()+ Cur
rent system time is 21-JUN-2012 15:07:01 Return Value from ar_gdf_validation.is_
gdf_valid() = 1 raagdf()- Current system time is 21-JUN-2012 15:07:01 raavcb()+
Current system time is 21-JUN-2012 15:07:01 raavcb()- Current system time is 21JUN-2012 15:07:01 raarrt()+ Current system time is 21-JUN-2012 15:07:01 0 row(s)
(AR_CREDIT_MEMO_AMOUNTS) deleted Current system time is 21-JUN-2012 15: 07:01 1
row(s) (RA_CUSTOMER_TRX) deleted Current system time is 21-JUN-2012 15:07:01

0 row(s) (AR_LINE_CONTS) deleted Current system time is 21-JUN-2012 15:07:01 0 r


ow(s) (AR_DEFERRED_LINES) deleted Current system time is 21-JUN-2012 15:07:01 1
row(s) (RA_CUSTOMER_TRX_LINES) deleted Current system time is 21-JUN-2012 15:0 7
:01 3 row(s) (RA_CUST_TRX_LINE_GL_DIST) deleted Current system time is 21-JUN-20
12 1 5:07:01 0 row(s) (RA_CUST_TRX_LINE_SALESREPS) deleted Current system time i
s 21-JUN-2012 15:07:01 raarrt()- Current system time is 21-JUN-2012 15:07:01 raa
cre()+ Current system time is 21-JUN-2012 15:07:01 raarmd()+ Current system time
is 21-JUN-2012 15:07:01 Replicate MRC Data. raarmc()- Current system time is 21
-JUN-2012 15:07:01 0 row(s) updated Gen_line_lvl_bal_flag = N raacre()- Current
system time is 21-JUN-2012 15:07:01 raaips()+ Current system time is 21-JUN-2012
15:07:01 INSERT INTO AR_PAYMENT_SCHEDULES ( created_by, creation_date, last_upd
ated_by, last_update_date, last_update_login, payment_schedule_id, customer_trx_
id, amount_due_original, amount_due_remaining, amount_line_items_original, amoun
t_line_items_remaining, tax_original, tax_remaining, freight_original, freight_r
emaining, term_id, terms_sequence_number, due_date, customer_id, class, customer
_site_use_id, cust_trx_type_id, number_of_due_dates, status, invoice_currency_co
de, actual_date_closed, amount_credited, exchange_rate_type, exchange_rate, exch
ange_date, trx_number, trx_date, amount_applied, gl_date_closed, gl_date, acctd_
amount_due_remaining, request_id, program_application_id, program_id, program_up
date_date, receivables_charges_charged,

receivables_charges_remaining, org_id) VALUES ( :c0, sysdate, :c1, sysdate, :c2,


ar_payment_schedules_s.nextval, :c3, :c4 + nvl(:c5, 0) + nvl(:c6, 0) + nvl(:c7,
0), :c8 + nvl(:c9, 0) + nvl(:c10, 0)+ nvl(:c11, 0), :c12, :c13, nvl(:c14, 0), n
vl(:c15, 0), nvl(:c16, 0), nvl(:c17, 0), :c18, nvl(:c19,1), to_date(:c20,'DD-MON
-YYYY'), :c21, :c22, :c23, :c24, :c25, decode(:c26 + nvl(:c27, 0) + nvl(:c28, 0)
+ nvl(:c29, 0), 0, 'CL', 'OP'), :c30, decode(:c31 + nvl(:c32,0) + nvl(:c33,0)+ n
vl(:c34,0), 0, nvl(to_date(:c35,'DD-MON-YYYY'), to_date('12/31/4712','MM/DD/YY Y
Y')), to_date('12/31/4712','MM/DD/YYYY')), :c36, :c37, :c38, to_date(:c39,'DD-MO
N-YYYY'), :c40, to_date(:c41,'DD-MON-YYYY'), :c42, decode(:c43 + nvl(:c44, 0) +
nvl(:c45, 0)+ nvl(:c46, 0), 0, nvl(to_date(:c47,'DD-MON-YYYY'), to_date('12/31/4
712','MM/DD/Y YYY')), to_date('12/31/4712','MM/DD/YYYY')), to_date(:c48, 'DD-MON
-YYYY'), :c49, :p_request_id, :p_prog_appl_id, :p_prog_id, sysdate, nvl(:c53,0),
nvl(:c54,0), :p_org_id) len = 1783 SELECT /*+ INDEX(l, RA_CUST_TRX_LINES_N4) */
:b1, l.customer_trx_id, null, sum(decode(line_type, 'LINE', l.extended_amount,
0)), sum(decode(line_type, 'TAX', l.extended_amount, 0)),

sum(decode(line_type, 'FREIGHT', l.extended_amount, 0)), t.term_id, tl.sequence_


num, to_char(decode(type.type, 'CM', h.trx_date, nvl(tl.due_date, decode(tl.due_
days, null, decode(least(to_number(substr(nvl(h.billing_date,h.trx_date),1,2)),
nvl(t.due_cutoff_day,32)), t.due_cutoff_day, last_day(add_months(nvl(h.billing_d
ate,h.trx_date), tl.due_months_forward)) + least(tl.due_day_of_month, to_number(
substr(last_day(add_months( nvl(h.billing_date,h.trx_date), tl.due_months_forwar
d + 1)),1,2))), last_day(add_months(nvl(h.billing_date,h.trx_date), (tl.due_mont
hs_forward - 1))) + least(tl.due_day_of_month, to_number(substr(last_day(add_mon
ths( nvl(h.billing_date,h.trx_date), tl.due_months_forward)),1,2)))), nvl(h.bill
ing_date,h.trx_date) + tl.due_days))),'DD-MON-YYYY'), h.bill_to_customer_id, typ
e.type, h.bill_to_site_use_id, h.cust_trx_type_id, h.invoice_currency_code, null
, h.exchange_rate_type, h.exchange_rate, to_char(h.exchange_date,'DD-MON-YYYY'),
h.trx_number, to_char(h.trx_date,'DD-MON-YYYY'), decode(t.term_id, NULL, 1, tl.
relative_amount / t.base_amount), c.precision, 1, t.first_installment_code, c.mi
nimum_accountable_unit, to_char(nvl(d.gl_date, h.trx_date),'DD-MON-YYYY'), nvl(d
.acctd_amount, 0), null, :b2, sum(decode(line_type, 'CHARGES', l.extended_amount
, 0)) ,h.request_id ,h.program_application_id ,h.program_id ,h.org_id FROM ra_cu
stomer_trx_lines l, ra_cust_trx_line_gl_dist d, ra_terms_lines tl, ra_terms t, f
nd_currencies c, ra_cust_trx_types type, ra_customer_trx h WHERE h.request_id =
:b3 AND h.customer_trx_id = d.customer_trx_id AND d.account_class = 'REC' AND d.
latest_rec_flag = 'Y' AND l.customer_trx_id = h.customer_trx_id

AND AND AND AND AND AND AND AND


l.request_id = :b4 h.invoice_currency_code = c.currency_code h.cust_trx_type_id
= type.cust_trx_type_id type.accounting_affect_flag = 'Y' h.term_id = t.term_id(
+) t.term_id = tl.term_id(+) not (type.type = 'CM' and h.previous_customer_trx_i
d is not NULL) not exists ( select /*+ push_subq no_unnest */ 'x' from ar_paymen
t_schedules where customer_trx_id = h.customer_trx_id ) GROUP BY l.customer_trx_
id, t.term_id, tl.relative_amount, t.base_amount, tl.sequence_num, tl.due_date,
tl.due_days, h.trx_date, h.billing_date, t.due_cutoff_day, tl.due_months_forward
, tl.due_day_of_month, h.bill_to_customer_id, type.type, h.bill_to_site_use_id,
h.cust_trx_type_id, h.invoice_currency_code, h.exchange_rate_type, h.exchange_ra
te, h.exchange_date, h.trx_number, h.invoicing_rule_id, c.minimum_accountable_un
it, t.first_installment_code, d.gl_date, d.acctd_amount, c.precision, h.request_
id, h.program_application_id, h.program_id, h.org_id ORDER BY l.customer_trx_id,
tl.sequence_num len = 3373 raaamd()+ Current system time is 21-JUN-2012 15:07:0
1 raaamd()- Current system time is 21-JUN-2012 15:07:01 mrow = 1598 raaips()- Cu
rrent system time is 21-JUN-2012 15:07:01 raaucf()+ Current system time is 21-JU
N-2012 15:07:01 CT Complete Flag - 0 row(s) updated raaucf()- Current system tim
e is 21-JUN-2012 15:07:01 raacae()+ Current system time is 21-JUN-2012 15:07:01
Create accounting for Commitment Invoices and Credit Memo Applications. raacae()
- Current system time is 21-JUN-2012 15:07:01 raamtc()+ Current system time is 2
1-JUN-2012 15:07:01

raamtc()- Current system time is 21-JUN-2012 15:07:01 raacgi()+ Current system t


ime is 21-JUN-2012 15:07:01 Create Group Invoices. raacgi()- Current system time
is 21-JUN-2012 15:07:01 raadtr()+ Current system time is 21-JUN-2012 15:07:01 0
row(s) updated Second Commit after successful transfer - Current system time is
21-JUN-2012 15 :07:01 raadtr()- Current system time is 21-JUN-2012 15:07:01 raa
urt()+ Current system time is 21-JUN-2012 15:07:01 0 row(s) updated raaurt()- Cu
rrent system time is 21-JUN-2012 15:07:01 raarmd()+ Current system time is 21-JU
N-2012 15:07:01 Replicate MRC Data. raarmc()- Current system time is 21-JUN-2012
15:07:01 raxlae()+ Current system time is 21-JUN-2012 15:07:01 XLA EVENTS raxla
e()- Current system time is 21-JUN-2012 15:07:01 raarbe()+ Current system time i
s 21-JUN-2012 15:07:01 Raise Business Events. raarbe()- Current system time is 2
1-JUN-2012 15:07:01 raapic()- Current system time is 21-JUN-2012 15:07:01 Report
ing : Current system time is 21-JUN-2012 15:07:01 raaprx()+ Current system time
is 21-JUN-2012 15:07:01 Print fdprep input parameters Reportfile (sficsp) = </fi
ncrp1apps/apps/apps_st/appl/ar/12.0.0/reports/RAXAPR.r df> Outfile = </fincrp1ap
ps/inst/apps/fincrp1_rc-lx04/logs/appl/conc/out /o12955895.out> arguments = <P_A
I_REQUEST_ID=12955895 > errbuf = <* > APPLLCSP Environment Variable set to : Curre
nt NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are : American_Amer
ica.AL32UTF8 '.,' Enter Password: Report Builder: Release 10.1.2.3.0 - Productio
n on Thu Jun 21 15:07:02 2012 Copyright (c) 1982, 2005, Oracle. All rights reser
ved. +--------------------------------------------------------------------------+ Start of log messages from FND_FILE +--------------------------------------------------------------------------+ rows inserted through zx_errors_gt 0 +--------------------------------------------------------------------------+ End of l
og messages from FND_FILE +--------------------------------------------------------------------------+ Print fdprep input parameters Reportfile = </fincrp1apps
/apps/apps_st/appl/ar/12.0.0/reports/RAXAVR.rdf> (sfic sp) Outfile = </usr/tmp/f
incrp1/OFyJunmp.t> arguments = <P_AI_REQUEST_ID=12955895

P_BATCH_SOURCE_NAME='DELTA CARE METAVANCE1' > errbuf = <> APPLLCSP Environment V


ariable set to : Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variabl
es are : American_America.AL32UTF8 '.,' Enter Password: MSG-00000: Start of debu
g MSG-00000: retrieved org_id 85 MSG-00000: Start of before report trigger MSG-0
0000: After report trigger Report Builder: Release 10.1.2.3.0 - Production on Th
u Jun 21 15:07:05 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. +--------------------------------------------------------------------------+ Star
t of log messages from FND_FILE +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ End of log messages from FND_FILE +--------------------------------------------------------------------------+ raaprx()- Current sy
stem time is 21-JUN-2012 15:07:06 raacit()+ Current system time is 21-JUN-2012 1
5:07:06 1 row(s) updated Current system time is 21-JUN-2012 15:07:06 raadcr()+ C
urrent system time is 21-JUN-2012 15:07:06 raadcr()- Current system time is 21-J
UN-2012 15:07:06 raacit()- Current system time is 21-JUN-2012 15:07:06 raafds()+
Current system time is 21-JUN-2012 15:07:06 raafeb()+ Current system time is 21
-JUN-2012 15:07:06 raafeb()- Current system time is 21-JUN-2012 15:07:06 arcdcu(
)+ Current system time is 21-JUN-2012 15:07:06 arcdcu()- Current system time is
21-JUN-2012 15:07:06 raafds()- Current system time is 21-JUN-2012 15:07:06 +--------------------------------------------------------------------------+ Start o
f log messages from FND_FILE +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ End of log messages from FND_FILE +--------------------------------------------------------------------------+ +--------------------------------------------------------------------------+ No completion options wer
e requested. Output file size: 5452 +--------------------------------------------------------------------------+ Concurrent request completed successfully Curr
ent system time is 21-JUN-2012 15:07:06 +--------------------------------------------------------------------------+

Anda mungkin juga menyukai