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

FACTS SQL's

The document contains SQL queries to count records from various Oracle E-Business Suite tables where certain key fields are not equal to 0 or empty. Specifically, it checks records from tables related to general ledger balances, other accounting transactions, budgeting, purchase requisitions, purchase orders, purchase receipts, and accounting budgets. The queries ensure that important master data like organizations, calendars, accounts are populated correctly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views

FACTS SQL's

The document contains SQL queries to count records from various Oracle E-Business Suite tables where certain key fields are not equal to 0 or empty. Specifically, it checks records from tables related to general ledger balances, other accounting transactions, budgeting, purchase requisitions, purchase orders, purchase receipts, and accounting budgets. The queries ensure that important master data like organizations, calendars, accounts are populated correctly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

W_GL_BALANCE_F

-----------------------------SELECT count(*)
FROM W_GL_BALANCE_F
WHERE LEDGER_WID
<>0
AND BUSN_AREA_ORG_WID<>0
AND BALANCE_DT_WID <>0
and MCAL_CAL_WID
<>0
And X_GROUP_ACCT_WID <>0
and X_TX_LEGAL_ENTITY_WID<>0
and X_COST_CENTER_WID<>0
--and X_LEGAL_ENTITY_WID<>0
--AND X_PROD_LINE_WID <>0
--AND X_INV_CLASS_WID<>0;
W_GL_OTHER_F
-------------------------SELECT count(*)
FROM W_GL_OTHER_F
WHERE LEDGER_WID
<>0
AND BUSN_AREA_ORG_WID<>0
and MCAL_CAL_WID
<>0
And X_GL_ACCOUNT_GROUP_WID <>0
and X_TX_LEGAL_ENTITY_WID<>0
and X_PROJECT_WID<>0
and POSTED_ON_DT_WID<>0
and X_BUSS_ACTIVITY_WID<>0
and X_LEGAL_ENTITY_WID<>0
and COST_CENTER_WID<>0
--AND X_PROD_LINE_WID <>0;
W_ACCT_BUDGET_F
------------------------------select count(*) from W_ACCT_BUDGET_F where
PROJECT_WID<>0 and
LEDGER_WID<>0 and
BUDGET_LEDGER_WID<>0 and
BUDG_BUSN_AREA_ORG_WID<>0 and
COST_CENTER_WID<>0 and
MCAL_CAL_WID<>0 and
X_GROUP_ACCT_WID<>0 and
X_TX_LEGAL_ENTITY_WID<>0 and
X_BUSS_ACTIVITY_WID<>0 --and
--X_LEGAL_ENTITY_WID<>0 and
--X_PROD_LINE_WID<>0;
BI PO Requisitions Check Query
----------------------------------------------SELECT COUNT(*)
FROM
w_purch_rqstn_line_f f,
w_employee_d Requestor,
w_product_d Prod,
w_inventory_product_d Invprod,
w_int_org_d org,
w_status_d ApprovalStatus,
w_xact_type_d linetype,
w_day_d duedate
WHERE

f.REQUESTOR_WID
=Requestor.row_wid
AND f.PRODUCT_WID
=Prod.row_wid
AND f.INVENTORY_PROD_WID =Invprod.row_wid
AND f.RQSTN_ORG_WID
=org.row_wid
AND f.APPROVAL_STATUS_WID=ApprovalStatus.row_wid
AND F.LINE_TYPE_WID
=LINETYPE.ROW_WID
AND f.DUE_ON_DT_WID
=duedate.row_wid
F.DATASOURCE_NUM_ID=ApprovalStatus.DATASOURCE_NUM_ID AND
f.datasource_num_id=linetype.datasource_num_id;
PO Check SQL
---------------------SELECT
COUNT(*)
FROM
W_PURCH_ORDER_F F,
--w_employee_d BUYER,
w_product_d Prod,
w_inventory_product_d Invprod,
w_int_org_d org,
w_status_d ApprovalStatus,
w_xact_type_d linetype,
w_day_d duedate
WHERE
--F.PURCH_ORDER_NUM='10000022' and
f.PRODUCT_WID =Prod.row_wid
AND f.INVENTORY_PROD_WID =Invprod.row_wid
AND X_BUY_ORG_WID =org.row_wid
AND f.APPROVAL_STATUS_WID=ApprovalStatus.row_wid
AND F.LINE_TYPE_WID
=LINETYPE.ROW_WID
AND F.DUE_ON_DT_WID
=DUEDATE.ROW_WID AND
F.DATASOURCE_NUM_ID=ApprovalStatus.DATASOURCE_NUM_ID AND
f.datasource_num_id=linetype.datasource_num_id;
PO_RCPT Check SQL
---------------------------------SELECT
COUNT(*)
FROM
w_purch_rcpt_f F,
W_PRODUCT_D PROD,
W_INVENTORY_PRODUCT_D INVPROD,
W_INT_ORG_D ORG,
w_party_org_d S
WHERE
ORG.INTEGRATION_ID<>'0' AND
F.SUPPLIER_WID<>0 AND
--F.PURCH_ORDER_NUM='ARD11202' AND
F.PRODUCT_WID =PROD.ROW_WID AND
F.INVENTORY_PROD_WID =INVPROD.ROW_WID AND
F.INVENTORY_ORG_WID =ORG.ROW_WID AND
f.supplier_wid=s.row_wid and
f.datasource_num_id=invprod.datasource_num_id;
--W_ACCT_BUDGET_F
----------------------------SELECT count(*)
FROM W_ACCT_BUDGET_F F,
W_PROJECT_D P,
W_LEDGER_D L,

W_COST_CENTER_D CC,
W_MCAL_CAL_D M,
W_GL_GROUP_ACCOUNT_D GL,
W_INT_ORG_D ORG,
WC_PROD_LINE_D PL
WHERE P.ROW_WID
=F.PROJECT_WID
AND F.LEDGER_WID
=L.ROW_WID
AND F.COST_CENTER_WID=CC.ROW_WID
and F.MCAL_CAL_WID =M.ROW_WID
and F.X_GROUP_ACCT_WID=GL.ROW_WID
and F.X_TX_LEGAL_ENTITY_WID=ORG.ROW_WID
and F.X_PROD_LINE_WID=PL.ROW_WID;

You might also like