Oracle EBS AR 客户取数SQL

Posted jenrry

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle EBS AR 客户取数SQL相关的知识,希望对你有一定的参考价值。

SELECT acct.cust_account_id,
       acct.party_id,
       acct.account_number,
       party.party_name,
       lkp1.meaning                    party_type,
       profile.cust_account_profile_id,
       acct.account_name,
       party.party_number,
       party.category_code,
       lkp.meaning                     category,
       party.jgzz_fiscal_code,
       party.ATTRIBUTE11
  FROM hz_cust_accounts     acct,
       hz_parties           party,
       hz_customer_profiles profile,
       fnd_lookup_values    lkp,
       ar_lookups           lkp1
 WHERE /*acct.cust_account_id = :1
   AND*/ acct.party_id = party.party_id
   AND acct.cust_account_id = profile.cust_account_id
   AND profile.site_use_id IS NULL
   AND lkp1.lookup_type = PARTY_TYPE
   AND lkp1.lookup_code = party.party_type
   AND trunc(SYSDATE) BETWEEN trunc(lkp1.start_date_active) AND nvl(trunc(lkp1.end_date_active),
                                                                    trunc(SYSDATE))
   AND party.category_code = lkp.lookup_code(+)
   AND lkp.lookup_type(+) = CUSTOMER_CATEGORY
   AND lkp.language(+) = userenv(LANG)

 

以上是关于Oracle EBS AR 客户取数SQL的主要内容,如果未能解决你的问题,请参考以下文章

Oracle EBS AR 更新客户

Oracle EBS AR 更新客户组织层

Oracle EBS AR 更新客户账户层

Oracle EBS AR 更新客户配置文件

转:Oracle EBS订单的流程(Order->AR)

ORACLE EBS里怎么通过api创建ar事务处理