0% found this document useful (0 votes)
2 views

O2C Tables

The document contains a series of SQL queries that retrieve data from various tables related to customers, accounts, orders, and deliveries. It includes specific queries for customer details, order statuses, and inventory items. The queries are structured to extract information based on unique identifiers such as customer numbers, account IDs, and order numbers.

Uploaded by

sunny singh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

O2C Tables

The document contains a series of SQL queries that retrieve data from various tables related to customers, accounts, orders, and deliveries. It includes specific queries for customer details, order statuses, and inventory items. The queries are structured to extract information based on unique identifiers such as customer numbers, account IDs, and order numbers.

Uploaded by

sunny singh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

SELECT * FROM AR_CUSTOMERS WHERE CUSTOMER_NUMBER = '6084';

SELECT * FROM HZ_CUST_ACCOUNTS WHERE CUST_ACCOUNT_ID = 126871;

SELECT * FROM HZ_CUST_ACCT_SITES_ALL WHERE CUST_ACCOUNT_ID = 126871;

SELECT * FROM HZ_CUST_SITE_USES_ALL WHERE CUST_ACCT_SITE_ID = 11839;

SELECT * FROM HR_OPERATING_UNITS WHERE ORGANIZATION_ID = 204;

SELECT * FROM ORG_ORGANIZATION_DEFINITIONS WHERE ORGANIZATION_ID = 207;

SELECT * FROM HZ_PARTIES WHERE PARTY_ID = 497201;

SELECT * FROM HZ_PARTY_SITES WHERE PARTY_ID = 497201 AND PARTY_SITE_ID = 267883;

SELECT * FROM HZ_LOCATIONS WHERE LOCATION_ID = 27836;

-------------------------

14831 - SHIP TO
14827 - BILL TO

SELECT * FROM QP_LIST_HEADERS WHERE LIST_HEADER_ID = 1000;

select * from qp_list_lines where list_header_id = 1000 AND LIST_LINE_ID = 283311;

select LIST_HEADER_ID, LIST_LINE_ID from qp_pricing_attributes where


product_attr_value = '299208' and product_attribute_context = 'ITEM';

SELECT * FROM MTL_SYSTEM_ITEMS_B WHERE INVENTORY_ITEM_ID = 299208;

SELECT * FROM qp_list_lines_v;

SELECT FLOW_STATUS_CODE FROM OE_ORDER_LINES_ALL WHERE HEADER_ID = 408787;

select DELIVERY_DETAIL_ID, SHIPPED_QUANTITY from wsh_delivery_details where


source_header_id = 402787;

select * from wsh_delivery_assignments where delivery_detail_id = 6245052;

select * from wsh_new_deliveries WHERE DELIVERY_ID = 6266831;

select * from mtl_onhand_quantities where inventory_item_id = 299208 ;

SELECT * FROM RA_INTERFACE_LINES_ALL WHERE INTERFACE_line_attribute1 = '69448';

select * from ra_customer_trx_all where INTERFACE_header_attribute1 = '69448';

select interface_line_attribute3 from ra_customer_trx_lines_all where


customer_trx_id = 1234196;

SELECT HEADER_ID,FLOW_STATUS_CODE FROM OE_ORDER_HEADERS_ALL WHERE ORDER_NUMBER =


'69448';

select * from oe_order_lines_all where header_id = 402787;


SELECT * FROM AR_CASH_RECEIPTS_ALL WHERE RECEIPT_NUMBER = '20250001';

SELECT * FROM AR_RECEIVABLE_APPLICATIONS_ALL WHERE CASH_RECEIPT_ID = 232296;

You might also like