Gl_date_closed on ar_payment_schedule
Hi all,
I'm having some troubles with gl_date_closed: on the 03-jul-07, user creates a receipt and applies it to a payment schedule defining gl_date to 03-jul-07. As it is a partial receipt, payment schedule remains open. Two days later, user creates a new receipt and applies it to the same invoice, and the invoice is closed. However, gl_date used was 29-jun-07.
In this example, Receivables sets payment schedule gl_date_closed to 29-jun-07, in instead of 03-jul-07. Is this correct? Shouldn't it be set to 03-jul-07, since, concerning gl dates, this invoice was open on 30-jun-07?
Thank's,
Ketter Ohnes
Hi,
we can see the date in GL_JE_HEAERS.
GL_JE_HEADERS stores journal entries. There is a one-to-many relationship between journal entry batches and journal entries. Each row in this table includes the associated batch ID, the journal entry name and description, and other information about the journal entry. This table corresponds to the Journals window of the Enter Journals form. STATUS is 'U' for unposted and 'P' for posted. Other statuses indicate that an error condition was found. A complete list is below.
Based up on the JE_CATEGORY in this table we can determine the source of the transactions.
JE_CATEGORY is like Purchased invoices,Payments,Transactions,Receipts.
When we run GL_Interface Program the following tables are affected in AR Modual.
For Transaction the following tables are affected.
ra_customer_trx_all
ra_customer_trx_lines_all
For Receipts the following tables are affected.
AR_CASH_RECEIPTS_all
AR_RECEIVABLE_APPLICATIONS_all
Regards,
Raju.
Similar Messages
-
Hi Fincon people,
I have a customer who is on 11.5.10 and is having millions of AP Invoices in his system.
We are building a custom program which accepts an 'as-of-date' as a parameter and it should run through all the "Open" AP Invoices - as in - Open as of the passed 'as-of-date' parameter.
We had a similar requirement in AR and in order to get the open invoices as of the passed date, I am checking if the GL_DATE_CLOSED (in AR_PAYMENT_SCHEDULES) of the AR Invoices is greater than the passed 'as-of-date' value and considering it as open.
Now, is there a similar GL_DATE_CLOSED or something similar in AP so that I can tell that an AP Invoice was 'open' as of a particular date? Right now, I am scanning through the entire millions of invoices and checking the Invoice Payments to see when the Payment was made and then finding the 'open' invoices AS OF A DATE. The AP Aging report, unlike the AR report doesnt' contain the As-of-date parameter and always uses the sysdate to age. Did anyone have this requirement? Can you suggest some solutions to find out the invoices in AP that are open as of a date?
Thanks,
Srini.787062 wrote:
Hi All,
please could any one send me model questions or (website address) for exam paper codes 1Z0-516,1Z0-517 & 1Z0-518.
send to [email protected]
Thanks,Beware of getting information that is in breach of copyight or is unauthoirsed training material.
http://blogs.oracle.com/certification/2009/09/0136.html -
Open AR transaction and Receipts
Can you let me know the standard concurrent programs which list all the Receivables Open AR Transaction and Open AR Receipts
The table ar_payment_Schedules_all gives you the outstanding information as on date. For eg. if the system date is 13th April and if you query the ar_payment_schedules_all table, the amount_due_remaining column will give you the open amount as on that date.
However if you want the oustanding as on some previous date, lets say as on 31st March, in that case you have to rollback all the applications that would have occured from 1st april to 13th april.
Find below the script that I used to get the oustanding as on any previous date. Pls. note that I am using a temp table here to populate the details.
declare
v_cash_receipt NUMBER;
v_adjustment NUMBER;
v_credit_memo NUMBER;
v_as_of_outstanding NUMBER;
v_cash_receipt_acctd NUMBER;
v_adjustment_acctd NUMBER;
v_credit_memo_acctd NUMBER;
v_credit_memo_acctd_1 NUMBER;
v_as_of_outstanding_acctd NUMBER;
p_as_of_date DATE;
cursor cs_get_trx (p_as_of_date1 IN Date) is
SELECT ps.customer_id CUST_ACCOUNT_ID
, trx.creation_date INV_CREATION_DATE
, ps.trx_number INVOICE_NUMBER
, trx.trx_date INVOICE_DATE
, ps.gl_date GL_DATE
, NVL(ps.amount_due_original,0) INVOICE_AMOUNT
, NVL(ps.tax_original,0) TAX_AMOUNT
, NVL(ps.acctd_amount_due_remaining,0) ACCTD_OUTSTANDING_AMOUNT
, ps.due_date
, CEIL(sysdate - ps.due_date) DAYS_OUTSTANDING
, ps.payment_schedule_id
, ps.number_of_due_dates INSTALLMENT_NUMBER
, trx.customer_trx_id
, CEIL(p_as_of_date1 - ps.due_date) DAYS_LATE_AS_OF
FROM ra_customer_trx TRX
, ar_payment_schedules PS
WHERE
trx.customer_trx_id = ps.customer_trx_id
AND ps.gl_date <= p_as_of_date1
AND ps.gl_date_closed > p_as_of_date1 ;
CURSOR cs_get_receipt(p_as_of_date2 IN DATE ) IS
SELECT ps.customer_id CUST_ACCOUNT_ID
, ps.payment_schedule_id
, CEIL(p_as_of_date - ps.GL_DATE) days_late_as_of_r
, ps.gl_date
, cr.receipt_number
, app.cash_receipt_id
, sum(app.acctd_amount_applied_from) ACCTD_AMOUNT_APPLIED
FROM ar_receivable_applications app
, ar_cash_receipts cr
, ar_payment_schedules ps
WHERE app.cash_receipt_id = cr.cash_receipt_id
AND app.payment_schedule_id = ps.payment_schedule_id
AND app.status in ('ACC', 'UNAPP', 'UNID', 'OTHER ACC' )
AND NVL(app.confirmed_flag,'Y') = 'Y'
AND app.gl_date <= p_as_of_date2
AND ps.gl_date <= p_as_of_date2
AND ps.gl_date_closed > p_as_of_date2
AND ( ( app.reversal_gl_date IS NOT NULL AND ps.gl_date <= p_as_of_date2 )
OR app.reversal_gl_date IS NULL
GROUP BY ps.customer_id
, cr.receipt_number
, app.cash_receipt_id
, ps.payment_schedule_id
, ps.gl_date
HAVING
sum(app.acctd_amount_applied_from) <> 0 ;
Begin
delete zxc_aging_cust1 ;
p_as_of_date := to_date('&Enter_as_of_date','DD-MON-RRRR') ;
For invoice in cs_get_trx(p_as_of_date)
LOOP
/* cash applied after p_as_of_date */
SELECT NVL(SUM(NVL(acctd_amount_applied_to, 0.0) +
NVL(acctd_earned_discount_taken,0.0) +
NVL(acctd_unearned_discount_taken,0.0)),0.0)
INTO v_cash_receipt_acctd
FROM ar_receivable_applications
WHERE TRUNC(gl_date) > p_as_of_date
AND status||'' = 'APP'
AND NVL(confirmed_flag,'Y') = 'Y'
AND applied_payment_schedule_id = invoice.payment_schedule_id
AND application_type LIKE 'CASH%';
/* adjustments applied after p_as_of_date */
SELECT NVL(SUM(ar_adjustments.acctd_amount), 0.0)
INTO v_adjustment_acctd
FROM ar_adjustments
WHERE TRUNC(gl_date) > p_as_of_date
AND status = 'A'
AND payment_schedule_id = invoice.payment_schedule_id;
/* invoice credited after p_as_of_date */
SELECT nvl(sum(nvl(acctd_amount_applied_to, 0.0)), 0.0)
INTO v_credit_memo_acctd
FROM ar_receivable_applications
WHERE applied_payment_schedule_id = invoice.payment_schedule_id
AND nvl(confirmed_flag,'Y') = 'Y'
AND status||'' = 'APP'
AND TRUNC(gl_date) > p_as_of_date
AND application_type LIKE 'CM%';
/*added new by anil patil 7/7/7 */
/* credit memo applied after p_as_of_date */
SELECT nvl(sum(nvl(acctd_amount_applied_to, 0.0)), 0.0)
INTO v_credit_memo_acctd_1
FROM ar_receivable_applications
WHERE payment_schedule_id = invoice.payment_schedule_id
AND nvl(confirmed_flag,'Y') = 'Y'
AND status||'' = 'APP'
AND TRUNC(gl_date) > p_as_of_date
AND application_type LIKE 'CM%';
/* calculate actual outstanding amount */
v_as_of_outstanding_acctd := invoice.acctd_outstanding_amount + v_cash_receipt_acctd - v_adjustment_acctd +
v_credit_memo_acctd - v_credit_memo_acctd_1 ;
insert into zxc_aging_cust1
( customer_id ,
invoice_number ,
invoice_date ,
gl_date ,
invoice_amount ,
tax_amount ,
acctd_outstanding_amount ,
due_date ,
days_outstanding ,
installment_number ,
days_late_as_of ,
current_os_amt ,
cash_receipt_amt ,
adj_amt ,
credit_memo_amt ,
credit_memo_amt_1
values
(invoice.cust_account_id ,
invoice.invoice_number ,
invoice.invoice_date ,
invoice.gl_date ,
invoice.invoice_amount ,
invoice.tax_amount ,
v_as_of_outstanding_acctd ,
invoice.due_date ,
invoice.days_outstanding ,
invoice.installment_number ,
invoice.days_late_as_of ,
invoice.acctd_outstanding_amount ,
v_cash_receipt_acctd ,
v_adjustment_acctd ,
v_credit_memo_acctd ,
v_credit_memo_acctd_1
END LOOP ;
COMMIT;
FOR receipt in cs_get_receipt (p_as_of_date )
LOOP
INSERT INTO zxc_aging_cust1( customer_id
, invoice_number
, trx_type
, acctd_outstanding_amount
, gl_date
VALUES( receipt.cust_account_id
, receipt.receipt_number
, 'RECEIPT'
, -1 * receipt.acctd_amount_applied
, receipt.gl_date );
END LOOP;
COMMIT ;
END;
Hope this helps.
Thanks,
Anil -
ORA-01858: a non-numeric character was found where a numeric was expected
hi ,
This was the code which shows the sales rep invoice amount and collected amount but while running report thru concurrent program its showing the following error:
ORA-01858: a non-numeric character was found where a numeric was expected
WHERE TO_CHAR ( TO_DATE ( PS.GL_DATE , 'DD/MON/YY' ) , 'MON-YYYY' ) BETWEEN TO_CHAR ( TO_DATE ( : ==> P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND TO_CHAR ( TO_DATE ( : P_todate , 'YYYY/MM/DD' ) , 'MON-YYYY' ) AND ps.customer_id = cust.custome
The Actual Code was this
SELECT SUBSTR(SALES.name,1,50) salesrep_name_inv,
--ps.CLASS,
SUM(ABS(ps.acctd_amount_due_remaining)) acctd_amt,
SUM(ABS(ps.amount_due_remaining)) amt_due_remaining_inv,
SUM(ABS(ps.amount_adjusted)) amount_adjusted_inv,
SUM(ABS(ps.amount_applied)) amount_applied_inv,
SUM(ABS(ps.amount_credited)) amount_credited_inv,
SALES.salesrep_id,
NULL "REMARKS"
-- ps.gl_date gl_date_inv,
FROM ra_cust_trx_types ctt,
ra_customers cust,
ar_payment_schedules ps,
ra_salesreps SALES,
ra_site_uses site,
ra_addresses addr,
ra_cust_trx_line_gl_dist gld,
gl_code_combinations c,
ra_customer_trx ct
WHERE TO_CHAR(TO_DATE(PS.GL_DATE,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
AND ps.customer_id = cust.customer_id
AND ps.customer_trx_id = ct.customer_trx_id
AND ps.cust_trx_type_id = ctt.cust_trx_type_id
AND NVL(ct.primary_salesrep_id, -3) = SALES.salesrep_id
AND ps.customer_site_use_id+0 = site.site_use_id(+)
AND site.address_id = addr.address_id(+)
AND TO_CHAR(TO_DATE(PS.GL_DATE_CLOSED,'DD/MON/YY'),'MON-YYYY')
BETWEEN TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY') AND TO_CHAR(TO_DATE(:P_todate,'YYYY/MM/DD'),'MON-YYYY')
--AND ps.gl_date_closed > TO_DATE(:P_todate,'MON-YYYY')
AND ct.customer_trx_id = gld.customer_trx_id
AND gld.account_class = 'REC'
AND gld.latest_rec_flag = 'Y'
AND gld.code_combination_id = c.code_combination_id
AND sales.salesrep_id is not null and sales.name is not null
-- and ps.payment_schedule_id+0 < 9999
-- AND SALES.salesrep_id ='1001'
GROUP BY SALES.name,
--ps.CLASS,
SALES.salesrep_idSo to_date function accepts a string as input and returns a date. When a date is input instead, it is implicity converted to the required type of the function paremeter, which is a string, so that to_date can convert it back to a date again.
If you are lucky with the implicit conversion, you get the same date back, if you are not you might get a different date or an error.
From your query it appears that this conversion from a date, to a string, to a date, and then back to a string using to_char this time, is being done to remove the time or day part of the date. The actual range comparison is being done on strings rather than dates, which is dangerous as strings sort differently than dates.
In this example if I sort by date, Jan 01 comes between Dec 00 and Feb 01 as you would expect.
SQL> select * from t order by d;
D
12-01-2000
01-01-2001
02-01-2001When converted to strings, Feb 01 comes between Dec 00 and Jan 01, which is probably not the desired result
SQL> select * from t order by to_char(d,'DD-MON-YY');
D
12-01-2000
02-01-2001
01-01-2001If you want to remove time and day parts of dates you should use the trunc function
trunc(d) removes the time, trunc(d,'mm') will remove the days to start of month.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions201.htm#i79761 -
Aging Query show Previous Bucket
Hi All,
Working ERP Version 11.5.10.2
I need some help, in my query to show previous bucket from as of date.
please see the below query
select TRX_NUMBER,salesper_name, customer_name, customer_number,amount_due_original,
amount_due_remaining,gl_date,amount_remaining, SALESREP_ID , due_date,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) < 1 THEN amount_remaining ELSE 0 END ) current_buck,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) BETWEEN 1 AND 30 THEN amount_remaining ELSE 0 END ) buck1,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) BETWEEN 31 AND 60 THEN amount_remaining ELSE 0 END ) buck2,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) BETWEEN 61 AND 90 THEN amount_remaining ELSE 0 END ) buck3,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) BETWEEN 91 AND 180 THEN amount_remaining ELSE 0 END ) buck4,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) BETWEEN 181 AND 270 THEN amount_remaining ELSE 0 END ) buck6,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) BETWEEN 271 AND 360 THEN amount_remaining ELSE 0 END ) buck5,
SUM( CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)-due_date,0) >= 361 THEN amount_remaining ELSE 0 END ) buck7
from (SELECT aps.TRX_NUMBER, rs.NAME salesper_name,
ac.customer_name, ac.customer_number, aps.amount_due_original,
aps.amount_due_remaining, aps.gl_date,
--SUM ( aps.amount_due_remaining
SUM (decode(aps.invoice_currency_code,'SAR',aps.amount_due_remaining,(aps.amount_due_remaining*aps.exchange_rate))
+ (SELECT nvl(SUM (NVL (arav.AMOUNT_APPLIED, 0)),0)
FROM ar_receivable_applications_v arav
WHERE arav.GL_DATE > nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),sysdate)
AND arav.TRX_NUMBER= aps.TRX_NUMBER
AND aps.CLASS = 'INV'
AND arav.CUSTOMER_ID= aps.CUSTOMER_ID
+ (select nvl(SUM (NVL (acma.AMOUNT_APPLIED_BASE , 0)),0) from ARBV_CREDIT_MEMO_APPLICATIONS acma, ra_customer_trx_partial_v rctpv1
where acma.APPLIED_PAYMENT_SCHEDULE_ID=aps.PAYMENT_SCHEDULE_ID
and rctpv1.CUSTOMER_TRX_ID=acma.CUSTOMER_TRX_ID
and rctpv1.GD_GL_DATE > nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),sysdate) )
+(select nvl(SUM(adj.amount),0) -- for manuval credit note
from ar_app_adj_v adj , ra_customer_trx_all rac
where adj.customer_trx_id = aps.CUSTOMER_TRX_ID
and adj.GL_DATE > nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),sysdate)
and adj.ps_class in ('CM','DM')
and aps.customer_trx_id = rac.customer_trx_id
and rac.trx_number not in('706575','PO19793/INV#25013#1') )
+ (SELECT nvl(SUM (NVL (arav.amount_applied, 0))*-1,0)
FROM ar_receivable_applications_v arav
WHERE arav.GL_DATE > TO_DATE (:p_to_date, 'RRRR/MM/DD HH24:MI:SS')
AND arav.CUSTOMER_ID =aps.CUSTOMER_ID
AND arav.CASH_RECEIPT_ID =aps.CASH_RECEIPT_ID
AND arav.RECEIPT_NUMBER=aps.TRX_NUMBER
AND aps.CLASS = 'PMT'
AND aps.GL_DATE_CLOSED > TO_DATE (:p_to_date, 'RRRR/MM/DD HH24:MI:SS')
)) amount_remaining
,RS.SALESREP_ID
,aps.due_date
FROM ar_payment_schedules aps, ra_customers ac,
ar_lookups look,
ar_lookups look_status,
hz_cust_accounts cust,
hz_parties party,
hz_cust_site_uses site_uses,
hz_cust_acct_sites acct_site,
hz_party_sites party_site,
hz_locations loc,
ra_salesreps rs
WHERE aps.gl_date <=
NVL (TO_DATE (:p_to_date, 'RRRR/MM/DD HH24:MI:SS'), SYSDATE)
AND cust.cust_account_id = acct_site.cust_account_id
AND cust.party_id = party.party_id
AND acct_site.party_site_id = party_site.party_site_id(+)
AND loc.location_id(+) = party_site.location_id
AND acct_site.cust_acct_site_id = site_uses.cust_acct_site_id(+)
AND look.lookup_type(+) = 'SITE_USE_CODE'
AND look.lookup_code(+) = site_uses.site_use_code
AND look_status.lookup_type(+) = 'CODE_STATUS'
AND look_status.lookup_code(+) = NVL (cust.status, 'A')
AND SUBSTRB (look.meaning, 1, 8)= 'Bill To'
AND site_uses.PRIMARY_SALESREP_ID=rs.SALESREP_ID
AND rs.NAME = nvl(:p_sale_per,rs.NAME)
AND ac.CUSTOMER_NUMBER=cust.ACCOUNT_NUMBER
AND aps.CUSTOMER_ID=ac.CUSTOMER_ID
AND aps.CUSTOMER_SITE_USE_ID=site_uses.SITE_USE_ID
GROUP BY rs.NAME,ac.customer_name,
ac.customer_number,
aps.amount_due_original,
aps.amount_due_remaining,
aps.gl_date,
aps.trx_number
,rs.SALESREP_ID , aps.due_date
ORDER BY rs.NAME)
group by TRX_NUMBER, salesper_name,customer_name, customer_number,amount_due_original,
amount_due_remaining,gl_date,amount_remaining, SALESREP_ID, due_date
RegardsMaybe
select TRX_NUMBER,salesper_name,customer_name,customer_number,amount_due_original,
amount_due_remaining,gl_date,amount_remaining,SALESREP_ID,due_date,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) < -30
THEN amount_remaining
ELSE 0
END) previous_buck,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) BETWEEN 0 AND -30
THEN amount_remaining
ELSE 0
END) current_buck,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) BETWEEN 1 AND 30
THEN amount_remaining
ELSE 0
END) buck1,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) BETWEEN 31 AND 60
THEN amount_remaining
ELSE 0
END) buck2,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) BETWEEN 61 AND 90
THEN amount_remaining
ELSE 0
END) buck3,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) BETWEEN 91 AND 180
THEN amount_remaining
ELSE 0
END) buck4,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) BETWEEN 181 AND 270
THEN amount_remaining
ELSE 0
END) buck6,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) BETWEEN 271 AND 360
THEN amount_remaining
ELSE 0
END) buck5,
SUM(CASE WHEN ROUND(nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),SYSDATE) - due_date,0) >= 361
THEN amount_remaining
ELSE 0
END) buck7
from (SELECT aps.TRX_NUMBER,rs.NAME salesper_name,ac.customer_name, ac.customer_number, aps.amount_due_original,
aps.amount_due_remaining, aps.gl_date,
SUM(decode(aps.invoice_currency_code,'SAR',aps.amount_due_remaining,(aps.amount_due_remaining * aps.exchange_rate)) +
(SELECT nvl(SUM(NVL(arav.AMOUNT_APPLIED,0)),0)
FROM ar_receivable_applications_v arav
WHERE arav.GL_DATE > nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),sysdate)
AND arav.TRX_NUMBER = aps.TRX_NUMBER
AND aps.CLASS = 'INV'
AND arav.CUSTOMER_ID = aps.CUSTOMER_ID
) +
(select nvl(SUM(NVL(acma.AMOUNT_APPLIED_BASE,0)),0)
from ARBV_CREDIT_MEMO_APPLICATIONS acma,
ra_customer_trx_partial_v rctpv1
where acma.APPLIED_PAYMENT_SCHEDULE_ID=aps.PAYMENT_SCHEDULE_ID
and rctpv1.CUSTOMER_TRX_ID = acma.CUSTOMER_TRX_ID
and rctpv1.GD_GL_DATE > nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),sysdate)
) +
(select nvl(SUM(adj.amount),0) -- for manuval credit note
from ar_app_adj_v adj,
ra_customer_trx_all rac
where adj.customer_trx_id = aps.CUSTOMER_TRX_ID
and adj.GL_DATE > nvl(to_date(:P_TO_DATE,'RRRR/MM/DD HH24:MI:SS'),sysdate)
and adj.ps_class in ('CM','DM')
and aps.customer_trx_id = rac.customer_trx_id
and rac.trx_number not in('706575','PO19793/INV#25013#1')
) +
(SELECT nvl(SUM(NVL(arav.amount_applied, 0))*-1,0)
FROM ar_receivable_applications_v arav
WHERE arav.GL_DATE > TO_DATE(:p_to_date,'RRRR/MM/DD HH24:MI:SS')
AND arav.CUSTOMER_ID = aps.CUSTOMER_ID
AND arav.CASH_RECEIPT_ID = aps.CASH_RECEIPT_ID
AND arav.RECEIPT_NUMBER = aps.TRX_NUMBER
AND aps.CLASS = 'PMT'
AND aps.GL_DATE_CLOSED > TO_DATE(:p_to_date,'RRRR/MM/DD HH24:MI:SS')
) amount_remaining,
RS.SALESREP_ID,
aps.due_date
FROM ar_payment_schedules aps,
ra_customers ac,
ar_lookups look,
ar_lookups look_status,
hz_cust_accounts cust,
hz_parties party,
hz_cust_site_uses site_uses,
hz_cust_acct_sites acct_site,
hz_party_sites party_site,
hz_locations loc,
ra_salesreps rs
WHERE aps.gl_date <= NVL(TO_DATE(:p_to_date,'RRRR/MM/DD HH24:MI:SS'),SYSDATE)
AND cust.cust_account_id = acct_site.cust_account_id
AND cust.party_id = party.party_id
AND acct_site.party_site_id = party_site.party_site_id(+)
AND loc.location_id(+) = party_site.location_id
AND acct_site.cust_acct_site_id = site_uses.cust_acct_site_id(+)
AND look.lookup_type(+) = 'SITE_USE_CODE'
AND look.lookup_code(+) = site_uses.site_use_code
AND look_status.lookup_type(+) = 'CODE_STATUS'
AND look_status.lookup_code(+) = NVL (cust.status, 'A')
AND SUBSTRB (look.meaning, 1, 8)= 'Bill To'
AND site_uses.PRIMARY_SALESREP_ID=rs.SALESREP_ID
AND rs.NAME = nvl(:p_sale_per,rs.NAME)
AND ac.CUSTOMER_NUMBER=cust.ACCOUNT_NUMBER
AND aps.CUSTOMER_ID=ac.CUSTOMER_ID
AND aps.CUSTOMER_SITE_USE_ID=site_uses.SITE_USE_ID
GROUP BY rs.NAME,ac.customer_name,ac.customer_number,aps.amount_due_original,aps.amount_due_remaining,
aps.gl_date,aps.trx_number,rs.SALESREP_ID,aps.due_date
ORDER BY rs.NAME
group by TRX_NUMBER,salesper_name,customer_name,customer_number,amount_due_original,
amount_due_remaining,gl_date,amount_remaining,SALESREP_ID,due_dateRegards
Etbin -
Dear all
Can any one tell me,
In receivables, is there any table or view exists which shows customers monthly balances.
In parables, is there any table or view exist which show suppliers balances month wise.
In inventory or cost mgt , is there any table or view exist which shows Item quantitative balances month wise.
Regards
ImranImran,
The following gives you the outstanding from AR. It takes care of the receipt applications and adjustments as well. With this, you can get the outstanding as on any date. Note that this script uses a temp table to dump the data. its easy to figure out the structureof the table from the query.
declare
v_cash_receipt NUMBER;
v_adjustment NUMBER;
v_credit_memo NUMBER;
v_as_of_outstanding NUMBER;
v_cash_receipt_acctd NUMBER;
v_adjustment_acctd NUMBER;
v_credit_memo_acctd NUMBER;
v_credit_memo_acctd_1 NUMBER;
v_as_of_outstanding_acctd NUMBER;
p_as_of_date DATE;
cursor cs_get_trx (p_as_of_date1 IN Date) is
SELECT ps.customer_id CUST_ACCOUNT_ID
, trx.creation_date INV_CREATION_DATE
, ps.trx_number INVOICE_NUMBER
, trx.trx_date INVOICE_DATE
, ps.gl_date GL_DATE
, NVL(ps.amount_due_original,0) INVOICE_AMOUNT
, NVL(ps.tax_original,0) TAX_AMOUNT
, NVL(ps.acctd_amount_due_remaining,0) ACCTD_OUTSTANDING_AMOUNT
, ps.due_date
, CEIL(sysdate - ps.due_date) DAYS_OUTSTANDING
, ps.payment_schedule_id
, ps.number_of_due_dates INSTALLMENT_NUMBER
, trx.customer_trx_id
, CEIL(p_as_of_date1 - ps.due_date) DAYS_LATE_AS_OF
FROM ra_customer_trx TRX
, ar_payment_schedules PS
WHERE
trx.customer_trx_id = ps.customer_trx_id
AND ps.gl_date <= p_as_of_date1
AND ps.gl_date_closed > p_as_of_date1 ;
CURSOR cs_get_receipt(p_as_of_date2 IN DATE ) IS
SELECT ps.customer_id CUST_ACCOUNT_ID
, ps.payment_schedule_id
, CEIL(p_as_of_date - ps.GL_DATE) days_late_as_of_r
, ps.gl_date
, cr.receipt_number
, app.cash_receipt_id
, sum(app.acctd_amount_applied_from) ACCTD_AMOUNT_APPLIED
FROM ar_receivable_applications app
, ar_cash_receipts cr
, ar_payment_schedules ps
WHERE app.cash_receipt_id = cr.cash_receipt_id
AND app.payment_schedule_id = ps.payment_schedule_id
AND app.status in ('ACC', 'UNAPP', 'UNID', 'OTHER ACC' )
AND NVL(app.confirmed_flag,'Y') = 'Y'
AND app.gl_date <= p_as_of_date2
AND ps.gl_date <= p_as_of_date2
AND ps.gl_date_closed > p_as_of_date2
AND ( ( app.reversal_gl_date IS NOT NULL AND ps.gl_date <= p_as_of_date2 )
OR app.reversal_gl_date IS NULL
GROUP BY ps.customer_id
, cr.receipt_number
, app.cash_receipt_id
, ps.payment_schedule_id
, ps.gl_date
HAVING
sum(app.acctd_amount_applied_from) <> 0 ;
Begin
delete zxc_aging_cust1 ;
p_as_of_date := to_date('&Enter_as_of_date','DD-MON-RRRR') ;
For invoice in cs_get_trx(p_as_of_date)
LOOP
/* cash applied after p_as_of_date */
SELECT NVL(SUM(NVL(acctd_amount_applied_to, 0.0) +
NVL(acctd_earned_discount_taken,0.0) +
NVL(acctd_unearned_discount_taken,0.0)),0.0)
INTO v_cash_receipt_acctd
FROM ar_receivable_applications
WHERE TRUNC(gl_date) > p_as_of_date
AND status||'' = 'APP'
AND NVL(confirmed_flag,'Y') = 'Y'
AND applied_payment_schedule_id = invoice.payment_schedule_id
AND application_type LIKE 'CASH%';
/* adjustments applied after p_as_of_date */
SELECT NVL(SUM(ar_adjustments.acctd_amount), 0.0)
INTO v_adjustment_acctd
FROM ar_adjustments
WHERE TRUNC(gl_date) > p_as_of_date
AND status = 'A'
AND payment_schedule_id = invoice.payment_schedule_id;
/* invoice credited after p_as_of_date */
SELECT nvl(sum(nvl(acctd_amount_applied_to, 0.0)), 0.0)
INTO v_credit_memo_acctd
FROM ar_receivable_applications
WHERE applied_payment_schedule_id = invoice.payment_schedule_id
AND nvl(confirmed_flag,'Y') = 'Y'
AND status||'' = 'APP'
AND TRUNC(gl_date) > p_as_of_date
AND application_type LIKE 'CM%';
/*added new by anil patil 7/7/7 */
/* credit memo applied after p_as_of_date */
SELECT nvl(sum(nvl(acctd_amount_applied_to, 0.0)), 0.0)
INTO v_credit_memo_acctd_1
FROM ar_receivable_applications
WHERE payment_schedule_id = invoice.payment_schedule_id
AND nvl(confirmed_flag,'Y') = 'Y'
AND status||'' = 'APP'
AND TRUNC(gl_date) > p_as_of_date
AND application_type LIKE 'CM%';
/* calculate actual outstanding amount */
v_as_of_outstanding_acctd := invoice.acctd_outstanding_amount + v_cash_receipt_acctd - v_adjustment_acctd +
v_credit_memo_acctd - v_credit_memo_acctd_1 ;
insert into zxc_aging_cust1
( customer_id ,
invoice_number ,
invoice_date ,
gl_date ,
invoice_amount ,
tax_amount ,
acctd_outstanding_amount ,
due_date ,
days_outstanding ,
installment_number ,
days_late_as_of ,
current_os_amt ,
cash_receipt_amt ,
adj_amt ,
credit_memo_amt ,
credit_memo_amt_1
values
(invoice.cust_account_id ,
invoice.invoice_number ,
invoice.invoice_date ,
invoice.gl_date ,
invoice.invoice_amount ,
invoice.tax_amount ,
v_as_of_outstanding_acctd ,
invoice.due_date ,
invoice.days_outstanding ,
invoice.installment_number ,
invoice.days_late_as_of ,
invoice.acctd_outstanding_amount ,
v_cash_receipt_acctd ,
v_adjustment_acctd ,
v_credit_memo_acctd ,
v_credit_memo_acctd_1
END LOOP ;
COMMIT;
FOR receipt in cs_get_receipt (p_as_of_date )
LOOP
INSERT INTO zxc_aging_cust1( customer_id
, invoice_number
, trx_type
, acctd_outstanding_amount
, gl_date
VALUES( receipt.cust_account_id
, receipt.receipt_number
, 'RECEIPT'
, -1 * receipt.acctd_amount_applied
, receipt.gl_date );
END LOOP;
COMMIT ;
END;
Hope this helps.
Thanks,
Anil -
GL_CLOSED_DATE??
Hi all
I am creating receipts and applying with a transaction.Gl_DATE for receipt is say 06-JAN-10 ( As i created on this date). Before applying , GL_CLOSED_DATE value is default value i.e 31-DEC-4712 and after applying GL_CLOSED_DATE is GL_DATE of receipt. I ran AR General Ledger transfer program on same date and there is no change in GL_CLOSED_DATE.
My questions
Will there be change in GL_CLOSED_DATE after AR to GL transfer program, if yes, then what basis, this change will happen?
What is the significance of GL_CLOSED_DATE before applying, after applying and after transfer to GL?
Will GL_DATE has any impact on GL_CLOSED_DATE (I am asking this as my GL_CLOSED_DATE is nothing GL_DATE in all cases)?
Please help me in this issue?GL_CLOSED_DATE and GL_DATE bothe these fields have tottaly different purpose. The gl_date is used for your gl transfer date. The gl_closed_date is used to find out if your receipt has been applied or is the receipt amount still unapplied.
I am just posting here one of my old query I used to find out the open credits. May be this will give you some good idea.In the following query I am trying to find out open receipts as on a particular date (p_as_of_date2). Initially when the gi_date is 31-DEC-4712 , it will always be greater than the p_as_of_date2.
SELECT ps.customer_id CUST_ACCOUNT_ID
, ps.payment_schedule_id
, CEIL(p_as_of_date - ps.GL_DATE) days_late_as_of_r
, ps.gl_date
, cr.receipt_number
, app.cash_receipt_id
, sum(app.acctd_amount_applied_from) ACCTD_AMOUNT_APPLIED
FROM ar_receivable_applications app
, ar_cash_receipts cr
, ar_payment_schedules ps
WHERE app.cash_receipt_id = cr.cash_receipt_id
AND app.payment_schedule_id = ps.payment_schedule_id
AND app.status in ('ACC', 'UNAPP', 'UNID', 'OTHER ACC' )
AND NVL(app.confirmed_flag,'Y') = 'Y'
AND app.gl_date <= p_as_of_date2
AND ps.gl_date <= p_as_of_date2
AND ps.gl_date_closed > p_as_of_date2
AND ( ( app.reversal_gl_date IS NOT NULL AND ps.gl_date <= p_as_of_date2 )
OR app.reversal_gl_date IS NULL
GROUP BY ps.customer_id
, cr.receipt_number
, app.cash_receipt_id
, ps.payment_schedule_id
, ps.gl_date
HAVING
sum(app.acctd_amount_applied_from) <> 0 ;
Thanks,
Anil -
Capture failed in iStore sales order processing.
Hi,
I am using oracle 11i, When I ran our credit card capture process in iStore ,4 out of 11 transactions failed to capture but I do not see any specific issue with them,what is the reason for this ,please reply me ,this is very very critical
The following is the issue log while i am running concurrent Automatic Remittances Creation Program.
+---------------------------------------------------------------------------+
Receivables: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
ARZCAR_REMIT_SRS module: Automatic Remittances Creation Program (SRS)
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
BATCH Date :
Convert date parm
prepay_flag: <N>
Exception Code <0>
Batch ID: <12839>
===============================================================
Starting Program ARZCAR_REMIT_SRS for: E0090162
Concurrent Request ID: 146657704
Batch ID: <12839>
Batch Name: 2248
Argc 43
===============================================================
Parameters passed in:
Process Type: REMIT
Create Flag: Y
Approve Flag: Y
Format Flag: N
Batch Id:
Debug Mode On:
Transaction Date Low:
Transaction Date High:
Due Date Low:
Due Date High:
Transaction Number Low:
Transaction Number High:
Document Number Low:
Document Number High:
Customer Number Low:
Customer Number High:
Customer Name Low:
Customer Name High:
Customer Id:
Site Low:
Site High:
Site Id:
Remittance Total From:
Remittance Total To:
Billing Number Low:
Billing Number High:
Customer Bank Acc Num Low:
Customer Bank Acc Num High:
Receipt Class ID 3000
Payment Method ID 4000
Batch Currency USD
Batch Date 06-JUN-14
Batch Gl Date 06-JUN-14
Comments
Exchange Date
Exchange Rate
Exchange Rate Type
Media Reference
Remit Method Code STANDARD
Remit Bank Branch ID 1
Remit Bank Account ID 21848
Remit Bank Deposit Number
===============================================================
ICX_PAY_SERVER profile value = [http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp]
Current system time is 06-JUN-2014 11:42:33
main>> arzcrm_Create_Remits
arzlbt: Batch record locked
arzpbs: Contents of batch_struct:
batch_id = 12839, sob_id = 1001, currency = USD
batch_applied_status = STARTED_CREATION
batch_date = 06-JUN-14, j_batch_date = 2456815
gl_date = 06-JUN-14, j_gl_date = 2456815
ex_rate = , ex_date = , ex_type =
rec_method_id = 4000, confirmed_flag = Y
payment_type_code = CREDIT_CARD, merchant_id = iPayix
creation_rule = PER_INVOICE
history_status = CONFIRMED
maturity_rule = EARLIEST, lead_days = 0
remit_method_code = STANDARD
rm_accnt_id = 21848, rm_branch_id = 1
rec_prt_prog_name = , rec_trans_prog_name =
rem_prt_prog_name = , rem_trans_prog_name = ARBRIBYFMCREDIT_CARD
receipt_inherit_inv_num_flag = Y
arzcrm: Validated GL date
arzcrm: Building main select stmt...
arzcrm: Building main update stmt...
arzcrm: Main select stmt:
SELECT /*+ ORDERED NO_EXPAND INDEX (crh AR_CASH_RECEIPT_HISTORY_N6) */ cr.cash_receipt_id,
cr.amount
FROM ar_cash_receipt_history crh,
ar_cash_receipts cr,
ar_receipt_methods rm,
ar_receipt_classes rclass,
ar_payment_schedules ps,
ar_receipt_method_accounts rma1,
ar_receipt_method_accounts rma2
WHERE crh.status = 'CONFIRMED'
AND crh.current_record_flag = 'Y'
AND crh.cash_receipt_id = cr.cash_receipt_id
AND NOT EXISTS
(SELECT 1 FROM ar_lookups l
WHERE NVL(cr.reversal_category,'~') = l.lookup_code
AND l.lookup_type = 'REVERSAL_CATEGORY_TYPE')
AND cr.receipt_method_id = nvl(:bs_receipt_method_id,cr.receipt_method_id)
AND cr.currency_code = :bs_currency
AND cr.cash_receipt_id = ps.cash_receipt_id(+)
AND cr.receipt_method_id = rm.receipt_method_id
AND cr.selected_remittance_batch_id is null
AND (( cr.amount >= 0) OR
(cr.type = 'MISC' and cr.amount < 0))
AND cr.set_of_books_id = :bs_sob_id
AND (nvl(rm.payment_type_code,'~')<>'CREDIT_CARD' OR (rm.payment_type_code='CREDIT_CARD' AND cr.cc_error_flag IS NULL))
AND rm.receipt_class_id = rclass.receipt_class_id
AND (rclass.remit_method_code = :bs_remit_method_code
OR rclass.remit_method_code = 'STANDARD_AND_FACTORING'
AND decode(nvl(rm.payment_type_code,'~'),'CREDIT_CARD','CREDIT_CARD','OTHER')
= decode(nvl(:bs_payment_type_code,'~'),'CREDIT_CARD','CREDIT_CARD','OTHER')
AND rma1.receipt_method_id = cr.receipt_method_id
AND rma1.bank_account_id = cr.remittance_bank_account_id
AND rma2.receipt_method_id = rma1.receipt_method_id
AND rma2.bank_account_id = :bs_remit_account_id
AND ((
(nvl(cr.override_remit_account_flag,'Y') = 'Y')
AND rma1.unapplied_ccid = rma2.unapplied_ccid
AND rma1.on_account_ccid = rma2.on_account_ccid
AND rma1.unidentified_ccid = rma2.unidentified_ccid
OR
(nvl(cr.override_remit_account_flag,'Y') = 'N')
and cr.remittance_bank_account_id = :bs_remit_account_id
FOR UPDATE OF cr.selected_remittance_batch_id
arzcrm: Main update stmt:
UPDATE ar_cash_receipts
SET selected_remittance_batch_id = '12839',
remittance_bank_account_id = '21848',
last_update_date = sysdate,
last_updated_by = '35097',
last_update_login = '180570538',
request_id = '146657704',
program_application_id = '222',
program_id = '44198',
program_update_date = sysdate
WHERE selected_remittance_batch_id is null
AND cash_receipt_id = :cr_id_array
arzcrm: Current system time is 06-JUN-2014 11:42:33
arzcrm: Marking receipts...
arzcrm: Current system time is 06-JUN-2014 11:42:34
arzubtC: Set batch status to STARTED_APPROVAL
arzcrm: COMMITTED WORK
( 11 Receipts Marked )
( 2056 Total Amount )
main<< arzcrm_Create_Remits
argc 43 worker number 43
After setting the wkr num
Worker Number 0 Total Workers 0
Current system time is 06-JUN-2014 11:42:34
main>> arzarm_Approve_Remit
Batch Id 12839
Locking the batches row arzlbt: Batch record locked
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13280]
Calling pmt_util for cr_id = 13280
arzarm: Processing Receipt >>>>
cr_id [13280], cr_amount [31.43]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50467]
cc_receipt_number=[26665]
cc_unique_ref=[FB2CB2D0BE0067F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[31.43]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13280
cc_pmt_instr_exp =[30-JUN-16]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50467]
Credit Card Capture Status - S
Status Code = [S]
Status Code = [S]
After Commit value of l_actual_rows : 1
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13281]
Calling pmt_util for cr_id = 13281
arzarm: Processing Receipt >>>>
cr_id [13281], cr_amount [918.86]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50487]
cc_receipt_number=[26666]
cc_unique_ref=[FB2CB2D0BE0167F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[918.86]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13281
cc_pmt_instr_exp =[31-OCT-15]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50487]
Credit Card Capture Status - S
Status Code = [S]
Status Code = [S]
After Commit value of l_actual_rows : 2
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13282]
Calling pmt_util for cr_id = 13282
arzarm: Processing Receipt >>>>
cr_id [13282], cr_amount [79.5]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50488]
cc_receipt_number=[26667]
cc_unique_ref=[FB2CB2D0BE0267F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[79.5]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13282
cc_pmt_instr_exp =[31-DEC-14]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50488]
Credit Card Capture Status - S
Status Code = [S]
Status Code = [S]
After Commit value of l_actual_rows : 3
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13283]
Calling pmt_util for cr_id = 13283
arzarm: Processing Receipt >>>>
cr_id [13283], cr_amount [16.05]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50508]
cc_receipt_number=[26668]
cc_unique_ref=[FB2CB2D0BE0367F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[16.05]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13283
cc_pmt_instr_exp =[31-MAY-15]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50508]
Credit Card Capture Status - S
Status Code = [S]
Status Code = [S]
After Commit value of l_actual_rows : 4
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13284]
Calling pmt_util for cr_id = 13284
arzarm: Processing Receipt >>>>
cr_id [13284], cr_amount [83.79]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50509]
cc_receipt_number=[26669]
cc_unique_ref=[FB2CB2D0BE0467F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[83.79]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13284
cc_pmt_instr_exp =[31-MAR-16]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50509]
Credit Card Capture Status - S
Status Code = [S]
Status Code = [S]
After Commit value of l_actual_rows : 5
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13285]
Calling pmt_util for cr_id = 13285
arzarm: Processing Receipt >>>>
cr_id [13285], cr_amount [156.19]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50510]
cc_receipt_number=[26670]
cc_unique_ref=[FB2CB2D0BE0567F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[156.19]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13285
cc_pmt_instr_exp =[31-JAN-16]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50510]
Credit Card Capture Status - S
Status Code = [S]
Status Code = [S]
After Commit value of l_actual_rows : 6
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13286]
Calling pmt_util for cr_id = 13286
arzarm: Processing Receipt >>>>
cr_id [13286], cr_amount [628.52]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50511]
cc_receipt_number=[26671]
cc_unique_ref=[FB2CB2D0BE0667F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[628.52]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13286
cc_pmt_instr_exp =[31-JUL-16]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50511]
Credit Card Capture Status - S
Status Code = [S]
Status Code = [S]
After Commit value of l_actual_rows : 7
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13287]
Calling pmt_util for cr_id = 13287
arzarm: Processing Receipt >>>>
cr_id [13287], cr_amount [51.19]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50527]
cc_receipt_number=[26672]
cc_unique_ref=[FB2CB2D0BE0767F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[51.19]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13287
cc_pmt_instr_exp =[31-AUG-16]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50527]
Credit Card Capture Status -
Status Code = []
Status Code = []
PMT Error Location = []
Vendor Error Code = []
Vendor Error Message = []
Status Code = []
arzarm: AR_AUTOREC_EXCEPTIONS inserts = 1
arzarm: AR_CASH_RECEIPT_HISTORY updates = 1
arzarm: AR_CASH_RECEIPT_HISTORY deletes = 1
arzarm: AR_DISTRIBUTIONS deletes = 2
arzarm: Auth/Capture did not succeed. Resetting the approval code
Original Approval Code - 10.174.5.141-14664052C5F-19093D33-5BB7FC9B
After Commit value of l_actual_rows : 8
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13288]
Calling pmt_util for cr_id = 13288
arzarm: Processing Receipt >>>>
cr_id [13288], cr_amount [49.69]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50529]
cc_receipt_number=[26673]
cc_unique_ref=[FB2CB2D0BE0867F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[49.69]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13288
cc_pmt_instr_exp =[31-AUG-14]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50529]
Credit Card Capture Status -
Status Code = []
Status Code = []
PMT Error Location = []
Vendor Error Code = []
Vendor Error Message = []
Status Code = []
arzarm: AR_AUTOREC_EXCEPTIONS inserts = 1
arzarm: AR_CASH_RECEIPT_HISTORY updates = 1
arzarm: AR_CASH_RECEIPT_HISTORY deletes = 1
arzarm: AR_DISTRIBUTIONS deletes = 2
arzarm: Auth/Capture did not succeed. Resetting the approval code
Original Approval Code - 10.174.5.141-14664D8F064-2BE040E5-6C7D81C4
After Commit value of l_actual_rows : 9
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13289]
Calling pmt_util for cr_id = 13289
arzarm: Processing Receipt >>>>
cr_id [13289], cr_amount [12.66]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50528]
cc_receipt_number=[26674]
cc_unique_ref=[FB2CB2D0BE0967F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[12.66]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13289
cc_pmt_instr_exp =[31-AUG-15]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50528]
Credit Card Capture Status -
Status Code = []
Status Code = []
PMT Error Location = []
Vendor Error Code = []
Vendor Error Message = []
Status Code = []
arzarm: AR_AUTOREC_EXCEPTIONS inserts = 1
arzarm: AR_CASH_RECEIPT_HISTORY updates = 1
arzarm: AR_CASH_RECEIPT_HISTORY deletes = 1
arzarm: AR_DISTRIBUTIONS deletes = 2
arzarm: Auth/Capture did not succeed. Resetting the approval code
Original Approval Code - 10.174.5.139-14664855781-2C5FAA69-757411FE
After Commit value of l_actual_rows : 10
arzarm: COMMITTED WORK
Checking the receipt method 1= CREDIT_CARD
merchant ref = iPayix
Checking the receipt method 2= CREDIT_CARD
cr_id [13290]
Calling pmt_util for cr_id = 13290
arzarm: Processing Receipt >>>>
cr_id [13290], cr_amount [28.85]
cc_url=[http://eegebp.tcc.etn.com:8075/oa_servlets/ibyecapp?]
cr_pay_server_order_num=[ASO50507]
cc_receipt_number=[26675]
cc_unique_ref=[FB2CB2D0BE0A67F2E044B499BA628CB6]
cc_currency =[USD]
cc_price =[28.85]
cc_auth_type =[authonly]
cc_pmt_type =[CREDITCARD]
cc_pmt_instr_id =[9000 **** **** ****]
cc_cash_receipt_id =13290
cc_pmt_instr_exp =[30-NOV-15]
cc_merchant_ref =[iPayix]
Fetched Payment Server Order Number = [ASO50507]
Credit Card Capture Status -
Status Code = []
Status Code = []
PMT Error Location = []
Vendor Error Code = []
Vendor Error Message = []
Status Code = []
arzarm: AR_AUTOREC_EXCEPTIONS inserts = 1
arzarm: AR_CASH_RECEIPT_HISTORY updates = 1
arzarm: AR_CASH_RECEIPT_HISTORY deletes = 1
arzarm: AR_DISTRIBUTIONS deletes = 2
arzarm: Auth/Capture did not succeed. Resetting the approval code
Original Approval Code - 10.174.5.142-1465DB45548-4317D860-6C2E97B
After Commit value of l_actual_rows : 11
arzarm: COMMITTED WORK
arzubt: Set batch status to COMPLETED_APPROVAL
before call to MRC....
after call to acct engine and mrc for remit...
arzarm: COMMITTED WORK : 2
( 7 Receipts Remitted, Total Amount: 1914.34 )
main<< arzarm_Approve_Remit
prepay_flag: <N>
Current system time is 06-JUN-2014 11:42:52
main>> arzexe_Execution_Report
prepay_flag: <N>
SRW Parameters:
P_PROCESS_TYPE=REMIT
P_BATCH_ID=12839
P_CREATE_FLAG=Y
P_APPROVE_FLAG=Y
P_FORMAT_FLAG=N
P_REQUEST_ID_MAIN=146657704
APPLLCSP Environment Variable set to :
XML_REPORTS_XENVIRONMENT is :
/opt/egapprod/ebpora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to: /opt/egapprod/ebpora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_AMERICA.UTF8
ORA-00979: not a GROUP BY expression
S ==> ELECT substrb(party.party_name,1,50) C_CUSTOMER_NAME_rs,
Report Builder: Release 6.0.8.27.0 - Production on Fri Jun 6 11:42:52 2014
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
11:42:33 :Auto Remittance Batch Generation
11:42:33 :Auto Remittance Batch Generation
11:42:34 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:39 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: S
11:42:39 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:39 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:43 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: S
11:42:43 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:43 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:47 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: S
11:42:47 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:47 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:48 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: S
11:42:48 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:48 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:49 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: S
11:42:49 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:49 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:50 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: S
11:42:50 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:50 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:51 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: S
11:42:51 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:51 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:52 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: U
11:42:52 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:52 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:52 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: U
11:42:52 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:52 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:52 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: U
11:42:52 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
11:42:52 :Auto Remittance: Calling ar_pmt_process_wrapper.Capture_Payment
11:42:52 :Auto Remittance:AR_PMT_PROCESS_WRAPPER.Capture_PaymentReturn Status: U
11:42:52 :Auto Remittance:Call to AR_PMT_PROCESS_WRAPPER .Capture_Payment
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
Program exited with status 1
arzexe: Cannot produce Execution Report
arzexe: Error from fdprep - ARZCARPO
main<< arzexe_Execution_Report
=============================================================================
main: EXCEPTIONS
ps_id = 1631663 exception_code = ar_cc_capture_failed
ps_id = 1631664 exception_code = ar_cc_capture_failed
ps_id = 1631665 exception_code = ar_cc_capture_failed
ps_id = 1631666 exception_code = ar_cc_capture_failed
=============================================================================
main<<CC Error Handling
main>>CC Error Handling
Current system time is 06-JUN-2014 11:42:52
END OF ARZCAR
Concurrent Request ID: 146657704
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
Executing request completion options...
+------------- 1) PRINT -------------+
Printing output file.
Request ID : 146657704
Number of copies : 0
Printer : noprint
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 06-JUN-2014 11:42:52
+---------------------------------------------------------------------------+Hello,
Please open a new SR for the product Oracle Payments. This is for payment processing issue and not for iStore cart nor order issue.
Provide the following debug log outputs for analysis -
A) Debug log for the Automatic Remittances -
1. Login to System Administrator responsibility
2. navigate Concurrent --> Program --> Define
Query for Short Name = ARZCAR_REMIT_SRS
3. Set Enable Trace = Yes (click the Checkbox)
4. Click Parameters button and locate Parameter name ARZ_DEBUG_FLAG
5. Set Display = Yes
Save your changes
Re-run the process, and upload the new log file generated.
The top of the log should have Debug Mode On=Yes on the above is set.
This will detail out all sql being processed.
AND
B) Provide the Payments debug log outputs -
How to generate Debug Log Files for Oracle iPayment 11.5.10 (Doc ID 265330.1)
Thank you,
Debbie -
Query about break statement in java
Hi All,
I am looking at some seeded oracle class and came across this code and wanted to understand what it does in the catch exception part ( in bold below).
Thanks
Shanky
protected String getOrgIdFromTransaction(OAPageContext oapagecontext, String s, String s1)
String s2;
String s3;
StringBuffer stringbuffer;
ViewObject viewobject;
s2 = "-1";
s3 = null;
stringbuffer = (new StringBuffer(" select org_id")).append(" from ar_payment_schedules");
if (s != null)
stringbuffer.append(" where payment_schedule_id = :1");
s3 = s;
} else
if (s1 != null)
stringbuffer.append(" where customer_trx_id = :1");
s3 = s1;
viewobject = null;
try
viewobject = oapagecontext.getRootApplicationModule().createViewObjectFromQueryStmt("CustSiteForInvoiceVO", stringbuffer.toString());
viewobject.setWhereClauseParam(0, s3);
Object obj = null;
viewobject.executeQuery();
while (viewobject.hasNext())
Row row = viewobject.next();
s2 = row.getAttribute(0).toString();
viewobject.remove();
catch (Exception exception)
throw OAException.wrapperException(exception);
* viewobject.remove(); // when does this part and below get executed ? *
*break MISSING_BLOCK_LABEL_176 ; // where is this label ? *
*Exception exception1;* // define a variable of type Exception
*exception1; // what does this do ? *
viewobject.remove();
*throw exception1;* // why throw this ?
return s2;
}Thanks Shekhar.
I have read that and understand the break statement. But I cannot see a label mentioned in my code sample.
Where is that label ? Oracle have used this in many places.
Any ideas ? -
Unable to find an Output Post Processor service to post-process request
Hi experts,
Users complaining that they could not able to generate the PDF.
User Complaint:
The program does not generate the PDF. The program just generates the XML output. The logfile shows that “Unable to find an Output Post Processor service to post-process request 25852905.”
EBS: 12.1.2
OS: RHEL 5.5
DB: 11.1.0.7.0
Steps that we tried:
1. Increased the OPP process to 16
2. Increased Concurrent:OPP Response Timeout to 750
3. There is no issue in manager log file.
4. Concurrent Requests Fail Due to Output Post Processing (OPP) Timeout (Doc ID 352518.1)
5. Restarted CM. Ran CMclean.
6. Re: Output Post Processor
7.Unable to View pdf Output File Created by XML Publisher
But we dont find any solutions over the above.
Log:
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
p_order_by='TRX_NUMBER'
p_trx_number_low='8414037'
p_trx_number_high='8414037'
p_open_invoice='N'
p_check_for_taxyn='N'
p_choice='SEL'
p_header_pages='1'
p_debug_flag='Y'
p_message_level='10'
Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.US7ASCII
Enter Password:
REP-0004: Warning: Unable to open user preference file.
MSG-00100: DEBUG: AfterPForm_Trigger +
MSG-00100: DEBUG: Multi Org established.
MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
MSG-00100: DEBUG: Get_Country_Description.
MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
MSG-00100: Running in debug mode
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: SEL
MSG-00500: DEBUG: About to build WHERE clause.
MSG-00500: DEBUG: WHERE clause built.
MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
MSG-00500: DEBUG: Table 1: AR_ADJUSTMENTS COM_ADJ,
AR_PAYMENT_SCHEDULES P,
RA_CUST_TRX_LINE_GL_DIST REC,
RA_CUSTOMER_TRX A,
HZ_CUST_ACCOUNTS B,
RA_TERMS T,
RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_PARTIES PARTY,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
HZ_CUST_SITE_USES U_BILL
MSG-00500: DEBUG: Table 2: RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_CUST_ACCOUNTS B,
HZ_PARTIES PARTY,
HZ_CUST_SITE_USES U_BILL,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
AR_ADJUSTMENTS COM_ADJ,
RA_CUSTOMER_TRX A,
AR_PAYMENT_SCHEDULES P,
RA_TERMS T
MSG-00500: DEBUG: Where 1: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND REC.CUSTOMER_TRX_ID = A.CUSTOMER_TRX_ID
AND REC.LATEST_REC_FLAG = 'Y'
AND REC.ACCOUNT_CLASS = 'REC'
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(P.TERMS_SEQUENCE_NUMBER,nvl(TL.SEQUENCE_NUM,0))=nvl(TL.SEQUENCE_NUM,nvl(p.terms_sequence_number,0))
AND DECODE(P.PAYMENT_SCHEDULE_ID,'',0, NVL(T.PRINTING_LEAD_DAYS,0))=0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.party_site_id = party_site.party_site_id
AND B.PARTY_ID = PARTY.PARTY_ID
AND loc.location_id = party_site.location_id
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND A.TERM_ID = TL.TERM_ID(+)
AND A.TERM_ID = T.TERM_ID(+)
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID(+)
MSG-00500: DEBUG: Where 2: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(T.PRINTING_LEAD_DAYS,0) > 0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.PARTY_SITE_ID = PARTY_SITE.PARTY_SITE_ID
AND B.PARTY_ID = PARTY.PARTY_ID
AND LOC.LOCATION_ID = PARTY_SITE.LOCATION_ID
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND NVL(P.TERMS_SEQUENCE_NUMBER,TL.SEQUENCE_NUM)=TL.SEQUENCE_NUM
AND T.TERM_ID = P.TERM_ID
AND TL.TERM_ID(+) = T.TERM_ID
MSG-00100: DEBUG: AfterPForm_Trigger -
MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 26
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Trx No... 8414037
MSG-00100: DEBUG: Get_Country_Description.
MSG-00010: 12:03 1 Transaction: 8414037
MSG-00100: DEBUG: Get_Country_Description.
MSG-00100: DEBUG: Get_Country_Description.
MSG-05000: DEBUG: Remit To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 11000 IH-35 NORTH
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: AUSTIN
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: TX
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 78753
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name:
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 6
MSG-05000: DEBUG: Height Max: 6
MSG-05000: DEBUG: Remit To Formatted... 11000 IH-35 NORTH
AUSTIN TX 78753
MSG-05000: DEBUG: Bill To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 2481 ROSS CRES
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: NORTH BATTLEFORD
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State:
MSG-05000: DEBUG: Province: SASKATCHEWAN
MSG-05000: DEBUG: Postal Code: S9A3R3
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: CA
MSG-05000: DEBUG: Customer Name: VAUGHN FAUTH
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name: VAUGHN
MSG-05000: DEBUG: Last Name: FAUTH
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Bill To Formatted... VAUGHN FAUTH
VAUGHN FAUTH
2481 ROSS CRES
NORTH BATTLEFORD SASKATCHEWAN S9A3R3
Canada
MSG-05000: DEBUG: Ship To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 2481 ROSS CRES
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: NORTH BATTLEFORD
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State:
MSG-05000: DEBUG: Province: SASKATCHEWAN
MSG-05000: DEBUG: Postal Code: S9A3R3
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: CA
MSG-05000: DEBUG: Customer Name: VAUGHN FAUTH
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Ship To Formatted... VAUGHN FAUTH
2481 ROSS CRES
NORTH BATTLEFORD SASKATCHEWAN S9A3R3
Canada
Report Builder: Release 10.1.2.3.0 - Production on Wed Sep 25 12:03:07 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
Executing request completion options...
+------------- 1) PUBLISH -------------+
Unable to find an Output Post Processor service to post-process request 25854362.
Check that the Output Post Processor service is running.
+--------------------------------------+
+------------- 2) PRINT -------------+
Not printing the output of this request because post-processing failed.
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed
Can any one please guide me for this issue.?.
Thanks,
VasanthHussein,
FNDOPP log file
9/25/13 10:47:48 AM] [Thread-31] Service thread starting up.
[9/25/13 10:47:48 AM] [EXCEPTION] [OPPServiceThread0] java.sql.SQLException: ORA-24067: exceeded maximum number of subscrib
ers for queue APPLSYS.FND_CP_GSM_OPP_AQ
ORA-06512: at "APPS.FND_CP_OPP_IPC", line 85
ORA-06512: at line 1
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1225)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3488)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3857)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at oracle.apps.fnd.cp.opp.OPPAQMonitor.initAQ(OPPAQMonitor.java:558)
at oracle.apps.fnd.cp.opp.OPPAQMonitor.init(OPPAQMonitor.java:534)
at oracle.apps.fnd.cp.opp.OPPAQMonitor.initialize(OPPAQMonitor.java:89)
at oracle.apps.fnd.cp.opp.OPPServiceThread.init(OPPServiceThread.java:94)
at oracle.apps.fnd.cp.gsf.BaseServiceThread.run(BaseServiceThread.java:135)
[9/25/13 11:04:11 AM] [EXCEPTION] [OPPAQMON:876235] ORA-04021: timeout occurred while waiting to lock object
[GC 20321K->4065K(63360K), 0.0137050 secs]
Thanks,
Vasanth -
Showing running totals on AR statatement Report
Hi All I need assistance in populating the Running totals on AR statement Report , I am trying to calculate the running total on the RDF using the (sum Over Partition ) and Not on the RTF template please assist .
here is my query below :
select customers.customer_name,
detail.customer_id,
detail.customer_site_use_id,
:CP_ACC_NAME,
:CP_ACC_NUM,
:CP_BRNCH_NAME,
:CP_COL_EMAIL,
:CP_COL_PHONE,
:CP_BRANCH_NR,
decode( (select meaning
from ar_lookups
where lookup_type = 'INV/CM/ADJ' and lookup_code = detail.class), 'Payment', apply_date, trx.trx_date) TRX_DATE,
trx.INVOICE_CURRENCY_CODE,
trx.INVOICE_CURRENCY_CODE INVOICE_CURRENCY_CODE_BAL,
NVL(trx.term_due_date,trx.TRX_DATE) term_due_date,
detail.customer_id cst_id,
detail.customer_site_use_id cst_site_id,
detail.customer_trx_id,
detail.trx_number,
(select meaning
from ar_lookups
where lookup_type = 'INV/CM/ADJ' and lookup_code = detail.class) class,
detail.amount_full_original,
detail.end_bal * -1 , (detail.end_bal + detail.amount_full_original)* -1 closing_balance ,
detail.amount_full_original - detail.the_order * -1 closing_bal,
(detail.amount_full_original - detail.running_total) running_total ,
detail.running_tot ,
customers.customer_name address1,
customers.address1 address2,
customers.address2 address3,
customers.address3 address4,
customers.city||' '||customers.state address5,
customers.country||' '||customers.postal_code address6,
addr.address1 rm_address1,
addr.address2 rm_address2,
addr.address3 rm_address3,
addr.address4 rm_address4,
addr.address5 rm_address4,
:p_as_of_date_from date_from,
to_char(to_date(:p_as_of_date_to,'DD-MON-YYYY'),'DD-Mon-YYYY') date_to,
addr.org_id rm_org_id,
rtrim(to_char(sysdate,'DD')||' '||to_char(sysdate,'Month'))||' '||to_char(sysdate, 'YYYY') curr_date
from (select customer_id, CUSTOMER_SITE_USE_ID, trx.CUSTOMER_TRX_ID,trx.TRX_NUMBER, null apply_date,ps.class,ps.AMOUNT_DUE_ORIGINAL amount_full_original, the_trx.end_bal,the_trx.running_total , the_trx.running_tot , 1 the_order
select customer_trx_id, sum(acctd_end_bal) end_bal , running_total , running_tot
SELECT ps.customer_trx_id ,
sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_from))
* ps.amount_due_remaining) start_bal,
sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_to))
* ps.amount_due_remaining) end_bal,
sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_from))
* ps.acctd_amount_due_remaining) acctd_start_bal,
sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_to))
* ps.acctd_amount_due_remaining) acctd_end_bal ,
(sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_from))
* ps.amount_due_remaining) + sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_to))
* ps.acctd_amount_due_remaining) ) running_total ,
sum((sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_from))
* ps.amount_due_remaining) + sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
NULL,to_date(:p_as_of_date_to))
* ps.acctd_amount_due_remaining) )) over (partition by ps.customer_trx_id order by ps.customer_trx_id)running_tot
FROM ar_payment_schedules_all ps
WHERE ps.payment_schedule_id+0 > 0
--JF2 AND ps.gl_date_closed >= to_date(:p_as_of_date_from)
AND ps.class IN ( 'CB', 'CM','DEP','DM','GUAR','INV')
AND ps.gl_date <= to_date(:p_as_of_date_to)
and org_id = nvl(:P_ORG_ID,org_id)--1246
--and customer_id = :p_customer_id --1075
--and CUSTOMER_SITE_USE_ID = :p_customer_site_id --1066
--and customer_trx_id = 66291
--'|| l_ps_org_where ||'
GROUP BY ps.customer_trx_id ,ps.acctd_amount_due_remaining , ps.gl_date,ps.gl_date_closed ,ps.class , rownum
ps.customer_trx_id ,
sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
ra.gl_date,to_date(:p_as_of_date_from))
* ( ra.amount_applied + NVL(ra.earned_discount_taken,0)
+ NVL(ra.unearned_discount_taken,0))) start_bal,
sum(ar_calc_aging.begin_or_end_bal(ps.gl_date,ps.gl_date_closed,
ra.gl_date,to_date(:p_as_of_date_to))
* ( ra.amount_applied + NVL(ra.earned_discount_taken,0)
+ NVL(ra.unearned_discount_takenHi
Yes i would like more help as i have never used group by roll up before
SELECT p.employee_number,
p.full_name employee_name,
DECODE (p.sex, 'M', 'Male', 'F', 'Female') gender,
(DECODE (p.per_information4,
'01', 'Indian',
'02', 'African',
'03', 'Coloured',
'04', 'White')) race,
p.original_date_of_hire,
a.effective_start_date startdate_current_position,
RTRIM (SUBSTR (ps.NAME, 1, INSTR (ps.NAME, ';')), ';') current_position,
ho.NAME current_organization,
xx_return_company_name(a.person_id, a.effective_start_date) current_company,
RTRIM (SUBSTR (ps1.NAME, 1, INSTR (ps1.NAME, ';')),';') previous_position,
ho1.NAME previous_organization,
xx_return_company_name(a1.person_id, a1.effective_start_date) previous_company,
a1.effective_start_date startdate_prev_position
FROM per_assignments_v2 a,
per_assignments_v2 a1,
per_all_people_f p,
per_all_positions ps,
per_all_positions ps1,
hr_all_organization_units_tl ho,
hr_all_organization_units_tl ho1
WHERE a1.person_id = a.person_id
AND NVL (a1.position_id, 9) <> a.position_id
AND a1.effective_end_date = a.effective_start_date - 1
AND p.person_id = a.person_id
and ho.ORGANIZATION_ID=ps.ORGANIZATION_ID
and ho1.ORGANIZATION_ID=a1.ORGANIZATION_ID
AND a.effective_start_date BETWEEN p.effective_start_date AND p.effective_end_date
AND a.position_id = ps.position_id
and p.EMPLOYEE_NUMBER not in ('1','2','3')
AND a1.position_id = ps1.position_id(+)
order by p.full_name -
XML Publisher generates PDF but concurrent program still completes in error
Hello,
I have a concurent program that is used everyday. It generates PDF output with an average of 500 pages. It completes normal majority of the times, but completes in error sporadicallly. Interestingly, when it completes in error, it still generates the PDF output successfully.
Question is why does it complete in error when all is good?
Please note that we just went live on R12 from 11i beginning of this year. This issue never occurred in 11i. Please advise what can be done to fix this issue.
Below is a log from one such submission. The log was rather long, so I'm only posting chunks from the beginning and end of the log, stripping the middle portion:
Receivables: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXBREG_RAXINV_NEW_XMLP module: Breg Invoice Print New Invoices - XMLP
Current system time is 22-JAN-2013 06:46:58
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
p_order_by='TRX_NUMBER'
p_cust_trx_class='INV'
p_cust_trx_type_id='1'
p_open_invoice='Y'
p_check_for_taxyn='N'
p_choice='NEW'
p_header_pages='1'
p_debug_flag='N'
p_message_level='10'
Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.AL32UTF8
Enter Password:
MSG-00100: DEBUG: AfterPForm_Trigger +
MSG-00100: DEBUG: Multi Org established.
MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
MSG-00100: DEBUG: AfterPForm_Trigger -
MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 106
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: NEW
MSG-00500: DEBUG: About to build WHERE clause.
MSG-00500: DEBUG: WHERE clause built.
MSG-00555: :p_choice:NEW
MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
MSG-00555: :p_sel_trx_number:a.trx_number
MSG-00555: :p_sel_trx_date:a.trx_date
MSG-00555: :p_sel_trx_id:a.customer_trx_id
MSG-00555: :p_sel_trx_type:types.type
MSG-00555: :p_br_where_clause:
MSG-00500: DEBUG: Table 1: AR_ADJUSTMENTS COM_ADJ,
AR_PAYMENT_SCHEDULES P,
RA_CUST_TRX_LINE_GL_DIST REC,
RA_CUSTOMER_TRX A,
HZ_CUST_ACCOUNTS B,
RA_TERMS T,
RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_PARTIES PARTY,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
HZ_CUST_SITE_USES U_BILL
MSG-00500: DEBUG: Table 2: RA_TERMS_LINES TL,
RA_CUST_TRX_TYPES TYPES,
AR_LOOKUPS L_TYPES,
HZ_CUST_ACCOUNTS B,
HZ_PARTIES PARTY,
HZ_CUST_SITE_USES U_BILL,
HZ_CUST_ACCT_SITES A_BILL,
HZ_PARTY_SITES PARTY_SITE,
HZ_LOCATIONS LOC,
AR_ADJUSTMENTS COM_ADJ,
RA_CUSTOMER_TRX A,
AR_PAYMENT_SCHEDULES P,
RA_TERMS T
MSG-00500: DEBUG: Where 1: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND REC.CUSTOMER_TRX_ID = A.CUSTOMER_TRX_ID
AND REC.LATEST_REC_FLAG = 'Y'
AND REC.ACCOUNT_CLASS = 'REC'
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(P.TERMS_SEQUENCE_NUMBER,nvl(TL.SEQUENCE_NUM,0))=nvl(TL.SEQUENCE_NUM,nvl(p.terms_sequence_number,0))
AND DECODE(P.PAYMENT_SCHEDULE_ID,'',0, NVL(T.PRINTING_LEAD_DAYS,0))=0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.party_site_id = party_site.party_site_id
AND B.PARTY_ID = PARTY.PARTY_ID
AND loc.location_id = party_site.location_id
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND NVL(P.AMOUNT_DUE_REMAINING,0) <> 0
AND A.CUST_TRX_TYPE_ID = 1
AND TYPES.TYPE = 'INV'
AND A.TERM_ID = TL.TERM_ID(+)
AND A.TERM_ID = T.TERM_ID(+)
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID(+)
AND A.PRINTING_PENDING = 'Y'
AND NVL(TL.SEQUENCE_NUM, 1) > NVL(A.LAST_PRINTED_SEQUENCE_NUM,0)
MSG-00500: DEBUG: Where 2: A.BILL_TO_CUSTOMER_ID = B.CUST_ACCOUNT_ID
AND P.PAYMENT_SCHEDULE_ID + DECODE(P.CLASS,
'INV', 0,
= COM_ADJ.PAYMENT_SCHEDULE_ID(+)
AND COM_ADJ.SUBSEQUENT_TRX_ID IS NULL
AND 'C' = COM_ADJ.ADJUSTMENT_TYPE(+)
AND A.COMPLETE_FLAG = 'Y'
AND A.CUSTOMER_TRX_ID = P.CUSTOMER_TRX_ID
AND A.CUST_TRX_TYPE_ID = TYPES.CUST_TRX_TYPE_ID
AND L_TYPES.LOOKUP_TYPE = 'INV/CM/ADJ'
AND A.PRINTING_OPTION IN ('PRI', 'REP')
AND L_TYPES.LOOKUP_CODE =
DECODE( TYPES.TYPE,'DEP','INV', TYPES.TYPE)
AND NVL(T.PRINTING_LEAD_DAYS,0) > 0
AND A.BILL_TO_SITE_USE_ID = U_BILL.SITE_USE_ID
AND U_BILL.CUST_ACCT_SITE_ID = A_BILL.CUST_ACCT_SITE_ID
AND A_BILL.PARTY_SITE_ID = PARTY_SITE.PARTY_SITE_ID
AND B.PARTY_ID = PARTY.PARTY_ID
AND LOC.LOCATION_ID = PARTY_SITE.LOCATION_ID
AND NVL(LOC.LANGUAGE,'US') = 'US'
AND NVL(P.TERMS_SEQUENCE_NUMBER,TL.SEQUENCE_NUM)=TL.SEQUENCE_NUM
AND NVL(P.AMOUNT_DUE_REMAINING,0) <> 0
AND A.CUST_TRX_TYPE_ID = 1
AND TYPES.TYPE = 'INV'
AND T.TERM_ID = P.TERM_ID
AND TL.TERM_ID(+) = T.TERM_ID
AND A.PRINTING_PENDING = 'Y'
AND P.TERMS_SEQUENCE_NUMBER > NVL(A.LAST_PRINTED_SEQUENCE_NUM,0)
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Trx No... 1010441
MSG-00100: DEBUG: Get_Country_Description.
MSG-00010: 06:47 1 Transaction: 1010441
MSG-00001: Line type : Line
MSG-00100: DEBUG: Get_Country_Description.
MSG-00100: DEBUG: Get_Country_Description.
MSG-05000: DEBUG: Remit To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: PO Box 849991
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: Dallas
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: TX
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 75284
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name:
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 6
MSG-05000: DEBUG: Height Max: 6
MSG-05000: DEBUG: Remit To Formatted... PO Box 849991
Dallas TX 75284
MSG-05000: DEBUG: Trx No... 1010442
MSG-00100: DEBUG: Get_Country_Description.
MSG-00010: 06:47 2 Transaction: 1010442
MSG-05000: DEBUG: Bill To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 6560 W ROGERS CIR
MSG-05000: DEBUG: Address 2: STE 19
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: BOCA RATON
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: FL
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 33487-2746
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name: THE BRACE SHOP
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name: LORI
MSG-05000: DEBUG: Last Name: ESCALANTE
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Bill To Formatted... LORI ESCALANTE
THE BRACE SHOP
6560 W ROGERS CIR
STE 19
BOCA RATON FL 33487-2746
MSG-05000: DEBUG: Ship To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 7014 E Appleton Circle
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: CENTENNIAL
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: CO
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 80112-1155
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name: Kenneth Grimm
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Ship To Formatted... Kenneth Grimm
7014 E Appleton Circle
CENTENNIAL CO 80112-1155
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00100: DEBUG: Get_Country_Description.
MSG-00100: Oracle Error in call to arp_adds.location_description -6503
MSG-05000: DEBUG: Remit To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: PO Box 849991
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: Dallas
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: TX
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 75284
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name:
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 6
MSG-05000: DEBUG: Height Max: 6
MSG-05000: DEBUG: Remit To Formatted... PO Box 849991
Dallas TX 75284
MSG-05000: DEBUG: Trx No... 1010930
MSG-00100: DEBUG: Get_Country_Description.
MSG-00010: 06:47 506 Transaction: 1010930
MSG-05000: DEBUG: Bill To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 4412 MANILLA ROAD SE
MSG-05000: DEBUG: Address 2: UNIT 7
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: CALGARY
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State:
MSG-05000: DEBUG: Province: ALBERTA
MSG-05000: DEBUG: Postal Code: T2G 4B7
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: CA
MSG-05000: DEBUG: Customer Name: MEDLINES INC DBA PRO CARE MEDICAL LTD
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Bill To Formatted... Attn: Accounts Payable
MEDLINES INC DBA PRO CARE MEDICAL LTD
4412 MANILLA ROAD SE
UNIT 7
CALGARY ALBERTA T2G 4B7
Canada
MSG-05000: DEBUG: Ship To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 4412 MANILLA ROAD SE Unit 7
MSG-05000: DEBUG: Address 2: PH:403 287 0993
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: CALGARY
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: ALBERTA
MSG-05000: DEBUG: Province: ALBERTA
MSG-05000: DEBUG: Postal Code: T2G 4B7
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: CA
MSG-05000: DEBUG: Customer Name: MEDLINES INC DBA PRO CARE MEDICAL LTD
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Ship To Formatted... MEDLINES INC DBA PRO CARE MEDICAL LTD
4412 MANILLA ROAD SE Unit 7
PH:403 287 0993
CALGARY ALBERTA ALBERTA T2G 4B7
Canada
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00001: Line type : Line
MSG-00100: DEBUG: Get_Country_Description.
MSG-05000: DEBUG: Remit To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: PO Box 849991
MSG-05000: DEBUG: Address 2:
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: Dallas
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: TX
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 75284
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name:
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name:
MSG-05000: DEBUG: Last Name:
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 6
MSG-05000: DEBUG: Height Max: 6
MSG-05000: DEBUG: Remit To Formatted... PO Box 849991
Dallas TX 75284
MSG-05000: DEBUG: Bill To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 8206 LEESBURG PIKE
MSG-05000: DEBUG: Address 2: STE 409
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: VIENNA
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: VA
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 22182
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name: NOVA ORTHOPAEDIC AND SPORTS MEDICINE
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name: TAYLOR
MSG-05000: DEBUG: Last Name: CRIGLER
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Bill To Formatted... TAYLOR CRIGLER
NOVA ORTHOPAEDIC AND SPORTS MEDICINE
8206 LEESBURG PIKE
STE 409
VIENNA VA 22182
MSG-05000: DEBUG: Ship To Address....
MSG-05000: DEBUG: Address Style:
MSG-05000: DEBUG: Address 1: 8206 LEESBURG PIKE
MSG-05000: DEBUG: Address 2: STE 409
MSG-05000: DEBUG: Address 3:
MSG-05000: DEBUG: Address 4:
MSG-05000: DEBUG: City: VIENNA
MSG-05000: DEBUG: County:
MSG-05000: DEBUG: State: VA
MSG-05000: DEBUG: Province:
MSG-05000: DEBUG: Postal Code: 22182
MSG-05000: DEBUG: Territory:
MSG-05000: DEBUG: Country_Code: US
MSG-05000: DEBUG: Customer Name: NOVA ORTHOPAEDIC AND SPORTS MEDICINE
MSG-05000: DEBUG: Bill To:
MSG-05000: DEBUG: First Name: TAYLOR
MSG-05000: DEBUG: Last Name: CRIGLER
MSG-05000: DEBUG: Mail Stop:
MSG-05000: DEBUG: Country Code: US
MSG-05000: DEBUG: Country Desc:
MSG-05000: DEBUG: Print Home Flag: N
MSG-05000: DEBUG: Width: 40
MSG-05000: DEBUG: Height Min: 8
MSG-05000: DEBUG: Height Max: 8
MSG-05000: DEBUG: Ship To Formatted... TAYLOR CRIGLER
NOVA ORTHOPAEDIC AND SPORTS MEDICINE
8206 LEESBURG PIKE
STE 409
VIENNA VA 22182
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
MSG-00001: In Line frame trigger
MSG-00001: Line Type: INV Source:OM Invoices
REP-0069: Internal error
REP-57054: In-process job terminated:Finished successfully
MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 106
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: NEW
MSG
Report Builder: Release 10.1.2.3.0 - Production on Tue Jan 22 06:47:00 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 945196.
Review your concurrent request log and/or report output file for more detailed information.
Successfully resubmitted concurrent program XXBREG_RAXINV_NEW_XMLP with request ID 953242 to start at 23-JAN-2013 05:15:00 (ROUTINE=AFPSRS)
Executing request completion options...
Output file size:
13010844
------------- 1) PUBLISH -------------
Beginning post-processing of request 945196 on node EBSAPPPROD at 22-JAN-2013 06:49:36.
Post-processing of request 945196 completed at 22-JAN-2013 06:49:59.
Finished executing request completion options.
Concurrent request completed
Current system time is 22-JAN-2013 06:49:59
Regards,
SmitaHi,
Since you said the behavior is sporadic and also the program was running good in 11i instance, I think its a problem with the data [or select query in the concurrent program] .
Ideal scenario:
1. Upon the concurrent program completing in error the pdf should not be generated in first place, since it misguides the obtained report. [Concurrent Program should be modified accordingly, before calling the pdf generation logic you need to check the status of the concurrent program].
2. It is not likely that the pdf generation should error out upon concurrent program's error, since the concurrent program could have a soft closure of its schema definition [inspite of an uncaught/unhandled exception]
eg:
<schema def>
<Xml element 1> </Xml element 1>
<Xml element 2> </Xml element 2>
<Xml element 3> </Xml element 3>
*_ <while generating elements 4, 5 and so on concurrent program could have errored out, but still the schema definition is valid so the pdf is generated>_*
</schema def>
Solution:
Next time when you get the same behaviour, try running the concurrent program and handle the exception for that scenario, this should resolve your issue.
Regards,
Yuvaraj -
Report Builder 6i is ending in error if we try to add additional column in the data model query
select rpad('a',50,'-') cust_name_inv,
rpad('a',30,'-') cust_no_inv,
rpad('a',30,'-') sal_name, ---added column
rpad('a',4000,'-') sort_field1_inv,
rpad('a',4000,'-') sort_field2_inv,
0 inv_tid_inv,
0 contact_site_id_inv,
rpad('a',60,'-') cust_state_inv,
rpad('a',60,'-') cust_city_inv,
0 addr_id_inv,
0 cust_id_inv,
0 payment_sched_id_inv,
rpad('a',20,'-') class_inv,
sysdate due_date_inv,
0 amt_due_remaining_inv,
rpad('a',30,'-') invnum,
0 days_past_due,
0 amount_adjusted_inv,
0 amount_applied_inv,
0 amount_credited_inv,
sysdate gl_date_inv,
'x' data_converted_inv,
0 ps_exchange_rate_inv,
0 b0_inv,
0 b1_inv,
0 b2_inv,
0 b3_inv,
0 b4_inv,
0 b5_inv,
0 b6_inv,
rpad('a',25,'-') company_inv,
rpad('a',30,'-') cons_billing_number,
rpad('a',32,'-') invoice_type_inv
from dual
where 1=2
UNION ALL
&common_query_inv
We checked the number of columns passed in the lexical parameter, it tallys with the columns in the data model
Any suggestions is welcome to overcome this issue
Thanks
The lexical parameter passes the following query at run time
SELECT SUBSTRB (party.party_name, 1, 50) cust_name_inv,
cust_acct.account_number cust_no_inv,
jr.NAME sal_name,
c.segment1|| ' '|| c.segment2|| ' '|| c.segment3|| ''|| c.segment4||''|| c.segment5|| ''|| c.segment6 sort_field1_inv,
arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') sort_field2_inv,
c.code_combination_id inv_tid_inv,
site.site_use_id contact_site_id_inv,
loc.state cust_state_inv,
loc.city cust_city_inv,
DECODE (:format_detailed,NULL, -1, acct_site.cust_acct_site_id) addr_id_inv,
NVL (cust_acct.cust_account_id, -999) cust_id_inv,
ps.payment_schedule_id payment_sched_id_inv,
ps.CLASS class_inv,
ps.due_date due_date_inv,
DECODE (:c_convert_flag,'Y', ps.acctd_amount_due_remaining, ps.amount_due_remaining) amt_due_remaining_inv,
ps.trx_number invnum,
CEIL (:as_of_date - ps.due_date) days_past_due,
ps.amount_adjusted amount_adjusted_inv,
ps.amount_applied amount_applied_inv,
ps.amount_credited amount_credited_inv,
ps.gl_date gl_date_inv,
DECODE (ps.invoice_currency_code,:functional_currency, NULL,DECODE (ps.exchange_rate, NULL, '*', NULL)) data_converted_inv,
NVL (ps.exchange_rate, 1) ps_exchange_rate_inv,
arpt_sql_func_util.bucket_function (:bucket_line_type_0,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_0,
:bucket_days_to_0,
ps.due_date,
:bucket_category,
:as_of_date
) b0_inv, --------------bucket 1
arpt_sql_func_util.bucket_function (:bucket_line_type_1,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_1,
:bucket_days_to_1,
ps.due_date,
:bucket_category,
:as_of_date
) b1_inv, --------------bucket 2
arpt_sql_func_util.bucket_function (:bucket_line_type_2,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_2,
:bucket_days_to_2,
ps.due_date,
:bucket_category,
:as_of_date
) b2_inv, --------------bucket 3
arpt_sql_func_util.bucket_function (:bucket_line_type_3,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_3,
:bucket_days_to_3,
ps.due_date,
:bucket_category,
:as_of_date
) b3_inv, --------------bucket 4
arpt_sql_func_util.bucket_function (:bucket_line_type_4,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_4,
:bucket_days_to_4,
ps.due_date,
:bucket_category,
:as_of_date
) b4_inv, --------------bucket 5
arpt_sql_func_util.bucket_function (:bucket_line_type_5,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_5,
:bucket_days_to_5,
ps.due_date,
:bucket_category,
:as_of_date
) b5_inv, --------------bucket 6
arpt_sql_func_util.bucket_function (:bucket_line_type_6,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_6,
:bucket_days_to_6,
ps.due_date,
:bucket_category,
:as_of_date
) b6_inv, --------------bucket 7
c.segment1 company_inv,
TO_CHAR (NULL) cons_billing_number,
arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') invoice_type_inv
FROM hz_cust_accounts cust_acct,
hz_parties party,
ar_payment_schedules_all ps,
jtf_rs_salesreps jr,
ra_customer_trx_all ra,
hz_cust_site_uses_all site,
hz_cust_acct_sites_all acct_site,
hz_party_sites party_site,
hz_locations loc,
ra_cust_trx_line_gl_dist_all gld,
ar_dispute_history dh,
gl_code_combinations c
WHERE ps.gl_date <= :as_of_date
AND UPPER (RTRIM (RPAD (:p_in_summary_option_low, 1))) = 'I'
AND ps.customer_site_use_id = site.site_use_id
AND site.cust_acct_site_id = acct_site.cust_acct_site_id
AND acct_site.party_site_id = party_site.party_site_id
AND loc.location_id = party_site.location_id
AND ps.gl_date_closed > :as_of_date
AND DECODE (UPPER (:p_in_currency),
NULL, ps.invoice_currency_code,
UPPER (:p_in_currency)
) = ps.invoice_currency_code
AND gld.account_class = 'REC'
AND gld.latest_rec_flag = 'Y'
AND gld.code_combination_id = c.code_combination_id
AND ps.payment_schedule_id = dh.payment_schedule_id(+)
AND :as_of_date >= NVL (dh.start_date(+), :as_of_date)
AND :as_of_date < NVL (dh.end_date(+), :as_of_date + 1)
AND cust_acct.party_id = party.party_id
AND jr.salesrep_id = ra.primary_salesrep_id
AND ps.customer_id + 0 = cust_acct.cust_account_id
AND ps.customer_trx_id + 0 = gld.customer_trx_id
AND 1 = 1The error is query block consists of inconsistent no of columns
-
AR DATA FLOW (TABLE LEVEL) - ON ACCOUNT CREDITS & CASH RECEIPTS편
제품 : FIN_AR
작성날짜 : 2003-09-16
AR DATA FLOW (TABLE LEVEL) - ON ACCOUNT CREDITS & CASH RECEIPTS편
================================================================
PURPOSE
이 문서에서는 AR table들에 대해 어떻게 data가 들어가는지에 대해
설명한다.
On Account와 Cash Receipt을 기준으로 설명한다.
Explanation
1. On Account Credits
특정 Customer에 대한 Credit정보를 입력했으나, 아직 특정 Invoice에는 Apply되지 않은 정보를 "On Account" credit이라고 한다.
Credit정보가 들어있기 때문에, Credit Memo와 유사하게 table에 저장된다.
Credit Memo와 다른 점은 아래와 같다.
o When first entered the payment schedule will be fully remaining.
o When first entered no records are inserted into AR_RECEIVABLE_APPLI
CATIONS_ALL.
o The line records will have NULL values in
PREVIOUS_CUSTOMER_TRX_ID
PREVIOUS_CUSTOMER_TRX_LINE_ID
o The distribution lines have to be typed in as there is no invoice
to copy them from.
"On Account"는 같은 Supplier상에서는 어떠한 invoice에 대해서 적용이 가능하다는 점에서,
특정 invoice에만 apply가 가능한 Credit Memo와는 다르다.
2. Cash Receipts
Recipt정보가 입력되면, 아래의 table들에 insert된다.
o AR_CASH_RECEIPTS_ALL
o AR_CASH_RECEIPT_HISTORY_ALL
o AR_PAYMENT_SCHEDULES_ALL
o AR_RECEIVABLE_APPLICATIONS_ALL
입력된 Receipt정보가 특정 invoice와 match되면, 추가 record가
AR_RECEIVABLE_APPLICATIONS_ALL에 insert되고, AR_PAYMENT_SCHEDULE_ALL에는 update된다.
| | | |
| RECEIPT |------------------| PAYMENT |
| | | SCHEDULE |
| |
| |
^ ^
/|\ /|\
| | | |
| RECEIPT | |APPLICATIONS|
| HISTORY | | |
2.1 AR_CASH_RECEIPTS_ALL
Receipt에 대한 기본정보가 insert된다. 한 receipt당 한줄이 insert된다.
Key = CASH_RECEIPT_ID (from sequence AR_CASH_RECEIPTS_S)
Important Fields
AMOUNT - Value of receipt in entered currency
RECEIPT_NUMBER - Payment Number entered by user.
STATUS - (APP)lied, (UNAPP)lied, (REV)ersed Payment,
(STOP) payment, (NSF) insufficient funds.
It will only change to APP once the whole
amount of the receipt is applied.
REVERSAL_DATE - NULL unless receipt reversed
PAY_FROM_CUSTOMER - Contains CUSTOMER_ID for RA_CUSTOMERS
2.2 AR_CASH_RECEIPT_HISTORY_ALL
Receipt하나당 한줄의 data가 insert되고, GL로 Posting된 정보가 들어간다.
Receipt이 reverse되면, 새로운 row가 insert된다.
Key = CASH_RECEIPT_HISTORY_ID (from sequence)
Important Fields
CASH_RECEIPT_ID - Foreign key to AR_CASH_RECEIPTS record.
STATUS - CLEARED for manually input receipts.
GL_DATE - Accounting date
ACCOUNT_CODE_COMBINATION_ID - Key to GL_CODE_COMBINATIONS
POSTING_CONTROL_ID - -3 if unposted
REVERSAL_POSTING_CONTROL_ID - NULL unless payment reversed
CURRENT_RECORD_FLAG - Y if this is latest record
PRV_STAT_CASH_RECEIPT_HIST_ID - Key to previous receipt history record.
2.3 AR_PAYMENT_SCHEDULES_ALL
Invoice에 apply된 Total 금액정보가 저장된다.
Key = PAYMENT_SCHEDULE_ID (from sequence)
Important Fields
CUSTOMER_TRX_ID - NULL
CASH_RECEIPT_ID - Foreign key to AR_CASH_RECEIPTS record.
AMOUNT_DUE_ORIGINAL - Total amount of receipt (usually negative)
AMOUNT_DUE_REMAINING - Unapplied amount of receipt.
AMOUNT_APPLIED - How much of this receipt is applied .
STATUS - (OP)en or (CL)osed. Will only be closed if
AMOUNT_DUE_REMAINING is zero.
All of the fields holding LINE, TAX and FREIGHT amounts are NULL.
2.4 AR_RECEIVABLE_APPLICATIONS
Receipt이 처음 생성될때, 한줄의 data가 이 table에 insert되고,
invoice에 대해 Apply혹은 Unapply가발생하면, 두줄씩 새롭게 생성된다.
예를들면, 아래와 같다.
Record 1 UNAPP 700
{ Record 2 UNAPP -200
{ Record 3 APP 200 cross referenced to the Invoice
{ Record 4 UNAPP -500
{ Record 5 APP 500 cross referenced to 2nd Invoice
The sum of the amounts on records that have a particuar status should add up
to the running totals on the payment schedulesi, but with the opposite sign.
i.e. In the example above
AR_PAYMENT_SCHEDULES.AMOUNT_DUE_ORIGINAL = -700
AR_PAYMENT_SCHEDULES.AMOUNT_DUE_REMAINING = 0
AR_PAYMENT_SCHEDULES.AMOUNT_APPLIED = -700
UNAPP = 700 -200 -500 = 0
APP = 200 + 500 = 700
Statuses of these records can be:-
UNAPP - Unapplied
APP - Applied
ACC - On Account
UNID - Unidentified (Customer Not known)
이러한 record내역은 invoice/credit/receipt에 있는 Transaction History form에서 확인할 수 있다.
2.5 AR_PAYMENT_SCHEDULE (Invoice)
Receipt이 특정 invoice에 apply되면, invoice에 대한 Payment Schedule record가 update된다.
remaining amount field 값은 Payment금액만큼 줄어들게 된다.
만약, remaining amount가 "0"가 되면, invoice Payment schedule은 closed상태가 된다.
예를들어, Receipt금액 "200"이 "1175" invoice금액(Tax금액 175가 포함된)에 apply되었다면, Invoice의 Payment Schedule은 아래와 같이 조정된다.
Before After
AMOUNT_DUE_REMAINING 1175.00 975.00
AMOUNT_LINE_ITEMS_REMAINING 1000.00 800.00
TAX_REMAINING 175.00 175.00
FREIGHT_REMAINING 0.00 0.00
Note that receipts are applied in a fixed sequence:-
1. Line Amounts
2. Tax Amounts
3. Freight Amounts
ie The TAX_REMAINING figure will only start to decrease when the
AMOUNT_LINE_ITEMS_REMAINING is zero.
Reference Documents
Note : 29277.1 & 29278.1Hi,
This query works fine for me:
SELECT CR.CASH_RECEIPT_ID,
CR.RECEIPT_NUMBER,
CR.RECEIPT_DATE,
CR.CURRENCY_CODE,
DECODE ( CR.TYPE, 'MISC', NULL, NVL (SUM (DECODE (RA.STATUS, 'ACC', NVL (RA.AMOUNT_APPLIED, 0), 0)), 0)) ON_ACCOUNT_AMOUNT
FROM AR_RECEIVABLE_APPLICATIONS_ALL RA,
AR_CASH_RECEIPTS_ALL CR,
AR_RECEIPT_METHODS RM
WHERE RA.CASH_RECEIPT_ID = CR.CASH_RECEIPT_ID
AND CR.RECEIPT_METHOD_ID = RM.RECEIPT_METHOD_ID
AND CR.ORG_ID = <org_id>
GROUP BY CR.CASH_RECEIPT_ID,
CR.RECEIPT_DATE,
CR.RECEIPT_NUMBER,
RM.NAME,
CR.CURRENCY_CODE,
CR.TYPE order by receipt_date desc
Let me know if it worked.
Octavio -
AR DATA FLOW (TABLE LEVEL) - INVOICE편
제품 : FIN_AR
작성날짜 : 2003-09-16
AR DATA FLOW (TABLE LEVEL) - INVOICE편
=====================================
PURPOSE
이 문서에서는 AR table들에 대해 어떻게 data가 들어가는지에 대해
설명한다.
Invoice transaction을 기준으로 설명한다.
Explanation
1. Invoice
User가 invoice를 입력하면, 아래의 table들에 data가 insert된다.
o RA_CUSTOMER_TRX_ALL (Invoice Header)
o RA_CUSTOMER_TRX_LINES_ALL (Line Details)
o RA_CUST_TRX_LINE_GL_DIST_ALL (Information for posting to GL)
o RA_CUST_TRX_LINES_SALESREPS_ALL (Sales Credit Information)
일단, invoice가 "Complete"되면, 아래의 table에 한줄(혹은 그 이상)이
추가로 Insert된다.
o AR_PAYMENT_SCHEDULES_ALL (Running Totals for Invoice Amounts)
대체로 하나의 invoice는 하나의 Payment schedule record를 가지지만,
만약 할부(Installment)로 Pay처리되는 invoice라면, installment하나당
하나의 Payment schedule record를 가진다.
| | /| |
| TRX |---------------<-| PAYMENT |
| | \| SCHEDULE |
| |
| |
^ -------
/|\ |
------------ |
| | |
| TRX_LINES | |
_| | |
/ ------------ |
| | | |
\__/ | |
^ |
/|\ |
| |
| GL_DIST |
| |
1.1 RA_CUSTOMER_TRX_ALL
Invoice의 Header정보(Customer, Invoice Number, date.. etc)를 담고 있는 table이다.
Invoice하나당 한줄의 정보가 Insert된다.
Key = CUSTOMER_TRX_ID (generated from sequence RA_CUSTOMER_TRX_S)
Important Fields
TRX_NUMBER - User Entered Invoice Number
CUST_TRX_TYPE_ID - Foreign key to RA_CUST_TRX_TYPES
BILL_TO_CUSTOMER_ID - Foreign Key to RA_CUSTOMERS
SHIP_TO_CUSTOMER_ID - Foreign key to RA_CUSTOMERS
TRX_DATE - Invoice Date
COMPLETE_FLAG - Y or N
1.2 RA_CUSTOMER_TRX_LINES_ALL
Invoice의 Line정보(수금 item및 금액, Tax등)가 insert되는 table이다.
Invoice하나당 한줄이상을 가진다.
Key = RA_CUSTOMER_TRX_LINE_ID (from sequence RA_CUSTOMER_TRX_LINES_S)
Important Fields
CUSTOMER_TRX_ID - Foreign key to RA_CUSTOMER_TRX
LINE_TYPE - LINE, TAX, FREIGHT
QUANTITY_INVOICED - Line Quantity
UNIT_SELLING_PRICE - Price per unit
EXTENDED_AMOUNT - Quantity * Price
LINK_TO_CUST_TRX_LINE_ID - Null for LINE, for TAX and FREIGHT lines
contains the RA_CUSTOMER_TRX_LINE_ID of
associated LINE record
1.3 RA_CUST_TRX_LINE_GL_DIST_ALL
GL로 Posting될 정보가 담겨져 있다.
Invoice Line당 한줄 + Invoice Header 한줄로 이루어져 있다.
(예를들어, Invoice의 Line이 총 3줄이라면, RA_CUST_TRX_LINE_GL_DIST_ALL table에는 총 4줄의 정보가 담기게 된다.)
Key = CUST_TRX_LINE_GL_DIST_ID (from sequence)
Important Fields
CUSTOMER_TRX_ID - Foreign key to RA_CUSTOMER_TRX
CUSTOMER_TRX_LINE_ID - Foreign key to RA_CUSTOMER_TRX_LINES or
Null if this relates to Invoice Header.
AMOUNT - Value of distribution - entered currency
ACCOUNTED_AMOUNT - Value of distribution - book currency
CODE_COMBINATION_ID - Foreign key to GL_CODE_COMBINATIONS
POSTING_CONTROL_ID - -3 if unposted
GL_DATE - Accounting date.
GL_POSTED_DATE - Date Invoice posted to GL.
1.4 RA_CUST_TRX_LINE_SALESREPS_ALL
해당 invoice가 입력될때 함께 입력된 Sales Person에 대한 정보가
담겨져 있다.
1.5 AR_PAYMENT_SCHEDULES_ALL
해당 invoice에 대해서 Line, Tax, 운송비 등 각각의 항목에 대한 Total값과
Remaining값을 담고 있다.
대체로 Invoice당 한줄이 insert된다.
Key = PAYMENT_SCHEDULE_ID (from sequence AR_PAYMENT_SCHEDULES_S)
Important Fields
CUSTOMER_TRX_ID - Foreign key to RA_CUSTOMER_TRX
STATUS - (OP)en or (CL)losed
ACTUAL_DATE_CLOSED - 31-DEC-4712 if still open, otherwise
date payment schedule closed.
GL_DATE_CLOSED - 31-DEC-4712 if still open, otherwise the
gl date of the closing transaction.
AMOUNT_DUE_ORIGINAL - Invoice Total Amount
AMOUNT_DUE_REMAINING - Total Amount outstanding for Invoice.
AMOUNT_LINE_ITEMS_ORIGINAL - Sum of Invoice Line amounts.
AMOUNT_LINE_ITEMS_REMAINING - Outstanding Line amounts.
TAX_ORIGINAL - Total Tax for Invoice.
TAX_REMAINING - Outstanding Tax for Invoice
FREIGHT_ORIGINAL - Total Freight For Invoice
FREIGHT_REMAINING - Outstanding Freight
AMOUNT_APPLIED - Total payments applied to this Invoice.
AMOUNT_CREDITED - Total Credit Memos applied.
AMOUNT_ADJUSTED - Total value of adjustments.
The payment schedule should balance within itself, ie the following
calculations
should be true:-
AMOUNT_DUE_ORIGINAL = AMOUNT_LINE_ITEMS_ORIGINAL
+ TAX_ORIGINAL
+ FREIGHT_ORIGINAL
AMOUNT_DUE_REMAINING = AMOUNT_LINE_ITEMS_REMAINING
+ TAX_REMAINING
+ FREIGHT_REMAINING
AMOUNT_DUE_ORIGINAL = AMOUNT_DUE_REMAINING
+ AMOUNT_APPLIED
- AMOUNT_CREDITED
+ AMOUNT_ADJUSTED
Reference Documents
Note : 29277.1Hello,
The basic flow of data is
ERP tables - source snapshots - source views (eg MRP_AP%) - staging tables (MSC_ST%) - ODS tables ( MSC%)
Check out note 412375.1. This is the flow for sales order data for ASCP.
regards
Geert
Maybe you are looking for
-
Deployment Workbench - how to capture an image after customisation?
I have deployed Vista to a machine using WinPE (Created through Workbench) and chose the option when deploying "Prepare for capture" I then customised Vista - in this case removing the Fax applications and ran Sysprep with OOBE, Generalise and Shutdo
-
How To Get Title Information to appear in iPhoto Book ?
Is there a book format that allows the title information to appear in the pages of a book ? I would like to use " Family Album " format. Or any format that will allow the titles I have created to appear on the page of the book.
-
Here we go again. Problem running virus scan
I kept getting this error on one particular article a couple of days ago and now it's back again: I keep trying and I cannot get this updated. I've already turned the files over to Adobe and they found nothing. I was working fine yesterday and now I'
-
How to copy and paste a single pixel
How to copy and paste a single pixel I want to copy a single pixel and then paste it in the position of another pixel in the same image. (This is in effect changing the colour of the target pixel, isn't it. But in my case copying an existing pixel se
-
Upgrade to Lion: Option-click "hide" command now broken in Adobe programs
In the Mac world, clicking outside the active window while holding the option button hides the active window. After upgrading to Lion, I am experiencing a bug in all Adobe programs; option-clicking outside the window will hide the program, but will l