DBA Data[Home] [Help]

VIEW: APPS.AR_CM_SHIP_TO_CUST_S_V

Source

View Text - Preformatted

SELECT ca5.account_number cm_ship_cust_account_number ,ca5.customer_type cm_ship_cust_type ,ca5.cust_account_id cm_ship_cust_account_id ,ca5.global_attribute1 cm_ship_cust_global_attr1 ,ca5.global_attribute10 cm_ship_cust_global_attr10 ,ca5.global_attribute12 cm_ship_cust_global_attr12 ,ca5.global_attribute9 cm_ship_cust_global_attr9 ,ca5.global_attribute_category cm_ship_cust_global_attr_cat ,ca5.npa_number cm_ship_cust_npa_number ,p5.category_code cm_ship_cust_cat_code ,p5.city cm_ship_cust_city ,p5.country cm_ship_cust_country ,p5.county cm_ship_cust_county ,p5.group_type cm_ship_cust_group_type ,p5.gsa_indicator_flag cm_ship_cust_gsa_flag ,p5.jgzz_fiscal_code cm_ship_cust_fiscal_code ,p5.known_as cm_ship_cust_alternate_name ,p5.party_id cm_ship_cust_party_id ,p5.party_name cm_ship_cust_party_name ,p5.party_number cm_ship_cust_party_number ,p5.party_type cm_ship_cust_party_type ,p5.postal_code cm_ship_cust_postal_code ,p5.province cm_ship_cust_province ,p5.state cm_ship_cust_state ,p5.tax_reference cm_ship_cust_tax_reference ,l.line_number line_number ,l.ledger_id ledger_id ,l.language language ,l.event_id event_id FROM hz_cust_accounts ca5 ,hz_parties p5 ,ar_xla_lines_extract l WHERE ca5.cust_account_id = l.ship_customer_id AND l.level_flag = 'H' AND l.event_class_code = 'CREDIT_MEMO' AND ca5.party_id = p5.party_id
View Text - HTML Formatted

SELECT CA5.ACCOUNT_NUMBER CM_SHIP_CUST_ACCOUNT_NUMBER
, CA5.CUSTOMER_TYPE CM_SHIP_CUST_TYPE
, CA5.CUST_ACCOUNT_ID CM_SHIP_CUST_ACCOUNT_ID
, CA5.GLOBAL_ATTRIBUTE1 CM_SHIP_CUST_GLOBAL_ATTR1
, CA5.GLOBAL_ATTRIBUTE10 CM_SHIP_CUST_GLOBAL_ATTR10
, CA5.GLOBAL_ATTRIBUTE12 CM_SHIP_CUST_GLOBAL_ATTR12
, CA5.GLOBAL_ATTRIBUTE9 CM_SHIP_CUST_GLOBAL_ATTR9
, CA5.GLOBAL_ATTRIBUTE_CATEGORY CM_SHIP_CUST_GLOBAL_ATTR_CAT
, CA5.NPA_NUMBER CM_SHIP_CUST_NPA_NUMBER
, P5.CATEGORY_CODE CM_SHIP_CUST_CAT_CODE
, P5.CITY CM_SHIP_CUST_CITY
, P5.COUNTRY CM_SHIP_CUST_COUNTRY
, P5.COUNTY CM_SHIP_CUST_COUNTY
, P5.GROUP_TYPE CM_SHIP_CUST_GROUP_TYPE
, P5.GSA_INDICATOR_FLAG CM_SHIP_CUST_GSA_FLAG
, P5.JGZZ_FISCAL_CODE CM_SHIP_CUST_FISCAL_CODE
, P5.KNOWN_AS CM_SHIP_CUST_ALTERNATE_NAME
, P5.PARTY_ID CM_SHIP_CUST_PARTY_ID
, P5.PARTY_NAME CM_SHIP_CUST_PARTY_NAME
, P5.PARTY_NUMBER CM_SHIP_CUST_PARTY_NUMBER
, P5.PARTY_TYPE CM_SHIP_CUST_PARTY_TYPE
, P5.POSTAL_CODE CM_SHIP_CUST_POSTAL_CODE
, P5.PROVINCE CM_SHIP_CUST_PROVINCE
, P5.STATE CM_SHIP_CUST_STATE
, P5.TAX_REFERENCE CM_SHIP_CUST_TAX_REFERENCE
, L.LINE_NUMBER LINE_NUMBER
, L.LEDGER_ID LEDGER_ID
, L.LANGUAGE LANGUAGE
, L.EVENT_ID EVENT_ID
FROM HZ_CUST_ACCOUNTS CA5
, HZ_PARTIES P5
, AR_XLA_LINES_EXTRACT L
WHERE CA5.CUST_ACCOUNT_ID = L.SHIP_CUSTOMER_ID
AND L.LEVEL_FLAG = 'H'
AND L.EVENT_CLASS_CODE = 'CREDIT_MEMO'
AND CA5.PARTY_ID = P5.PARTY_ID