This query is used to get Receivable AR credit memo details in Oracle Apps R12, we create credit memo in AR to reduce the liability for the customer, AR Credit memo will reduce down the outstanding for the customer.
Some important Receivable AR credit memo table in Oracle Apps R12
ORG_ORGANIZATION_DEFINITIONS
AR_CUSTOMERS
HZ_CUST_ACCOUNTS
HZ_PARTIES
RA_CUST_TRX_TYPES_ALL
HZ_CUST_SITE_USES_ALL
RA_CUSTOMER_TRX_ALL
RA_CUSTOMER_TRX_LINES_ALL
RA_CUST_TRX_LINE_GL_DIST_ALL
1234567891011121314151617181920212223242526272829303132333435363738394041424344 SELECT RCT.TRX_NUMBER "TRX NUMBER",RCT.TRX_DATE "TRX DATE",RCG.GL_DATE,RCT.PURCHASE_ORDER,OOD.ORGANIZATION_NAME,HCSUA.LOCATION,RCL.DESCRIPTION,HCA.ACCOUNT_NUMBER,HP.PARTY_NAME,RTT.NAME TRANSACTION_NAME,DECODE(RTT.TYPE,'CM','Credit Memo',RTT.TYPE) TRANSACTION_TYPE,RCL.LINE_TYPE AR_LINE_TYPE,sum((DECODE(RCT.INVOICE_CURRENCY_CODE,'INR',RCG.AMOUNT*1,RCG.AMOUNT*RCT.EXCHANGE_RATE))) TOTAL_INV_AMOUNTFROMapps.ORG_ORGANIZATION_DEFINITIONS OOD,apps.ar_customers ac,apps.HZ_CUST_ACCOUNTS HCA,apps.HZ_PARTIES HP,apps.RA_CUST_TRX_TYPES_ALL RTT,apps.HZ_CUST_SITE_USES_ALL HCSUA,apps.RA_CUSTOMER_TRX_ALL RCT,apps.RA_CUSTOMER_TRX_LINES_ALL RCL,apps.RA_CUST_TRX_LINE_GL_DIST_ALL RCGWHERERCT.CUSTOMER_TRX_ID = RCL.CUSTOMER_TRX_IDAND RCL.CUSTOMER_TRX_LINE_ID = RCG.CUSTOMER_TRX_LINE_IDAND RCT.BILL_TO_CUSTOMER_ID = HCA.CUST_ACCOUNT_IDand HCA.CUST_ACCOUNT_ID=ac.customer_idAND HCA.PARTY_ID = HP.PARTY_IDAND RTT.TYPE='CM'AND RCT.CUST_TRX_TYPE_ID = RTT.CUST_TRX_TYPE_IDAND TO_NUMBER(RCT.INTERFACE_HEADER_ATTRIBUTE10) = OOD.ORGANIZATION_ID (+)AND RCT.BILL_TO_SITE_USE_ID=HCSUA.SITE_USE_IDGROUP BYRCT.CUSTOMER_TRX_ID,RCT.TRX_NUMBER,RCT.CUST_TRX_TYPE_ID,RCT.TRX_DATE,RCG.GL_DATE,RCT.CUSTOMER_TRX_ID,RCT.PURCHASE_ORDER,OOD.ORGANIZATION_NAME,RCL.DESCRIPTION,HCA.ACCOUNT_NUMBER,HP.PARTY_NAME,HCSUA.LOCATION,RTT.NAME,RTT.TYPE,RCL.LINE_TYPE;
No comments:
Post a Comment
comments are welcome