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

Oracle Apps Sqls

The document contains details of various Oracle Apps R12 tables related to formulas, products, ingredients, batches, transactions, invoices, payments and other processes. It includes SQL queries to retrieve data from tables related to process manufacturing, inventory, purchasing, payables, receivables and other modules to view details of formulas, batches, transactions, invoices and payments. The tables and queries are from various Oracle Apps modules like OPM, Inventory, Purchasing, Payables, Receivables, WIP etc.

Uploaded by

Ajay Tulse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
356 views

Oracle Apps Sqls

The document contains details of various Oracle Apps R12 tables related to formulas, products, ingredients, batches, transactions, invoices, payments and other processes. It includes SQL queries to retrieve data from tables related to process manufacturing, inventory, purchasing, payables, receivables and other modules to view details of formulas, batches, transactions, invoices and payments. The tables and queries are from various Oracle Apps modules like OPM, Inventory, Purchasing, Payables, Receivables, WIP etc.

Uploaded by

Ajay Tulse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

FORMULA DETAILS

Oracle Apss R12 OPM (Oracle Process manufacturing) Formula Base Tables and
Detail of Products and Ingredients

SELECT a.FORMULA_ID,
a.formula_no,
a.FORMULA_DESC1,
b.INVENTORY_ITEM_ID,
c.description,
b.organization_id,
DECODE (b.line_type, -1, Ingredient, Product) TYPE
FROM FM_FORM_MST a, FM_MATL_DTL b, mtl_system_items c
WHERE a.formula_id = b.FORMULA_ID
AND b.ORGANIZATION_ID = :your_Org_id
AND a.FORMULA_CLASS <> COSTING
AND b.INVENTORY_ITEM_ID = c.inventory_item_id
AND b.ORGANIZATION_ID = c.organization_id
ORDER BY a.FORMULA_ID

QUANTITY OF INGREDIENTS AND PRODUCTS


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

Oracle Apps R12. OPM Query to Find out Quantity of Products and Ingredients of all
Batches in particular Month.
SELECT b.RECIPE_DESCRIPTION,
a.RECIPE_VALIDITY_RULE_ID,
c.INVENTORY_ITEM_ID,
d.description,
DECODE (c.line_type, -1, Ingredient, Product) TYPE,
SUM (e.TRANSACTION_QUANTITY) quantity
FROM apps.GME_BATCH_HEADER a,
apps.gmd_recipes b,
gmd_recipe_validity_rules grr,
apps.gme_material_details c,
apps.mtl_system_items d,
apps.mtl_material_transactions e
WHERE a.FORMULA_ID = b.FORMULA_ID
AND a.ROUTING_ID = b.ROUTING_ID
AND a.RECIPE_VALIDITY_RULE_ID = grr.RECIPE_VALIDITY_RULE_ID
AND grr.RECIPE_ID = b.recipe_id
AND a.BATCH_ID = c.BATCH_ID
AND a.ORGANIZATION_ID = c.ORGANIZATION_ID
AND c.INVENTORY_ITEM_ID = d.INVENTORY_ITEM_ID
AND c.ORGANIZATION_ID = d.organization_id
AND a.batch_id = e.TRANSACTION_SOURCE_ID
AND a.ORGANIZATION_ID = e.ORGANIZATION_ID
AND c.INVENTORY_ITEM_ID = e.INVENTORY_ITEM_ID

--INV
select * from mtl_transaction_accounts

SELECT mmt.costed_flag,mmt.cost_update_id,mmt.transaction
_date,mmt.organization_id,

mmt.last_update_date,mmt.error_code,mmt.transactio
n_quantity,mmt.transaction_cost,mmt.actual_cost,mmt .transaction_type_id

FROM MTL_MATERIAL_TRANSACTIONS MMT where Transaction_id=22040

select * from mtl_transaction_types where transaction_type_id=24

select mmt.organization_id from Mtl_Material_Transactions mmt where


mmt.creation_date>sysdate-1

select * from mtl_transaction_accounts

select * from MTL_MATERIAL_TRANSACTIONS

SELECT * FROM GL_PERIOD_STATUSES_V WHERE APPLICATION_ID=101 AND


SET_OF_BOOKS_ID=1005

SELECT * FROM GL_SETS_OF_BOOKS

update MTL_MATERIAL_TRANSACTIONS MMT set costed_flag='N',error_code=null


where (mmt.costed_flag='E')

update MTL_MATERIAL_TRANSACTIONS MMT set costed_flag='N',

error_code=null where ( mmt.costed_flag is null)

select * from gl_interface where user_je_category_name='Payments'


select * from MTL_MATERIAL_TRANSACTIONS

select * from mtl_transaction_accounts

select mmtp.transa from mtl_material_transactions_temp mmtp

SELECT cid.line_type_name line_type,

CASE

WHEN cid.base_transaction_value > 0 THEN

cid.base_transaction_value

END cr,

CASE

WHEN cid.base_transaction_value < 0 THEN

-cid.base_transaction_value

END dr,

--cid.primary_quantity,

--cid.primary_uom,

--cid.basis_type_name,
cid.rate_or_amount rate

FROM cst_inv_distribution_v cid

WHERE organization_id = 104

AND transaction_id = 4855

select * FROM FND_LOOKUP_TYPES_VL

select * from cst_inv_distribution_v

select * from MTL_TRANSACTION_ACCOUNTS

--GL

select * from gl_interface where reference30='CASH CLEARING' reference25='13-


NOV-20083'

select * from gl_interface_control

select * from gl_daily_conversion_types

select * from AP_CHECKS_V SELECT mtt.costed_flag FROM


mtl_material_transactions mtt

select * from mtl_system_items where segment1='971901000002'

--PO
select * from PO_POSITION_CONTROLS FOR UPDATE

SELECT hpf.organization_id FROM HR_POSITIONS_F hpf for update

select * from mtl_parameters

select * from HR_ORGANIZATION_UNITS

select * from po_releases_all

update po_releases_all pra set pra.authorization_status='APPROVED'

select * from rcv_transactions_interface

select transferred_to_oe_flag,p.* from po_requisition_headers_all p for update--oe

1000004

select * from po_requisition_headers_all where segment1='1000032' for update

select * from po_requisition_lines_all prla where prla.requisition_header_id=183 for


update

select * from po_agents

select * from po_acceptances

select * from rcv_parameters

select * from po_requisition_suppliers


select * from po_line_locations_all

select * from po_reqexpress_headers_all

select * from po_reqexpress_lines_all

select * from PO_HEADERS_RFQQT_v

SELECT * FROM PO_LINE_LOCATIONS_ALL WHERE LINE_LOCATION_ID=2 FOR


UPDATE

SELECT pha.type_lookup_code FROM PO_HEADERS_ALL pha

select * from rcv_shipment_headers?

select * from Po_Distributions_All

select * from rcv_shipment_lines for update

select * from rcv_transactions_interface for update

select * from rcv_transactions

UPDATE po_headers_all pha SET


pha.approved_flag='Y',pha.approved_date=sysdate

WHERE PHA.PO_HEADER_ID=142

select * from PO_VENDOR_LIST_HEADERS--Supply list


select * from PO_ASL_SUPPLIERS_V --Approved Supplier list select * from
po_headers_all where segment1 in ('1000001','1000014')

and type_lookup_code='STANDARD'

select * from MTL_CROSS_REFERENCE_TYPES

select * from mtl_cross_references

select * from po_lookup_codes where lookup_code='Price Type'

UPDATE po_line_locations_all PLLA set


plla.approved_flag='Y',plla.approved_date=sysdate

WHERE PLLA.Po_Header_Id=281

select pha.authorization_status,pha.approved_flag,pha.app roved_date from


po_headers_all pha where segment1='1000032' for update

select * from xla_po_ael_sl_v

select * from po_line_locations_all PLLA WHERE PLLA.Po_Header_Id=142

update po_line_locations_all plla set plla.quantity_received=8,

plla.quantity_accepted=8 WHERE PLLA.Po_Header_Id=142

select * from po_headers_all pha where segment1 in ('1000029','1000025')

select * from po_line_locations_all PLLA WHERE PLLA.Po_Header_Id=281


update po_headers_all pha set
pha.approved_flag='Y',Pha.Approved_Date=sysdate,ph
a.authorization_status='APPROVED'

where segment1 in ('1000029')

SELECT DISTINCT LOOKUP_TYPE FROM PO_LOOKUP_CODES WHERE


LOOKUP_TYPE='TAX_TYPE'

SELECT * FROM FND_LOOKUP_TYPES WHERE LOOKUP_TYPE='TAX_TYPE'

SELECT * FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE LIKE '%TAX TYPE%'

SELECT * FROM FND_LOOKUP_VALUES WHERE LOOKUP_CODE='SALES'

UPDATE

---AP

SELECT * FROM AP_ACCOUNTING_EVENTS_ALL

SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL

SELECT * FROM AP_AE_HEADERS_ALL--Transfer to Gl headers

select * from ap_ae_lines_all--Gl Account for ap table

SELECT * FROM AP_INVOICES_ALL--INVOICE

SELECT * FROM AP_INVOICE_DISTRIBUTIONS_ALL--DISTRIBUTION


SELECT * FROM ap_checks_all--payment

select * from ap_invoices_interface

select * from ap_invoice_lines_interface

select * from AP_INVOICE_PAYMENTS_ALL

select * from AP_PAYMENT_HISTORY_ALL

select * from ap_payme

--Standard Invoice

--Expense Report--Need run Report

--Recurring Invoice

--WIP

select * from wip_transaction_accounts

select * from wip_move_transactions where transaction_id=1034

SELECT * FROM WIP_ENTITIES

SELECT * FROM WIP_DISCRETE_JOBS

SELECT * FROM WIP_MOVE_TRANSACTION


select * FROM WIP_COST_TXN_INTERFACE

select * from WIP_TRANSACTIONS

select * from WIP_COST_TXN_INTERFACE

select * from wip_accounting_classes

select * from wip_transaction_accounts where transaction_id=2003 --OM

select otta.org_id,otta.* from oe_transaction_types_all otta for update

SELECT * FROM Mtl_Transaction_Types mtt1

select * from oe_order_headers_all where order_number=46

select NON_DELIVERY_INVOICE_SOURCE from oe_transaction_types_all

select * from mtl_parameters

select * from org_organization_definitions

select * from HR_ORGANIZATION_UNITS

select * from MTL_RESERVATIONS

select * from WSH_PICKING_BATCHES_V where order_number=46--OE release

select * from WSH_DELIVERABLES_V for update


select * from wsh_delivery_details where delivery_detail_id=14009

select * from wsh_delivery_assignments where delivery_detail_id=14009

select * from OE_PAYMENTS

select * from WSH_DLVB_DLVY_V where delivery_id=10010

select * from wsh_exceptions_v--??

SELECT OE_INTERFACED_FLAG,INV_INTERFACED_FLAG from


wsh_delivery_details--??

select * from wsh_new_deliveries wnd where wnd.creation_date>sysdate-1

select * from wsh_trip_stops where creation_date>sysdate-1

select * from hr_locations_all

select * from wsh_trips

select * from oe_headers_iface_all ohia for update

select * from MTL_ONHAND_QUANTITIES

SELECT * FROM OE_SALES_CREDITS_V--SALES CREDITS Order Status:

Entered

Booked
wsh_delivery_details

2008-9-16 9:15:36

2008-9-16 9:27:14

2008-9-16 12:41:00

2008-9-5 13:50:35

2008-9-12 16:37:35

select * from oe_headers_iface_all

select * from FND_TABLES where table_name='OE_ORDER_HEADERS_ALL'

SELECT * FROM ALL_TABLES where WNER='ONT'and table_name like '%INTERFACE


%'

'OE_ORDER_HEADERS_ALL'

Canceld

Order-level sales credit total () must equal 100%.

Salesperson is required on a booked order.

Payment Term is required on a booked order. OE_ORDER_HEADERS_ALL1311 102/


141

122

--

AP-transfer to GL

Payable transfer to gl --apps

select * from all_tables where wner='AP' --bom --AR

select * from RA_GROUP_BYS --Auto Invoice Group Rule

select * from RA_CUSTOMER_TRX_ALL


select * from RA_CUSTOMER_TRX_LINES_ALL

LINE_ID ??

INVENTORY_ITEM_ID ????,????????,??DESCRIPTION??? /??

DESCRIPTION

QUANTITY_INVOICE ????

LINE_TYPE ??? (??/?)

EXTEND_PRICE ????
select * from AR_CASH_RECEIPTS_ALL(?????????)

CASH_RECEIPT_ID ??code

RECEIPT_NUMBER ???

RECEIPT_DATE ????

AMOUNT ??

RECEIPT_TYPE ??/?? Cash/Misc

FUNCTIONAL_AMOUNT ???????

AR_RECEIVABLE_APPLICATIONS_ALL

APPLIED_CUSTOMER_TRX_ID ????

APPLIED_CUSTOMER_TRX_LINE_ID ?????

STATUS APP???? /UNAPP?????

AMOUNT_APPLIED ????

??:?????????????;???? AR_CASH_RECEIPTS_ALL? AR_CASH_RECEIPT_HISTORY_ALL

--cost

select * from CST_COST_TYPES


select * from mtl_system_items_b where segment1='890709000001'

select * from cst_item_cost_details where inventory_item_id=3001

select * from cst_item_costs where inventory_item_id=3001

select * from cst_item_costs where inventory_item_id=3001 and cost_type_id=1


for update

select * from mtl_material_transactions

SELECT * FROM mtl_parameters

select * from FND_CONC_REQ_SUMMARY_V vnm where


vnm.USER_CONCURRENT_PROGRAM_NAME='Pick Selection List Generation'

select * from fnd_tables where wner='OE'

SELECT * FROM ALL_TABLES where wner='OE' AND TABLE_NAME LIKE


'%INTERFACE%'

SELECT * FROM SO_LINE_DETAILS_INTERFACE

select * from hz_locations

SELECT * FROM OE_HEADERS_

select * from all_tables where wner='ONT' ORDER BY TABLE_NAME

TABLE_NAME ='OE_ORDER_HEADERS_ALL' wner='ONT' ORDER BY TABLE_NAME


select * from fnd_tables where table_name='WSH_TRIPS'

select * from fnd_columns where table_id=71273

SELECT * FROM WSH_DELIVERIES_INTERFACE

wsh_trips

select 5000/12 from dual

select * from mtl_onhand_quantities moq where


moq.SUBINVENTORY_CODE='GPI_Stage'

select mmt.transaction_type_id,mmt.transaction_quantity

from mtl_material_transactions mmt where mmt.subinventory_code='G'

161, 141

select * from mtl_parameters where organization_id=141

select mmt.transaction_type_id,mmt.transaction_quantity,m
mt.creation_date,mmt.subinventory_code

from mtl_material_transactions mmt where mmt.subinventory_code='GPI_Stage'

select segment1 from mtl_system_items where inventory_item_id=4003

select * from mtl_transaction_types where transaction_type_id=52


select * from gl_interface

select * from gl_balances

select * from GL_JE_HEADERS

You might also like