Sei sulla pagina 1di 52

+---------------------------------------------------------------------------+ Receivables: Version : 12.0.0 Copyright (c) 1979, 1999, Oracle Corporation. All rights 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) numeric = ~85~ raassc()- Current system time is 21-JUN-2012 raagsp()+ Current system time is 21-JUN-2012 Autoinvoice max memory set below recommended raagsp()- Current system time is 21-JUN-2012 raaini()+ Current system time is 21-JUN-2012 raaapx()+ Current system time is 21-JUN-2012 raaapx()- Current system time is 21-JUN-2012 raagbo()+ Current system time is 21-JUN-2012 Dumping data fetched from RA_BATCH_SOURCES batch_source_id = 3227 batch_source_name = DELTA CARE METAVANCE1 auto_trx_numbering_flag = N copy_doc_number_flag = N cust_trx_type_rule = R sold_customer_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_reason_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_type_rule = R accounting_flexfield_rule = R invalid_tax_rate_rule = R rev_acc_allocation_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 customer_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:55 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 raagixcte = 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 = HITACHI 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 raagixmau = raagixmlx = 3 raagixmbx = 1048576 raagixafp = Account raagixifp = raagixtfp = Argbdf = 1 Argddo = -9999 raaggi()- Current system time is 21-JUN-2012 15: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 time 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 system 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 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 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 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 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 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 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 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 raaasf()- Current system time is 21-JUN-2012 15:06:55 UPDATE RA_INTERFACE_LINES 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_DATE), CONVERSION_DATE = TRUNC(CONVERSION_DATE), PURCHASE_ORDER_DATE = TRUNC(PURCHASE_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_LINE_ID = NVL(INTERFACE_LINE_ID, RA_CUSTOMER_TRX_LINES_S.NEXTVAL) WHERE NVL(INTERFACE_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 LINK_TO_LINE_ATTRIBUTE4 IS NULL AND LINK_TO_LINE_ATTRIBUTE5 IS NULL AND LINK_TO_LINE_ATTRIBUTE6 IS NULL AND LINK_TO_LINE_ATTRIBUTE7 IS NULL AND LINK_TO_LINE_ATTRIBUTE8 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 LINK_TO_LINE_ATTRIBUTE15 IS NULL len = 1246 1 rows updated Current system raagtf()+ Current system time raagtf()- 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 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 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 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 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 time time 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-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-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-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-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 time is 21-JUN-2012 15:06:55 raaasf()- Current system time is 21-JUN-2012 15:06:55 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, INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID, RA_CUSTOMER_TRX_LINES_S.NEXTVAL), SET_OF_BOOKS_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_CONTEXT = '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_ATTRIBUTE2 = L2.INTERFACE_LINE_ATTRIBUTE2 ) WHERE NVL(INTERFACE_STATUS, '~') != 'P' AND (REQUEST_ID IS NULL) AND (( LINK_TO_LINE_CONTEXT ,LINK_TO_LINE_ATTRIBUTE1 ,LINK_TO_LINE_ATTRIBUTE2 ) IN ( SELECT /*+ cardinality(L2 10) */ L2.INTERFACE_LINE_CONTEXT ,L2.INTERFACE_LINE_ATTRIBUTE1 ,L2.INTERFACE_LINE_ATTRIBUTE2 FROM RA_INTERFACE_LINES L2 WHERE L2.REQUEST_ID = :b6 AND L2.INTERFACE_LINE_CONTEXT = 'METAVANCE' )) len = 1038 0 rows updated Current system time is 21-JUN-2012 15:06:55 raamil()- Current system time is 21-JUN-2012 15:06:55 raamis()+ 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 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 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_CONTEXT = S.INTERFACE_LINE_CONTEXT L.INTERFACE_LINE_ATTRIBUTE1 = S.INTERFACE_LINE_ATTRIBUTE1 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 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 D.ROWID, L.INTERFACE_LINE_ID, L.REQUEST_ID, L.LAST_UPDATE_LOGIN, L.LAST_UPDATED_BY FROM RA_INTERFACE_DISTRIBUTIONS D, RA_INTERFACE_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_ATTRIBUTE1 = D.INTERFACE_LINE_ATTRIBUTE1 AND L.INTERFACE_LINE_ATTRIBUTE2 = D.INTERFACE_LINE_ATTRIBUTE2 len = 428 2 row(s) updated raamid()- Current system time is 21-JUN-2012 15:06:55 raamic()+ 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 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.INTERFACE_LINE_ID, L.REQUEST_ID, L.LAST_UPDATE_LOGIN, L.LAST_UPDATED_BY FROM AR_INTERFACE_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_ATTRIBUTE1

AND

L.INTERFACE_LINE_ATTRIBUTE2 = C.INTERFACE_LINE_ATTRIBUTE2 system system system system 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 system time is 21-JUN-2012 15:06:55 raadci()+ Current system time is 21-JUN-2012 15:06:55 0 row(s) updated Current system time is 21-JUN-2012 15:06:55 raadci()- Current system time is 21-JUN-2012 15:06:55 raabsv()+ 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 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 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 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 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 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 raaasf()- Current system time is 21-JUN-2012 15:06:55 raabdf()+ Current system time is 21-JUN-2012 15:06:55 Using bind variable version 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 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 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 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 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 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

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()+ 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 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 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 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 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 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()- 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()- 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()- 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: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: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

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 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 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 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 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 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 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 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, DECODE(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', -99), 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, '30 NET', '4', 'IMMEDIATE', '5', 'Due on 10th', '1000', 'NT21', '1023', '60 Net', '1001', '90 Net', '1002', 'N10', '1003', 'N45', '1004', 'N60', '1005', 'N90', '1006', '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', '1125', 'NT90', '1126', 'NT5', '1084', '60 NET (BFB)', '1184', '90 NET (BFB)', '1204', '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', 'YEAR', 'YR', 'EACH', 'EA', 'DOZEN', 'DZ', 'GROSS', 'GRO', 'BAG', 'BG', 'BUNDLE', 'BN', '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', 'PINT', 'PT', 'GALLON', 'GL', 'QUART', 'QT', 'FEET', 'FT', 'YARD', 'YD', 'Daily', 'DAY', 'Bi-Weekly', 'BWK', 'Quarterly', 'QTR',

'Half Yearly', 'HYR', NULL, NULL, -99), L.AGREEMENT_NAME, DECODE(L.AGREEMENT_NAME, NULL, NULL, -99), L.FOB_POINT, DECODE(L.FOB_POINT, 'BUY', 'BUY', 'CUSTOMER SITE', 'CUSTOMER SITE', 'FACTORY', 'FACTORY', 'LOAD', 'LOAD', 'SEL', 'SEL', 'SHIP POINT', 'SHIP POINT', NULL, NULL, -99), L.ACCOUNTING_RULE_NAME, DECODE(L.ACCOUNTING_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 Receipt Reversal', '2', 'Intercompany Freight', '8', 'Credit Sales Revenue- Same Control-Par', '1028', 'Credit Sales Revenue- Diff Control-Par', '1029', 'Credit Sales Revenue- Non PMI-PMI Par', '1030', 'Retroactivity- Add/Term', '1031', 'Retroactivity- Other', '1032', 'Deferred Premium Income', '1033', 'Due to Subcontractor/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, -99), NULL), L.LINE_TYPE, DECODE(L.LINE_TYPE, 'CHARGES', 'CHARGES', 'FREIGHT', 'FREIGHT', 'LINE', 'LINE', 'TAX', 'TAX', -99), L.CONVERSION_TYPE, DECODE(L.CONVERSION_TYPE, 'Corporate', 'Corporate', 'EMU FIXED', 'EMU FIXED', 'Spot', 'Spot', 'User', 'User', NULL, NULL, -99), L.PRIMARY_SALESREP_NUMBER, DECODE(L.PRIMARY_SALESREP_NUMBER, '-3', '-3', NULL, NULL, -99), L.PRINTING_OPTION, DECODE(L.PRINTING_OPTION, '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_ACCOUNTABLE_UNIT), 0, NULL, -99)), DECODE(T.ALLOW_FREIGHT_FLAG, 'N', DECODE(L.LINE_TYPE, '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_CHAR(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.RELATED_TRX_NUMBER, NULL, NULL, -99), -99), NULL), DECODE(T.TYPE, 'CM', NULL, DECODE(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, NULL, -99)), DECODE(L.ACCOUNTING_RULE_NAME, NULL, DECODE(L.INVOICING_RULE_NAME, NULL, 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), 'CHARGES', 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_NAME, NULL, NULL, DECODE(L.MTL_SYSTEM_ITEMS_SEG1, NULL, NULL, -99)), DECODE(L.RELATED_TRX_NUMBER, NULL, DECODE(L.RELATED_BATCH_SOURCE_NAME, NULL, NULL, -99), DECODE(L.RELATED_BATCH_SOURCE_NAME, NULL, -99, NULL)), DECODE(L.LINE_TYPE, 'LINE', DECODE(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.TAX_CODE, NULL, DECODE(L.TAX_REGIME_CODE || L.TAX || L.TAX_STATUS_CODE || L.TAX_RATE_CODE || L.TAX_JURISDICTION_CODE , NULL, -99, NULL), NULL)), NULL), DECODE(L.LINE_TYPE, 'CHARGES', DECODE(L.INVOICING_RULE_ID, NULL, DECODE(L.INVOICING_RULE_NAME, NULL, DECODE(L.ACCOUNTING_RULE_ID, NULL, DECODE(L.ACCOUNTING_RULE_NAME, NULL, 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.LINE_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, DECODE(L.TAX_EXEMPT_FLAG, 'E', 'E', 'R', 'R', 'S', 'S', NULL, NULL, -99), L.TAX_EXEMPT_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, -99, 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 system 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 system time is 21-JUN-2012 15:06:55 array_size = 621 ========== 8398015 ========== CUST_TRX_TYPE_NAME xxxDHMO NON-RET INVOICExxx INVOICING_RULE_NAME xxxAdvance Invoicexxx TERM_NAME xxx30 NET (BFB)xxx UOM_NAME xxxxxx AGREEMENT_NAME xxxxxx FOB_POINT xxxxxx ACCOUNTING_RULE_NAME xxxImmediatexxx MEMO_LINE_NAME xxxxxx LINE_TYPE 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_MEANING xxxxxx raauir()+ Current system time is 21-JUN-2012 15:06:55 UPDATE RA_INTERFACE_LINES SET CUST_TRX_TYPE_ID = NVL(:var1,CUST_TRX_TYPE_ID), INVOICING_RULE_ID = 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_SALESREP_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 system time is 21-JUN-2012 15:06:55 raajfd()+ Current system time is 21-JUN-2012 15:06:55 INSERT INTO RA_INTERFACE_ERRORS(INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE,O RG_ID) SELECT INTERFACE_LINE_ID, :v1, REASON_CODE_MEANING, L.ORG_ID FROM RA_INTERFACE_L INES_GT L WHERE request_id = :v2 AND REASON_CODE_MEANING IS NOT NULL

AND NOT EXISTS (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', 'CREDIT_MEMO_REASON', 'INVOICING_REASON') AND T.MEANING = 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 NULL AND NOT EXISTS (SELECT DISTINCT REPLACE(T.FREIGHT_CODE, '''', ''''''), REPLACE(T.FREIGHT_CODE, '''', '''''') FROM ORG_FREIGHT T WHERE ORGANIZATION_ID = L.WAREHOUSE_ID AND T.FREIGHT_CODE = L.SHIP_VIA) INSERT INTO RA_INTERFACE_ERRORS(INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE,O RG_ID) SELECT INTERFACE_LINE_ID, :v1, 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.RECEIPT_METHOD_NAME) INSERT INTO RA_INTERFACE_ERRORS(INTERFACE_LINE_ID, MESSAGE_TEXT, 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', 'CREDIT_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 system time is 21-JUN-2012 15:06:56 raavdx()+ Current system time is 21-JUN-2012 15:06: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 arp_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 IS 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 21-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 raagsd()+ 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 raabss()+ 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 ORDER BY MTL_SYSTEM_ITEMS_SEG1 raabss()raaamd()+ raaamd()raaasp()+ raaasp()raaamc()+ raaamc()raaaui()+ Number of raaffc()+ Current system Current system Current system Current system Current system Current system Current system Current system DISTINCT Items Current system time time time time time time time time = 1 time 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 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 time 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,invoice_enabled_flag from MTL_SYSTEM_ITEMS_B where ORGANIZATION_ID = 103 and SEGMENT1 is null order by SEGMENT1 raaafs()+ Current system time is 21-JUN-2012 15:06:56 raaamd()+ Current system time is 21-JUN-2012 15:06:56 raaamd()- Current system 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 system 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 system 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 raagixagd = 0 raagixatn = 0 raagixcte = 0 raagixdfd = . raagixctc = 0 raagixrmx = T raagixfdx = 21-JUN-12 raagixbix = raagixbsi (batch_source_id) = 3227 raagixbnx (batch_source_name) = DELTA CARE METAVANCE1 raagixoix (org_id) = 85 so_organization_id = 103 raagixrix (request_id) = 12955895 raagixpix = 20428 raagixpai = 222 raagixuix = 269429 raagixunx = HITACHI 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 raagixmau = raagixmlx = 3 raagixmbx = 1048576 raagixafp = Account raagixifp = raagixtfp = raapem: no errors recorded raavli()- Current system time is 21-JUN-2012 15:06:56 raavci()+ Current system time is 21-JUN-2012 15:06:56 UPDATE RA_INTERFACE_LINES_GT INT_LINE SET ORIG_SYSTEM_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_CUSTOMER_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.ORIG_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_SITE 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_CUST_ACCT_SITES ACCT_SITE WHERE ACCT_SITE.ORIG_SYSTEM_REFERENCE = INT_LINE.ORIG_SYSTEM_SHIP_ADDRESS_REF) WHERE INT_LINE.REQUEST_ID = :b1 raavci()- Current system time is 21-JUN-2012 15:06:56 raavgi()+ Current system time is 21-JUN-2012 15:06:56 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 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 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 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 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 INSERT INTO RA_INTERFACE_ERRORS (INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT INTERFACE_LINE_ID, :b_err_msg4, SUBSTRB( 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 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 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 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 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 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) */ INTERFACE_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_CONTEXT = 'METAVANCE' AND EXISTS (SELECT 'X' FROM RA_INTERFACE_LINES L WHERE L.ROWID != 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_ATTRIBUTE1 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 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 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 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) */ INTERFACE_LINE_ID, :b_err_msg6, 'trx_number='||T.TRX_NUMBER||','||'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.CUSTOMER_TRX_ID AND IL.INTERFACE_LINE_CONTEXT = TL.INTERFACE_LINE_CONTEXT AND IL.INTERFACE_LINE_ATTRIBUTE1 = TL.INTERFACE_LINE_ATTRIBUTE1 AND IL.INTERFACE_LINE_ATTRIBUTE2 = TL.INTERFACE_LINE_ATTRIBUTE2 len = 626 raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()raaasf()+ raaasf()Current Current Current Current Current Current Current Current Current Current system system system system 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-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

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 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 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 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 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 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 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 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 INSERT INTO RA_INTERFACE_ERRORS (INTERFACE_LINE_ID, MESSAGE_TEXT, INVALID_VALUE, ORG_ID) SELECT INTERFACE_LINE_ID, :b_err_msg7, SUBSTRB( REFERENCE_LINE_ATTRIBUTE1||'.'||REFERENCE_LINE_ATTRIBUTE2 ,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_CONTEXT = '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_CUSTOMER_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 NOT EXISTS (SELECT 'X'

FROM RA_INTERFACE_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 ) ) 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 Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current Current system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system system 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-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-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-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-2012 21-JUN-2012 21-JUN-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: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 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 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_ID, DECODE(INT_TRX_TYPE.TYPE, 'CM', :b_err_msg1, 'DM', :b_err_msg2, 'INV', :b_err_msg3), SUBSTRB( REFERENCE_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_LINE.REQUEST_ID = :b1 AND INT_LINE.CUST_TRX_TYPE_ID = INT_TRX_TYPE.CUST_TRX_TYPE_ID 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.REFERENCE_LINE_ATTRIBUTE2 IS NOT NULL ) AND (NOT EXISTS (SELECT /*+ ORDERED NO_UNNEST */ '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 AND INT_LINE.REFERENCE_LINE_ATTRIBUTE1 = LINE.INTERFACE_LINE_ATTRIBUTE 1 AND INT_LINE.REFERENCE_LINE_ATTRIBUTE2 = LINE.INTERFACE_LINE_ATTRIBUTE 2 AND LINE.CUSTOMER_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_ATTRIBUTE1 = LINE.INTERFACE_LINE_ATTRIBUTE 1 AND INT_LINE.REFERENCE_LINE_ATTRIBUTE2 = LINE.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 system time is raavcx()- Current system time is raapu0()- Current system time is raapu1()+ Current system time is raavsi()+ Current system time is raavsi()- Current 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, INTERFACE_DISTRIBUTION_ID ,SEGMENT1 ,SEGMENT2 ,SEGMENT3 ,SEGMENT4 ,SEGMENT5 ,SEGMENT6 ,SEGMENT7 FROM RA_INTERFACE_DISTRIBUTIONS WHERE REQUEST_ID = :b1 ORDER BY SEGMENT1 ,SEGMENT2 ,SEGMENT3 ,SEGMENT4 ,SEGMENT5 ,SEGMENT6 ,SEGMENT7 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-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 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

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()+ Current system time is 21-JUN-2012 raaamc()- Current system time is 21-JUN-2012 raaaui()+ Current system time is 21-JUN-2012 Number of DISTINCT Items = 2 raaffc()+ Current system time is 21-JUN-2012 raabfs()+ Current system time is 21-JUN-2012 raabfs()- 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_allowed_flag,summary_flag from GL_CODE_COMBINATIONS where CHART_OF_ACCOUNTS_ID = 50241 and SEGMENT3 in ('131300','410300') order by SEGMENT1, SEGMENT2, SEGMENT3, SEGMENT4, 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()- Current system time is 21-JUN-2012 15:06:59 raaafs()- Current system time is 21-JUN-2012 15:06:59 sys->raafspmfs = 3679 raafui()+ Current system time is 21-JUN-2012 15: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-2012 15:06:59 raaffm()- Current system time is 21-JUN-2012 15:06:59 raavaf()- Current system time is 21-JUN-2012 15:06:59 raavaf2()+ Current system time is 21-JUN-2012 15:06:59 raaacp()+ Current system time is 21-JUN-2012 15:06:59 raagsd()+ Current system time is 21-JUN-2012 15:06:59 raagsd()- Current system time is 21-JUN-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, INTERFACE_DISTRIBUTION_ID ,INTERIM_TAX_SEGMENT1 ,INTERIM_TAX_SEGMENT2 ,INTERIM_TAX_SEGMENT3 ,INTERIM_TAX_SEGMENT4 ,INTERIM_TAX_SEGMENT5 ,INTERIM_TAX_SEGMENT6 ,INTERIM_TAX_SEGMENT7 FROM RA_INTERFACE_DISTRIBUTIONS WHERE REQUEST_ID = :b1 AND account_class = 'TAX' AND ( (INTERIM_TAX_SEGMENT1 IS NOT NULL) OR ( INTERIM_TAX_SEGMENT2 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT3 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT4 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT5 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT6 IS NOT NULL ) OR ( INTERIM_TAX_SEGMENT7 IS NOT NULL ) ) ORDER BY INTERIM_TAX_SEGMENT1 ,INTERIM_TAX_SEGMENT2 ,INTERIM_TAX_SEGMENT3 ,INTERIM_TAX_SEGMENT4 ,INTERIM_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 time 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 system time is 21-JUN-2012 15:06:59 raapem: no errors recorded raavdi()- Current system 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.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_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.TYPE, 'INV', 0, 'DM', 1, 'CM', 2), DECODE(L.REFERENCE_LINE_ID, NULL, DECODE(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_ATTRIBUTE13 || L.REFERENCE_LINE_ATTRIBUTE14 || L.REFERENCE_LINE_ATTRIBUTE15, NULL, 0, 1), 1) ORDER 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 system 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 AND L.CUST_TRX_TYPE_ID = T.CUST_TRX_TYPE_ID AND NOT ((L.REFERENCE_LINE_ID IS NOT NULL 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_attribute13 || l.reference_line_attribute14 || l.reference_line_attribute15 is not null) AND T.TYPE = 'CM') len = 853 raauct()+ Current system time is 21-JUN-2012 15:06:59 raaggc()+ Current system time is 21-JUN-2012 15:06:59 raaggc()- Current system time is 21-JUN-2012 15:06:59 raagoc()+ Current system time is 21-JUN-2012 15:06:59 raagoc()- Current system time is 21-JUN-2012 15:06:59 select CONTRACT_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 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 BUTE12||'~'||L.HEADER_ATTRIBUTE13||'~'||L.HEADER_ATTRIBUTE14||'~'||L.HEADER_ATTR IBUTE15||'~'||L.HEADER_ATTRIBUTE2||'~'||L.HEADER_ATTRIBUTE3||'~'||L.HEADER_ATTRI BUTE4||'~'||L.HEADER_ATTRIBUTE5||'~'||L.HEADER_ATTRIBUTE6||'~'||L.HEADER_ATTRIBU TE7||'~'||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_ATTRIBUT

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_ATTRIB UTE25||'~'||L.HEADER_GDF_ATTRIBUTE26||'~'||L.HEADER_GDF_ATTRIBUTE27||'~'||L.HEAD ER_GDF_ATTRIBUTE28||'~'||L.HEADER_GDF_ATTRIBUTE29||'~'||L.HEADER_GDF_ATTRIBUTE3| |'~'||L.HEADER_GDF_ATTRIBUTE30||'~'||L.HEADER_GDF_ATTRIBUTE4||'~'||L.HEADER_GDF_ ATTRIBUTE5||'~'||L.HEADER_GDF_ATTRIBUTE6||'~'||L.HEADER_GDF_ATTRIBUTE7||'~'||L.H EADER_GDF_ATTRIBUTE8||'~'||L.HEADER_GDF_ATTRIBUTE9||'~'||L.INITIAL_CUSTOMER_TRX_ ID||'~'||L.INTERNAL_NOTES||'~'||L.INVOICING_RULE_ID||'~'||L.LEGAL_ENTITY_ID||'~' ||L.LINE_GDF_ATTR_CATEGORY||'~'||L.ORIG_SYSTEM_BATCH_NAME||'~'||L.ORIG_SYSTEM_BI LL_ADDRESS_ID||'~'||L.ORIG_SYSTEM_BILL_CONTACT_ID||'~'||L.ORIG_SYSTEM_BILL_CUSTO MER_ID||'~'||L.ORIG_SYSTEM_SOLD_CUSTOMER_ID||'~'||L.PAYMENT_ATTRIBUTES||'~'||L.P AYMENT_SET_ID||'~'||L.PREVIOUS_CUSTOMER_TRX_ID||'~'||L.PRIMARY_SALESREP_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_UPSTREAM_FLAG||'~'||L. TERM_ID||'~'||L.TERRITORY_ID||'~'||L.TRX_DATE||'~'||L.TRX_NUMBER||'~'||NVL(L.CON VERSION_DATE, L.TRX_DATE), substrb(l.line_type,1,1), null, null, l.rowid, null, 'B', '2' 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 = :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_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 is not null) and t.type = 'CM') and nvl(l.interface_status, '~') != 'P' and l.link_to_line_id is null and not exists ( select /*+ 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_interface_lines lk, ra_interface_errors e where e.interface_line_id = lk.interface_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.COMMENTS||'~'||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 BUTE12||'~'||L.HEADER_ATTRIBUTE13||'~'||L.HEADER_ATTRIBUTE14||'~'||L.HEADER_ATTR IBUTE15||'~'||L.HEADER_ATTRIBUTE2||'~'||L.HEADER_ATTRIBUTE3||'~'||L.HEADER_ATTRI BUTE4||'~'||L.HEADER_ATTRIBUTE5||'~'||L.HEADER_ATTRIBUTE6||'~'||L.HEADER_ATTRIBU TE7||'~'||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_ATTRIBUT 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_ATTRIB UTE25||'~'||L.HEADER_GDF_ATTRIBUTE26||'~'||L.HEADER_GDF_ATTRIBUTE27||'~'||L.HEAD ER_GDF_ATTRIBUTE28||'~'||L.HEADER_GDF_ATTRIBUTE29||'~'||L.HEADER_GDF_ATTRIBUTE3| |'~'||L.HEADER_GDF_ATTRIBUTE30||'~'||L.HEADER_GDF_ATTRIBUTE4||'~'||L.HEADER_GDF_ ATTRIBUTE5||'~'||L.HEADER_GDF_ATTRIBUTE6||'~'||L.HEADER_GDF_ATTRIBUTE7||'~'||L.H EADER_GDF_ATTRIBUTE8||'~'||L.HEADER_GDF_ATTRIBUTE9||'~'||L.INITIAL_CUSTOMER_TRX_ ID||'~'||L.INTERNAL_NOTES||'~'||L.INVOICING_RULE_ID||'~'||L.LEGAL_ENTITY_ID||'~' ||L.LINE_GDF_ATTR_CATEGORY||'~'||L.ORIG_SYSTEM_BATCH_NAME||'~'||L.ORIG_SYSTEM_BI LL_ADDRESS_ID||'~'||L.ORIG_SYSTEM_BILL_CONTACT_ID||'~'||L.ORIG_SYSTEM_BILL_CUSTO MER_ID||'~'||L.ORIG_SYSTEM_SOLD_CUSTOMER_ID||'~'||L.PAYMENT_ATTRIBUTES||'~'||L.P AYMENT_SET_ID||'~'||L.PREVIOUS_CUSTOMER_TRX_ID||'~'||L.PRIMARY_SALESREP_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_UPSTREAM_FLAG||'~'||L. TERM_ID||'~'||L.TERRITORY_ID||'~'||L.TRX_DATE||'~'||L.TRX_NUMBER||'~'||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 = :trx_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_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_attribute13 || l.reference_line_attribute14 || 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 (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.interface_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] = 20 sdp->L[3] = 16 sdp->L[4] = 18 sdp->L[5] = 20 sdp->L[6] = 1 sdp->L[7] = 1 raaamd()+ Current system time is 21-JUN-2012 15:06:59 raaamd()- Current system time is 21-JUN-2012 15:06:59 mrow_keep = 110 Opening HS_CSR Current system time is 21-JUN-2012 15:06:59 Done opening HS_CSR Current system time is 21-JUN-2012 15:06:59 select ra_customer_trx_s.nextval from ra_interface_lines update ra_interface_lines 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 count_update = 1 Current system time is 21-JUN-2012 15:06:59 last_total = 1 Current system time is 21-JUN-2012 15:06:59 1 row(s) updated Current system time is 21-JUN-2012 15:06:59 0: 202 ~~~01-JAN-12~~DCG12222211~1~User~~~USD~~1486~~~~~01-JAN-12~01-JAN-12 ~~~~~~~P~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-2~~~~307469~~4228669~~~~~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:59 raault()+ Current system time is 21-JUN-2012 15:06:59 select /*+ index(l ra_interface_lines_n1) leading(l) use_nl(lk)*/ l.customer_tr x_id, l.interface_line_id||lk.line_type, lk.line_number, lk.rowid from ra_interface_lines lk, ra_interface_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_code asc, lk.interface_line_id asc len = 532 raaamd()+ Current system time is 21-JUN-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 where rowid = :c3 len = 100 no_of_rows = 0 raault()- Current system time is 21-JUN-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 21-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_ID) 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.INTERFACE_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') AND L.ACCOUNTING_RULE_ID = R.RULE_ID AND L.SET_OF_BOOKS_ID = B.SET_OF_BOOKS_ID AND (NOT EXISTS (SELECT 1 FROM GL_PERIODS P1, /* to get the first period */ GL_PERIODS 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 != 'SPECIFIC' AND T.PERIOD_TYPE = P1.PERIOD_TYPE AND L.RULE_START_DATE BETWEEN P1.START_DATE AND P1.END_DATE AND P1.ADJUSTMENT_PERIOD_FLAG = 'N' AND ( P2.END_DATE, ( TO_CHAR(P2.PERIOD_YEAR,999999)||'-'|| TO_CHAR(P2.PERIOD_NUM,999999)||'-'|| TO_CHAR(DECODE(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.PERIOD_SET_NAME = P1.PERIOD_SET_NAME AND P9.PERIOD_TYPE = P1.PERIOD_TYPE AND P9.START_DATE >= P1.START_DATE AND P9.ADJUSTMENT_PERIOD_FLAG = 'N' AND ROWNUM <= (DECODE(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.PERIOD_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.START_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 BETWEEN 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_LINE_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_LINE_ID IS NULL AND EXISTS ( SELECT 1 FROM RA_RULES R, GL_SETS_OF_BOOKS B2, AR_SYSTEM_PARAMETERS SP2 WHERE B2.SET_OF_BOOKS_ID = SP2.SET_OF_BOOKS_ID AND L.ACCOUNTING_RULE_ID = R.RULE_ID AND R.type IN ('A', 'ACC_DUR') AND DECODE(R.FREQUENCY, 'SPECIFIC', 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 check period with itself */ AND P2.PERIOD_SET_NAME || P2.PERIOD_NAME != P1.PERIOD_SET_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 raader()+ Current system time is 21-JUN-2012 15:06:59 raader()- Current system time 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_MANDATE_FLAG_VALUE OM Source Context : ORDER ENTRY . Invalid payment type code: 0 records inserted. Payment Details Defaulting Hierarchy: PARENT. Batch Source Id: 3227. 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 time is 21-JUN-2012 15:07:00 3. receipt method: 1 records updated 4. receipt method: 1 records updated 0 row(s) updated raavpm()- Current system time is 21-JUN-2012 15:07:00 raavti()+ Current system time is 21-JUN-2012 15:07:00 raavti()- Current system time is 21-JUN-2012 15:07:00 raavfl()+ Current system time is 21-JUN-2012 15:07:00 raavfl()- Current system time is 21-JUN-2012 15:07:00 raavac()+ Current system time is 21-JUN-2012 15:07:00 raavac()- Current system time is 21-JUN-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 21-JUN-2012 15:07:00 insert into ra_customer_trx ( customer_trx_id, last_update_date, last_updated_by, creation_date, created_by, last_update_login, trx_number, cust_trx_type_id, trx_date, set_of_books_id, ct_reference, interface_header_context, interface_header_attribute1, interface_header_attribute2, interface_header_attribute3, interface_header_attribute4, interface_header_attribute5, interface_header_attribute6, interface_header_attribute7, interface_header_attribute8, interface_header_attribute9, interface_header_attribute10, interface_header_attribute11, 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, purchase_order, purchase_order_revision, purchase_order_date, comments, internal_notes, exchange_rate_type, exchange_date, exchange_rate, invoice_currency_code, initial_customer_trx_id, agreement_id, request_id, program_application_id, program_id, program_update_date, complete_flag, doc_sequence_value, credit_method_for_rules, credit_method_for_installments, receipt_method_id, doc_sequence_id, related_customer_trx_id, invoicing_rule_id, ship_via, ship_date_actual, waybill_number, fob_point, territory_id, attribute_category, attribute1, attribute2, attribute3, attribute4, attribute5, attribute6, attribute7, attribute8, attribute9, attribute10, attribute11, attribute12, attribute13, attribute14, attribute15, global_attribute_category, global_attribute1, global_attribute2, global_attribute3, global_attribute4, global_attribute5, global_attribute6, global_attribute7,

global_attribute8, global_attribute9, global_attribute10, global_attribute11, global_attribute12, global_attribute13, global_attribute14, global_attribute15, global_attribute16, global_attribute17, global_attribute18, global_attribute19, global_attribute20, global_attribute21, global_attribute22, global_attribute23, global_attribute24, global_attribute25, global_attribute26, global_attribute27, global_attribute28, global_attribute29, global_attribute30, status_trx, posting_control_id, created_from, paying_customer_id, paying_site_use_id, reason_code, printing_option, orig_system_batch_name, payment_server_order_num, approval_code, contract_id, org_id, legal_entity_id, application_id, payment_attributes, billing_date) select l.customer_trx_id, sysdate, :b_last_updated_by, sysdate, :b_created_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_attribute6, '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.interface_line_attribute14, '15', l.interface_line_attribute15, NULL ), substr(decode(l.interface_line_context, 'Global Data Elements', decode(1, 0, null, 'DELTA CARE METAVANCE1'), 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.interface_line_attribute6, l.interface_line_attribute7, l.interface_line_attribute8, l.interface_line_attribute9, l.interface_line_attribute10, l.interface_line_attribute11, l.interface_line_attribute12, l.interface_line_attribute13, l.interface_line_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_bill_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.previous_customer_trx_id, l.primary_salesrep_id, l.purchase_order, l.purchase_order_revision, l.purchase_order_date, l.comments, l.internal_notes, decode(l.currency_code, g.currency_code, null, l.conversion_type), decode(l.currency_code, g.currency_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.receipt_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, rtrim(l.header_attribute1), rtrim(l.header_attribute2), rtrim(l.header_attribute3), rtrim(l.header_attribute4), rtrim(l.header_attribute5), rtrim(l.header_attribute6), rtrim(l.header_attribute7), rtrim(l.header_attribute8), rtrim(l.header_attribute9), 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.header_gdf_attribute2, l.header_gdf_attribute3, l.header_gdf_attribute4, l.header_gdf_attribute5, l.header_gdf_attribute6, l.header_gdf_attribute7, l.header_gdf_attribute8, l.header_gdf_attribute9, l.header_gdf_attribute10, l.header_gdf_attribute11, l.header_gdf_attribute12, l.header_gdf_attribute13, 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_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.header_gdf_attribute27, l.header_gdf_attribute28, l.header_gdf_attribute29, l.header_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_use_id), l.reason_code,

l.printing_option, l.orig_system_batch_name, l.payment_server_order_num, l.approval_code, l.contract_id, l.org_id, l.legal_entity_id, l.application_id, l.payment_attributes, l.billing_date from ra_interface_lines_gt l, ra_batch_sources b, gl_sets_of_books g where l.set_of_books_id = g.set_of_books_id and b.name = l.batch_source_name and l.interface_line_id in ( select /*+ INDEX (l1,RA_INTERFACE_LINES_N2) */ min(l1.interface_line_id) from ra_interface_lines_gt l1 where l1.request_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 null or l1.reference_line_attribute1 || l1.reference_line_attribute2 || l1.reference_line_attribute3 || l1.reference_line_attribute4 || l1.reference_line_attribute5 || l1.reference_line_attribute6 || l1.reference_line_attribute7 || l1.reference_line_attribute8 || l1.reference_line_attribute9 || l1.reference_line_attribute10 || l1.reference_line_attribute11 || l1.reference_line_attribute12 || l1.reference_line_attribute13 || l1.reference_line_attribute14 || l1.reference_line_attribute15 is not null) and exists (select 'x' from ra_cust_trx_types t where t.cust_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 Current system time is 21-JUN-2012 15:07:00 raaihd()- Current system time is 21-JUN-2012 15:07:00 Transferring : Current system time is 21-JUN-2012 15:07:00 raaild()+ Current system time is 21-JUN-2012 15:07:00 INSERT INTO RA_CUSTOMER_TRX_LINES ( 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_attribute9, interface_line_attribute10, interface_line_attribute11, interface_line_attribute12, interface_line_attribute13, interface_line_attribute14, interface_line_attribute15, interface_line_context, line_number, set_of_books_id, reason_code, inventory_item_id, description, translated_description, previous_customer_trx_id, previous_customer_trx_line_id, initial_customer_trx_line_id, quantity_ordered, quantity_credited, quantity_invoiced, unit_standard_price, unit_selling_price, amount_includes_tax_flag, uom_code, sales_order, sales_order_line, sales_order_date, sales_order_source, sales_order_revision, accounting_rule_id, accounting_rule_duration, line_type, rule_start_date, rule_end_date, extended_amount, taxable_amount, 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, attribute7, attribute8, attribute9, attribute10, attribute11, attribute12, attribute13, attribute14, attribute15, global_attribute_category, global_attribute1, global_attribute2, global_attribute3, global_attribute4, global_attribute5, global_attribute6, global_attribute7, global_attribute8, global_attribute9, global_attribute10, global_attribute11, global_attribute12, global_attribute13, global_attribute14, global_attribute15, global_attribute16, global_attribute17, global_attribute18, global_attribute19, global_attribute20, request_id, program_application_id, program_id, program_update_date, default_ussgl_transaction_code, autorule_complete_flag, last_period_to_credit, tax_exempt_flag, tax_exempt_reason_code, tax_exempt_number, movement_id, payment_set_id, warehouse_id, contract_line_id, invoiced_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, :b1, sysdate, :b2, :b3, l.customer_trx_id, l.interface_line_attribute1, l.interface_line_attribute2, l.interface_line_attribute3, l.interface_line_attribute4, l.interface_line_attribute5, l.interface_line_attribute6, l.interface_line_attribute7, l.interface_line_attribute8, l.interface_line_attribute9, l.interface_line_attribute10, l.interface_line_attribute11, l.interface_line_attribute12, l.interface_line_attribute13, l.interface_line_attribute14, l.interface_line_attribute15, substr(decode(l.interface_line_context,'Global Data Elements', null, l.interface_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.description,null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE',l.translated_description,null), null, null, decode(decode(l.line_type, 'CHARGES', 'LINE', 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.quantity, 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', 'LINE', l.line_type), 'LINE', l.unit_standard_price, null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE', nvl(l.unit_selling_price, decode(l.quantity, 0, l.amount, null, l.amount, l.amount/l.quantity)), null), l.amount_includes_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_order_line) ,null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE', l.sales_order_date ,null), decode(decode(l.line_type, 'CHARGES', 'LINE', l.line_type), 'LINE', l.sales_order_source ,null), decode(decode(l.line_type, 'CHARGES', '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.accounting_rule_id, null, null, decode(r.type, 'ACC_DUR',l.accounting_rule_duration, '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, 'CHARGES', 'LINE', l.line_type), 'LINE',decode(l.accounting_rule_id, null, null, l.rule_end_date),null), decode(decode(l.line_type,'CHARGES','LINE',l.line_type), 'LINE', decode(l.quantity * l.unit_selling_price,null, nvl(l.amount,0), decode(c.minimum_accountable_unit,null, round(l.quantity * l.unit_selling_price, c.precision), round(l.quantity * l.unit_selling_price / c.minimum_accountable_unit)* c.minimum_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_accountable_unit) * c.minimum_accountable_unit), decode(c.minimum_accountable_unit, 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, round(nvl(parent.amount,0), c.precision), round(nvl(parent.amount,0) / c.minimum_accountable_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.minimum_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), decode(l.line_type, 'TAX',l.location_segment_id, null), decode(l.line_type, 'TAX',l.vat_tax_id, 'LINE', l.vat_tax_id, null), decode(l.line_type, 'TAX',l.tax_precedence,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(decode(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.attribute3), rtrim(l.attribute4), rtrim(l.attribute5), rtrim(l.attribute6), rtrim(l.attribute7), 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_attribute5, 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_gdf_attribute14, l.line_gdf_attribute15, l.line_gdf_attribute16, l.line_gdf_attribute17, 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, 'CHARGES', '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.movement_id, l.payment_set_id, l.warehouse_id, l.contract_line_id, l.invoiced_line_acctg_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_accounting_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_flag, 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.interface_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) Current system time is 21-JUN-2012 15:07:00 1 fetched Current system time is 21-JUN-2012 15:07:00 Updated 1 row(s) Current system time is 21-JUN-2012 15:07:00 Rows processed LE2: 1 row(s) Current system time is 21-JUN-2012 15:07:00 Rows processed 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 system 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 raaddl()+ Current system time is 21-JUN-2012 15:07:00 arcdaa()+ Current system time 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 arcdaa() return code 1 arcdaa()- 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 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 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 raaebt()+ Current system time is 21-JUN-2012 15:07:01 raaebt()- Current system time is 21-JUN-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()+ Current 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 21-JUN-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 row(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-2012 1 5:07:01 0 row(s) (RA_CUST_TRX_LINE_SALESREPS) deleted Current system time is 21-JUN-2012 15:07:01 raarrt()- Current system time is 21-JUN-2012 15:07:01 raacre()+ 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_updated_by, last_update_date, last_update_login, payment_schedule_id, customer_trx_id, amount_due_original, amount_due_remaining, amount_line_items_original, amount_line_items_remaining, tax_original, tax_remaining, freight_original, freight_remaining, 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_code, actual_date_closed, amount_credited, exchange_rate_type, exchange_rate, exchange_date, trx_number, trx_date, amount_applied, gl_date_closed, gl_date, acctd_amount_due_remaining, request_id, program_application_id, program_id, program_update_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), nvl(: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)+ nvl(:c34,0), 0, nvl(to_date(:c35,'DD-MON-YYYY'), to_date('12/31/4712','MM/DD/YY YY')), to_date('12/31/4712','MM/DD/YYYY')), :c36, :c37, :c38, to_date(:c39,'DD-MON-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/4712','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_date,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_forward + 1)),1,2))), last_day(add_months(nvl(h.billing_date,h.trx_date), (tl.due_months_forward - 1))) + least(tl.due_day_of_month, to_number(substr(last_day(add_months( nvl(h.billing_date,h.trx_date), tl.due_months_forward)),1,2)))), nvl(h.billing_date,h.trx_date) + tl.due_days))),'DD-MON-YYYY'), h.bill_to_customer_id, type.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.minimum_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_customer_trx_lines l, ra_cust_trx_line_gl_dist d, ra_terms_lines tl, ra_terms t, fnd_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_id is not NULL) not exists ( select /*+ push_subq no_unnest */ 'x' from ar_payment_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_rate, h.exchange_date, h.trx_number, h.invoicing_rule_id, c.minimum_accountable_unit, 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:01 raaamd()- Current system time is 21-JUN-2012 15:07:01 mrow = 1598 raaips()- Current system time is 21-JUN-2012 15:07:01 raaucf()+ Current system time is 21-JUN-2012 15:07:01 CT Complete Flag - 0 row(s) updated raaucf()- Current system time 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 21-JUN-2012 15:07:01

raamtc()- Current system time is 21-JUN-2012 15:07:01 raacgi()+ Current system time 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 raaurt()+ Current system time is 21-JUN-2012 15:07:01 0 row(s) updated raaurt()- 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 raxlae()+ Current system time is 21-JUN-2012 15:07:01 XLA EVENTS raxlae()- Current system time is 21-JUN-2012 15:07:01 raarbe()+ Current system time is 21-JUN-2012 15:07:01 Raise Business Events. raarbe()- Current system time is 21-JUN-2012 15:07:01 raapic()- Current system time is 21-JUN-2012 15:07:01 Reporting : 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) = </fincrp1apps/apps/apps_st/appl/ar/12.0.0/reports/RAXAPR.r df> Outfile = </fincrp1apps/inst/apps/fincrp1_rc-lx04/logs/appl/conc/out /o12955895.out> arguments = <P_AI_REQUEST_ID=12955895 > errbuf = <* > APPLLCSP Environment Variable set to : Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are : American_America.AL32UTF8 '.,' Enter Password: Report Builder: Release 10.1.2.3.0 - Production on Thu Jun 21 15:07:02 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. +---------------------------------------------------------------------------+ Start of log messages from FND_FILE +---------------------------------------------------------------------------+ rows inserted through zx_errors_gt 0 +---------------------------------------------------------------------------+ End of log 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/fincrp1/OFyJunmp.t> arguments = <P_AI_REQUEST_ID=12955895

P_BATCH_SOURCE_NAME='DELTA CARE METAVANCE1' > errbuf = <> APPLLCSP Environment Variable set to : Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are : American_America.AL32UTF8 '.,' Enter Password: MSG-00000: Start of debug MSG-00000: retrieved org_id 85 MSG-00000: Start of before report trigger MSG-00000: After report trigger Report Builder: Release 10.1.2.3.0 - Production on Thu Jun 21 15:07:05 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. +---------------------------------------------------------------------------+ Start of log messages from FND_FILE +---------------------------------------------------------------------------+ +---------------------------------------------------------------------------+ End of log messages from FND_FILE +---------------------------------------------------------------------------+ raaprx()- Current system time is 21-JUN-2012 15:07:06 raacit()+ Current system time is 21-JUN-2012 15:07:06 1 row(s) updated Current system time is 21-JUN-2012 15:07:06 raadcr()+ Current system time is 21-JUN-2012 15:07:06 raadcr()- Current system time is 21-JUN-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 of log messages from FND_FILE +---------------------------------------------------------------------------+ +---------------------------------------------------------------------------+ End of log messages from FND_FILE +---------------------------------------------------------------------------+ +---------------------------------------------------------------------------+ No completion options were requested. Output file size: 5452 +---------------------------------------------------------------------------+ Concurrent request completed successfully Current system time is 21-JUN-2012 15:07:06 +---------------------------------------------------------------------------+

Potrebbero piacerti anche