Pages

OracleEBSpro is purely for knowledge sharing and learning purpose, with the main focus on Oracle E-Business Suite Product and other related Oracle Technologies.

I'm NOT responsible for any damages in whatever form caused by the usage of the content of this blog.

I share my Oracle knowledge through this blog. All my posts in this blog are based on my experience, reading oracle websites, books, forums and other blogs. I invite people to read and suggest ways to improve this blog.


Tuesday, September 13, 2016

R12 query to check Credit Limit of a customer

 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

4 comments:

  1. 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

    ReplyDelete
  2. Interesting Post. It is really Nice and lovely post. keep it up. keep blogging. otherwise anyone wants to learn SAS training course
    IBM Training in Bangalore

    ReplyDelete
  3. 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
    Oracle apps Training in Bangalore

    ReplyDelete
  4. Information was good,i like your post.Looking forward for more on this topic.
    Oracle Apps Finance training in bangalore

    ReplyDelete