Oracle Applications – How to find the receipt stuck in between stages?

Posted by Jiltin     9 January, 2009    573 views   

Many times, the receipts are stuck in between stages.
If these are noticed, all the receipts are stuck, and invoices many not be closed.
Here is the sql to find the receipt stuck in between stages.
This is working code, verified in oracle 11i financial applications

/*****************
Author: Jay

******************/

SELECT  ab.org_id,
        ab.name,
        ab.batch_applied_status ,
        ab.batch_date,
        count(*)
FROM AR_PAYMENT_SCHEDULES_ALL aps,  ar_batches_all ab
WHERE 1=1
 —-   uncomment this optional clause for faster response
 —-   and to_char(ab.batch_date,’DD-MON-YYYY’) >= ‘01-JAN-2008′
AND ab.batch_applied_status NOT IN ( ‘COMPLETED_APPROVAL’,‘PROCESSED’,‘COMPLETED_FORMAT’)
AND ab.type=‘CREATION’
AND aps.selected_for_receipt_batch_id = ab.batch_id
GROUP BY ab.org_id,ab.name,ab.batch_applied_status,ab.batch_date;

Following Google Searches Lead To This Post: selected_for_receipt_batch_id + oracle ar

Post to Twitter  Post to Delicious  Post to Digg    Post to StumbleUpon

Categories : 11i Scripts, Oracle Applications, Receivables Tags : , , ,

Comments

No comments yet.


Leave a comment

(required)

(required)