SELECT haou.name ou_name,
c.customer_number,
c.customer_name,
g.party_site_number,
d.location,
a.overall_credit_limit,
d.site_use_id,
SUM (e.amount_due_remaining) credit_balance
FROM HZ_CUST_PROFILE_AMTS a,
HZ_CUST_ACCOUNTS b,
ar_customers c,
hz_cust_site_uses_all d,
ar_payment_schedules_all e,
hz_cust_acct_sites_all f,
hz_party_sites g,
hr_all_organization_units haou
WHERE overall_credit_limit IS NOT NULL
AND a.cust_account_id = b.cust_account_id
AND b.account_number = c.customer_number
AND a.site_use_id = d.site_use_id
AND c.customer_id = e.customer_id
AND d.site_use_id = e.customer_site_use_id
--and c.customer_number = :customer_number
AND d.cust_acct_site_id = f.cust_acct_site_id
AND g.party_site_id = f.party_site_id
AND a.overall_credit_limit is not null
and a.overall_credit_limit not in (0,1)
--AND e.org_id = 101
AND haou.organization_id=e.org_id
GROUP BY c.customer_name,
c.customer_number,
d.site_use_id,
d.location,
a.overall_credit_limit,
g.party_site_number,
haou.name
ORDER BY haou.name, CUSTOMER_NAME;
References:
http://erpqueries.blogspot.com/2013/11/r12-query-to-check-credit-limit-of.html
Nice post, very interesting to read and understand, hope post more blogs with more information Thank you....................................Please contact us for Oracle R12 Financials Training in Bangalore details in our Erptree Training Institute
ReplyDeleteInteresting Post. It is really Nice and lovely post. keep it up. keep blogging. otherwise anyone wants to learn SAS training course
ReplyDeleteIBM Training in Bangalore
Thank you for sharing valuable comments for us its very incredible post to whom looking for a particular course if any one who want to learn tally core to advance
ReplyDeleteOracle apps Training in Bangalore
Information was good,i like your post.Looking forward for more on this topic.
ReplyDeleteOracle Apps Finance training in bangalore