OM AND AR
**********
OE_ORDER_HEADERS_ALL OE_ORDER_LINES_ALL
HEADER_ID HEADER_ID
OE_ORDER_HEADERS_ALL RA_CUSTOMER_TRX_LINES_ALL
TO_CHAR(ORDER_NUMBER) INTERFACE_LINE_ATTRIBUTE1
OE_ORDER_HEADERS_ALL RA_CUSTOMER_TRX_ALL
TO_CHAR(ORDER_NUMBER) INTERFACE_header_ATTRIBUTE1
oe_order_headers_all hz_cust_accounts_all
sold_to_org_id cust_account_id
oe_order_headers_all hz_cust_accounts
sold_to_org_id cust_account_id
oe_order_headers_all WSH_DELIVERY_DETAILS
HEADER_ID SOURCE_LINE_ID
OE_ORDER_LINES_ALL RA_CUSTOMER_TRX_LINES_ALL
TO_CHAR(LINE_ID) INTERFACE_LINE_ATTRIBUTE6
OE_ORDER_LINES_ALL RA_CUSTOMER_TRX_LINES_ALL
REFERENCE_CUSTOMER_TRX_LINE_ID CUSTOMER_TRX_LINE_ID
OE_ORDER_LINES_ALL RA_CUSTOMER_TRX_ALL
customer_trx_id line_id
OE_ORDER_LINES_ALL WSH_DELIVERY_DETAILS
LINE_ID SOURCE_LINE_ID
OE_ORDER_LINES_ALL OE_ORDER_HOLDS
HEADER_ID HEADER_ID
LINE_ID LINE_ID
OE_ORDER_LINES_ALL MTL_SYSTEM_ITEMS_B
SHIP_FROM_ORG_ID ORGANIZATION_ID
OE_ORDER_HOLDS WSH_DELIVERY_DETAILS
HEADER_ID SOURCE_HEADER_ID
LINE_ID SOURCE_LINE_ID
WSH_DELIVERY_DETAILS WSH_NEW_DELIVERIES
DELIVERY_ID DELIVERY_ID
ra_customer_trx_all jai_tax_lines
customer_trx_id trx_id
ra_customer_trx_all hz_cust_accounts
bill_to_customer_id cust_account_id
ra_customer_trx_all ra_customer_trx_lines_all
customer_trx_id customer_trx_id
ra_customer_trx_all hz_cust_site_uses_all
bill_to_site_use_id site_use_id
RA_CUSTOMER_TRX_ALL RA_CUST_TRX_TYPES_ALL
CUST_TRX_TYPE_ID CUST_TRX_TYPE_ID
RA_CUSTOMER_TRX_ALL RA_CUST_TRX_LINE_GL_DIST_ALL
customer_trx_id customer_trx_id
RA_CUSTOMER_TRX_ALL RA_TERMS
TERM_ID TERM_ID
ra_customer_trx_lines_all jai_tax_lines
customer_trx_line_id trx_line_id
ra_customer_trx_lines_all mh_system_items
inventory_item_id inventory_item_id
ra_customer_trx_lines_all mtl_uom_conversions
inventory_item_id inventory_item_id
hz_parties hz_cust_accounts
party_id party_id
hz_parties HZ_PARTY_SITES
party_id party_id
hz_parties hz_cust_accounts_all
party_id party_id
HZ_PARTIES HZ_LOCATIONS
LOCATION_ID LOCATION_ID
hz_cust_site_uses_all jtf_rs_salesref
primary_salesrep_id salesrep_id
hz_cust_site_uses_all hz_cust_acct_site_all
cust_acct_site_id cust_acct_site_id
hz_cust_site_uses_all so_price_list
price_list_id price_list_id
hz_cust_accounts hz_cust_acct_site_all
cust_account_id cust_account_id
HZ_CUST_ACCOUNTS_ALL HZ_CUST_ACCT_SITES_ALL
CUST_ACCOUNT_ID CUST_ACCOUNT_ID
OE_TRANSACTION_TYPES_ALL QP_LIST_HEADERS_B
PRICE_LIST_ID LIST_HEADER_ID
QP_LIST_HEADERS_B OE_ORDER_HEADERS_ALL
CURRENCY_CODE TRANSACTIONAL_CURR_CODE
OM AND SHIPPING
*****************
OE_ORDER_HEADERS_ALL WSH_DELIVARY_DETAILS
HEADER_ID SOURCE_HEADER_ID
OE_ORDER_LINES_ALL WSH_DELIVARY_DETAILS
LINE_ID SOURCE_LINE_ID
AP AND AR
**********
HZ_PARTIES AP_INVOICES_ALL
LINE_ID LAST_OE_ORDER_LINE_ID
FROM ap_invoices_all a,
ap_invoice_lines_all b,
ap_suppliers d,
ap_supplier_sites_all e,
ap_invoice_distributions_all c,
gl_code_combinations_kfv g,
jai_tax_lines f
WHERE a.invoice_id = b.invoice_id
AND b.invoice_id=c.invoice_id
and b.line_number=c.invoice_line_number
AND g.code_combination_id = c.dist_code_combination_id
AND NVL(b.cancelled_flag,0) <>'Y'
AND a.invoice_date BETWEEN :FDT AND :TDT
AND INVOICE_TYPE_LOOKUP_CODE='STANDARD'
AND a.vendor_id = d.vendor_id
AND d.vendor_id=e.vendor_id
AND a.vendor_site_id = e.vendor_site_id
AND b.invoice_id=f.trx_id
AND b.line_number=f.trx_line_id
FROM RA_CUSTOMER_TRX_ALL RCTA,
RA_CUSTOMER_TRX_LINES_ALL RCTLA,
RA_CUST_TRX_TYPES_ALL rctt,
AR_PAYMENT_SCHEDULES_ALL arp,
HZ_CUST_ACCOUNTS_ALL HCA,
HZ_PARTIES HP,
MTL_SYSTEM_ITEMS_B msi,
OE_ORDER_LINES_ALL ool,
OE_ORDER_HEADERS_ALL ooh
WHERE rcta.customer_trx_id = rctla.customer_trx_id
AND msi.inventory_item_id = rctla.inventory_item_id
AND msi.organization_id = 116
AND rcta.cust_trx_type_id = rctt.cust_trx_type_id
AND arp.customer_trx_id = rcta.customer_trx_id
AND rctla.line_type = 'LINE'
AND rcta.org_id = rctla.org_id
AND rcta.bill_to_customer_id = hca.cust_account_id
AND hca.party_id = hp.party_id
AND rctla.interface_line_attribute6 = ool.line_id
AND ool.header_id = ooh.header_id
**********
OE_ORDER_HEADERS_ALL OE_ORDER_LINES_ALL
HEADER_ID HEADER_ID
OE_ORDER_HEADERS_ALL RA_CUSTOMER_TRX_LINES_ALL
TO_CHAR(ORDER_NUMBER) INTERFACE_LINE_ATTRIBUTE1
OE_ORDER_HEADERS_ALL RA_CUSTOMER_TRX_ALL
TO_CHAR(ORDER_NUMBER) INTERFACE_header_ATTRIBUTE1
oe_order_headers_all hz_cust_accounts_all
sold_to_org_id cust_account_id
oe_order_headers_all hz_cust_accounts
sold_to_org_id cust_account_id
oe_order_headers_all WSH_DELIVERY_DETAILS
HEADER_ID SOURCE_LINE_ID
OE_ORDER_LINES_ALL RA_CUSTOMER_TRX_LINES_ALL
TO_CHAR(LINE_ID) INTERFACE_LINE_ATTRIBUTE6
OE_ORDER_LINES_ALL RA_CUSTOMER_TRX_LINES_ALL
REFERENCE_CUSTOMER_TRX_LINE_ID CUSTOMER_TRX_LINE_ID
OE_ORDER_LINES_ALL RA_CUSTOMER_TRX_ALL
customer_trx_id line_id
OE_ORDER_LINES_ALL WSH_DELIVERY_DETAILS
LINE_ID SOURCE_LINE_ID
OE_ORDER_LINES_ALL OE_ORDER_HOLDS
HEADER_ID HEADER_ID
LINE_ID LINE_ID
OE_ORDER_LINES_ALL MTL_SYSTEM_ITEMS_B
SHIP_FROM_ORG_ID ORGANIZATION_ID
OE_ORDER_HOLDS WSH_DELIVERY_DETAILS
HEADER_ID SOURCE_HEADER_ID
LINE_ID SOURCE_LINE_ID
WSH_DELIVERY_DETAILS WSH_NEW_DELIVERIES
DELIVERY_ID DELIVERY_ID
ra_customer_trx_all jai_tax_lines
customer_trx_id trx_id
ra_customer_trx_all hz_cust_accounts
bill_to_customer_id cust_account_id
ra_customer_trx_all ra_customer_trx_lines_all
customer_trx_id customer_trx_id
ra_customer_trx_all hz_cust_site_uses_all
bill_to_site_use_id site_use_id
RA_CUSTOMER_TRX_ALL RA_CUST_TRX_TYPES_ALL
CUST_TRX_TYPE_ID CUST_TRX_TYPE_ID
RA_CUSTOMER_TRX_ALL RA_CUST_TRX_LINE_GL_DIST_ALL
customer_trx_id customer_trx_id
RA_CUSTOMER_TRX_ALL RA_TERMS
TERM_ID TERM_ID
ra_customer_trx_lines_all jai_tax_lines
customer_trx_line_id trx_line_id
ra_customer_trx_lines_all mh_system_items
inventory_item_id inventory_item_id
ra_customer_trx_lines_all mtl_uom_conversions
inventory_item_id inventory_item_id
hz_parties hz_cust_accounts
party_id party_id
hz_parties HZ_PARTY_SITES
party_id party_id
hz_parties hz_cust_accounts_all
party_id party_id
HZ_PARTIES HZ_LOCATIONS
LOCATION_ID LOCATION_ID
hz_cust_site_uses_all jtf_rs_salesref
primary_salesrep_id salesrep_id
hz_cust_site_uses_all hz_cust_acct_site_all
cust_acct_site_id cust_acct_site_id
hz_cust_site_uses_all so_price_list
price_list_id price_list_id
hz_cust_accounts hz_cust_acct_site_all
cust_account_id cust_account_id
HZ_CUST_ACCOUNTS_ALL HZ_CUST_ACCT_SITES_ALL
CUST_ACCOUNT_ID CUST_ACCOUNT_ID
OE_TRANSACTION_TYPES_ALL QP_LIST_HEADERS_B
PRICE_LIST_ID LIST_HEADER_ID
QP_LIST_HEADERS_B OE_ORDER_HEADERS_ALL
CURRENCY_CODE TRANSACTIONAL_CURR_CODE
OM AND SHIPPING
*****************
OE_ORDER_HEADERS_ALL WSH_DELIVARY_DETAILS
HEADER_ID SOURCE_HEADER_ID
OE_ORDER_LINES_ALL WSH_DELIVARY_DETAILS
LINE_ID SOURCE_LINE_ID
AP AND AR
**********
HZ_PARTIES AP_INVOICES_ALL
LINE_ID LAST_OE_ORDER_LINE_ID
FROM ap_invoices_all a,
ap_invoice_lines_all b,
ap_suppliers d,
ap_supplier_sites_all e,
ap_invoice_distributions_all c,
gl_code_combinations_kfv g,
jai_tax_lines f
WHERE a.invoice_id = b.invoice_id
AND b.invoice_id=c.invoice_id
and b.line_number=c.invoice_line_number
AND g.code_combination_id = c.dist_code_combination_id
AND NVL(b.cancelled_flag,0) <>'Y'
AND a.invoice_date BETWEEN :FDT AND :TDT
AND INVOICE_TYPE_LOOKUP_CODE='STANDARD'
AND a.vendor_id = d.vendor_id
AND d.vendor_id=e.vendor_id
AND a.vendor_site_id = e.vendor_site_id
AND b.invoice_id=f.trx_id
AND b.line_number=f.trx_line_id
FROM RA_CUSTOMER_TRX_ALL RCTA,
RA_CUSTOMER_TRX_LINES_ALL RCTLA,
RA_CUST_TRX_TYPES_ALL rctt,
AR_PAYMENT_SCHEDULES_ALL arp,
HZ_CUST_ACCOUNTS_ALL HCA,
HZ_PARTIES HP,
MTL_SYSTEM_ITEMS_B msi,
OE_ORDER_LINES_ALL ool,
OE_ORDER_HEADERS_ALL ooh
WHERE rcta.customer_trx_id = rctla.customer_trx_id
AND msi.inventory_item_id = rctla.inventory_item_id
AND msi.organization_id = 116
AND rcta.cust_trx_type_id = rctt.cust_trx_type_id
AND arp.customer_trx_id = rcta.customer_trx_id
AND rctla.line_type = 'LINE'
AND rcta.org_id = rctla.org_id
AND rcta.bill_to_customer_id = hca.cust_account_id
AND hca.party_id = hp.party_id
AND rctla.interface_line_attribute6 = ool.line_id
AND ool.header_id = ooh.header_id
No comments:
Post a Comment