Apps All Tables

14
Distribution and Manufacturing Commonly used tables Anil Kumar R V 08/23/2022Interfaces Inv Po Om AP Items Po Orders Payable Incoives mtl_system_items_b po_headers_all oe_order_headers_all AP_INVOICES_ALL mtl_item_revisions po_lines_all oe_transaction_types_all AP_INVOICE_DISTRIBUTIONS_ALL Item Categories po_line_locations_all OE_ORDER_LINES_HISTORY Payments to Invoice mtl_categories_b po_distributions_all oe_order_lines_all AP_PAYMENT_DISTRIBUTIONS_ALL mtl_category_sets_b Buyers Agreements AP_PAYMENT_HISTORY_ALL mtl_item_categories po_agents oe_agreements_b AP_PAYMENT_SCHEDULES_ALL Item Costs Document and Line Types Order Sources AP_INVOICE_PAYMENTS_ALL cst_item_costs po_document_types_all_b oe_order_sources cst_cost_types po_line_types_b Transaction types AR Organization Releases oe_transaction_types_all hr_all_organization_units po_releases_all Pricing AR_CASH_RECEIPTS_ALL org_organization_definitions Requisitions qp_list_headers_b AR_CASH_RECEIPT_HISTORY_ALL hr_locations_all po_requisition_headers_all qp_list_lines AR_AGING_BUCKETS mtl_parameters po_requisition_lines_all qp_pricing_attributes AR_AGING_BUCKET_LINES_B Transactions po_req_distributions_all Shipping AR_MISC_CASH_DISTRIBUTIONS_ALL mtl_material_transactions Vendors wsh_new_deliveries AR_RECEIVABLES_TRX_ALL mtl_transaction_types po_vendors wsh_delivery_details Subinventories po_vendor_sites_all wsh_delivery_assignments RA_CUSTOMER_TRX_ALL mtl_secondary_inventories po_vendor_contacts WSH_PACKED_CONTAINERS RA_CUSTOMER_TRX_LINES_ALL Lot and Serial Numbers Receiving wsh_picking_batches RA_CUST_TRX_LINE_GL_DIST_ALL mtl_serial_numbers rcv_transactions Customers mtl_lot_numbers rcv_shipment_headers hz_parties Location and On Hand Qty rcv_shipment_lines hz_cust_accounts mtl_item_locations hz_cust_acct_sites_all mtl_onhand_quantities Requisitions Interface Order Import hz_cust_site_uses_all po_requisitions_interface_all oe_headers_iface_all hz_party_sites po_req_dist_interface_all REJECT_FLAG hz_locations Interfaces INTERFACE_SOURCE_CODE ERROR_FLAG GL Transactions Interface DESTINATION_TYPE_CODE ORIG_SYS_DOCUMENT_REF mtl_transactions_interface AUTHORIZATION_STATUS OPERATION_CODE GL_DAILY_RATES SOURCE_CODE PREPARER_ID/NAME oe_lines_iface_all GL_BALANCES SOURCE_LINE_ID QUANTITY ORDER_SOURCE_ID GL_ACCOUNT_HIERARCHIES SOURCE_HEADER_ID CHARGE_ACCOUNT_ID/SEGMENTS ORIG_SYS_DOCUMENT_REF GL_BUDGET_ASSIGNMENTS PROCESS_FLAG DESTINATION_ORGANIZATION_ID ORIG_SYS_LINE_REF GL_ENCUMBRANCE_TYPES TRANSACTION_MODE DELIVER_TO_LOCATION_ID/CODE ORIG_SYS_SHIPMENT_REF GL_JE_BATCHES TRANSACTION_INTERFACE_ID DELIVER_TO_REQUESTOR_ID/Name INVENTORY_ITEM GL_JE_HEADERS INVENTORY_ITEM_ID DISTRIBUTION_NUMBER REQUEST_DATE GL_JE_LINES ITEM_SEGMENT1 to ITEM_ DESTINATION_ORGANIZATION_ID DELIVERY_LEAD_TIME SEGMENT20 INTERFACE_SOURCE_CODE DELIVERY_ID TRANSACTION_QUANTITY CHARGE_ACCOUNT_ID ORDERED_QUANTITY AP TRANSACTION_UOM ORDER_QUANTITY_UOM oe_price_adjs_interface AP_INVOICES_INTERFACE TRANSACTION_DATE REQUEST_ID ORIG_SYS_DOCUMENT_REF AP_INVOICES_INTERFACE TRANSACTION_SOURCE_ID Purchasing Documents interface ORIG_SYS_LINE_REF

Transcript of Apps All Tables

Page 1: Apps All Tables

Distribution and Manufacturing Commonly used tables

Anil Kumar R V04/07/2023Interfaces

Inv Po Om APItems Po Orders Payable Incoivesmtl_system_items_b po_headers_all oe_order_headers_all AP_INVOICES_ALLmtl_item_revisions po_lines_all oe_transaction_types_all AP_INVOICE_DISTRIBUTIONS_ALLItem Categories po_line_locations_all OE_ORDER_LINES_HISTORY Payments to Invoicemtl_categories_b po_distributions_all oe_order_lines_all AP_PAYMENT_DISTRIBUTIONS_ALLmtl_category_sets_b Buyers Agreements AP_PAYMENT_HISTORY_ALLmtl_item_categories po_agents oe_agreements_b AP_PAYMENT_SCHEDULES_ALLItem Costs Document and Line Types Order Sources AP_INVOICE_PAYMENTS_ALLcst_item_costs po_document_types_all_b oe_order_sourcescst_cost_types po_line_types_b Transaction types AROrganization Releases oe_transaction_types_allhr_all_organization_units po_releases_all Pricing AR_CASH_RECEIPTS_ALLorg_organization_definitions Requisitions qp_list_headers_b AR_CASH_RECEIPT_HISTORY_ALLhr_locations_all po_requisition_headers_all qp_list_lines AR_AGING_BUCKETSmtl_parameters po_requisition_lines_all qp_pricing_attributes AR_AGING_BUCKET_LINES_BTransactions po_req_distributions_all Shipping AR_MISC_CASH_DISTRIBUTIONS_ALLmtl_material_transactions Vendors wsh_new_deliveries AR_RECEIVABLES_TRX_ALLmtl_transaction_types po_vendors wsh_delivery_detailsSubinventories po_vendor_sites_all wsh_delivery_assignments RA_CUSTOMER_TRX_ALLmtl_secondary_inventories po_vendor_contacts WSH_PACKED_CONTAINERS RA_CUSTOMER_TRX_LINES_ALLLot and Serial Numbers Receiving wsh_picking_batches RA_CUST_TRX_LINE_GL_DIST_ALLmtl_serial_numbers rcv_transactions Customersmtl_lot_numbers rcv_shipment_headers hz_partiesLocation and On Hand Qty rcv_shipment_lines hz_cust_accountsmtl_item_locations hz_cust_acct_sites_allmtl_onhand_quantities Requisitions Interface Order Import hz_cust_site_uses_all

po_requisitions_interface_all oe_headers_iface_all hz_party_sitespo_req_dist_interface_all REJECT_FLAG hz_locations

Interfaces INTERFACE_SOURCE_CODE ERROR_FLAG GLTransactions Interface DESTINATION_TYPE_CODE ORIG_SYS_DOCUMENT_REFmtl_transactions_interface AUTHORIZATION_STATUS OPERATION_CODE GL_DAILY_RATESSOURCE_CODE PREPARER_ID/NAME oe_lines_iface_all GL_BALANCESSOURCE_LINE_ID QUANTITY ORDER_SOURCE_ID GL_ACCOUNT_HIERARCHIESSOURCE_HEADER_ID CHARGE_ACCOUNT_ID/SEGMENTS ORIG_SYS_DOCUMENT_REF GL_BUDGET_ASSIGNMENTSPROCESS_FLAG DESTINATION_ORGANIZATION_ID ORIG_SYS_LINE_REF GL_ENCUMBRANCE_TYPESTRANSACTION_MODE DELIVER_TO_LOCATION_ID/CODE ORIG_SYS_SHIPMENT_REF GL_JE_BATCHESTRANSACTION_INTERFACE_ID DELIVER_TO_REQUESTOR_ID/Name INVENTORY_ITEM GL_JE_HEADERSINVENTORY_ITEM_ID DISTRIBUTION_NUMBER REQUEST_DATE GL_JE_LINESITEM_SEGMENT1 to ITEM_ DESTINATION_ORGANIZATION_ID DELIVERY_LEAD_TIMESEGMENT20 INTERFACE_SOURCE_CODE DELIVERY_IDTRANSACTION_QUANTITY CHARGE_ACCOUNT_ID ORDERED_QUANTITY APTRANSACTION_UOM ORDER_QUANTITY_UOM oe_price_adjs_interface AP_INVOICES_INTERFACETRANSACTION_DATE REQUEST_ID ORIG_SYS_DOCUMENT_REF AP_INVOICES_INTERFACETRANSACTION_SOURCE_ID Purchasing Documents interface ORIG_SYS_LINE_REFDSP_SEGMENT1toDSP_ po_headers_interface ORIG_SYS_SHIPMENT_REF AR

Page 2: Apps All Tables

Distribution and Manufacturing Commonly used tables

Anil Kumar R V04/07/2023Interfaces

SEGMENT30 INTERFACE_HEADER_ID ORIG_SYS_DISCOUNT_REF RA_CUSTOMERS_INTERFACE_ALLTRANSACTION_SOURCE_NAME ACTION DISCOUNT_ID RA_INTERFACE_DISTRIBUTIONS_ALLTRANSACTION_TYPE_ID DOCUMENT_TYPE_CODE DISCOUNT_LINE_ID RA_INTERFACE_DISTRIBUTIONS_ALLmtl_transactions_lot_interface VENDOR_DOC_NUM DISCOUNT_NAME RA_INTERFACE_DISTRIBUTIONS_ALLLOT_NUMBER po_lines_interface OPERATION_CODELOT_EXPIRATION_DATE INTERFACE_LINE_ID oe_credits_interface GLTRANSACTION_QUANTITY INTERFACE_HEADER_ID ORDER_SOURCE_ID GL_DAILY_RATES_INTERFACETRANSACTION_INTERFACE_ID po_interface_errors ORIG_SYS_DOCUMENT_REF GL_INTERCOMPANY_ACCTS_VSERIAL_TRANSACTION_TEMP_ID Receiving Interface ORIG_SYS_LINE_REF GL_INTERFACE_CONTROLmtl_serial_numbers_interface rcv_headers_interface ORIG_SYS_SHIPMENT_REF GL_INTERFACE_GROUPS_VTRANSACTION_INTERFACE_ ID HEADER_INTERFACE_ID ORIG_SYS_CREDIT_REF GL_INTERFACE_HISTORYFM_SERIAL_NUMBER GROUP_ID PERCENT GL_INTERFACE_SOURCES_VItem Interface PROCESSING_STATUS_CODE OE_LOTSERIALS_INTERFACEGL_INTERFACEMTL_SYSTEM_ITEMS_INTERFACRECEIPT_SOURCE_CODE OPERATION_CODE JE_SOURCE_NAME.PROCESS_FLAG VENDOR_NAME ORDER_SOURCE_ID STATUSTRANSACTION_TYPE VENDOR_NUM ORIG_SYS_DOCUMENT_REF SET_OF_BOOKS_IDSET_PROCESS_ID VENDOR_ID ORIG_SYS_LINE_REF USER_JE_SOURCE_NAMEORGANIZATION_CODE VALIDATION_FLAG ORIG_SYS_LOTSERIAL_REF USER_JE_CATEGORY_NAMEITEM_NUMBER rcv_transactions_interface QUANTITY ACCOUNTING_DATE

INTERFACE_TRANSACTION_ID OPERATION_CODE CURRENCY_CODEGROUP_ID OE_RESERVTNS_INTERFACEDo Not Enter any value

MTL_INTERFACE_ERRORS TRANSACTION_TYPE oe_actions_interface TRANSACTION_DATEMTL_ITEM_CATE_INTERFACE TRANSACTION_DATE ORIG_SYS_DOCUMENT_REF JE_BATCH_IDMTL_ITEM_REVI_INTERFACE PROCESSING_STATUS_CODE OPERATION_CODE JE_HEADER_ID

PROCESSING_MODE_CODE JE_LINE_NUMTRANSACTION_STATUS_CODE CHART_OF_ACCOUNTS_IDQUANTITY ValidationsUNIT_OF_MEASURE • Set of booksITEM_DESCRIPTION • Period nameRECEIPT_SOURCE_CODE • Source nameVENDOR_ID • Journal entry nameVENDOR_NUM • Currency codeVENDOR_NAME • Category nameAUTO_TRANSACT_CODE DOCUMENT_NUM • Actual flagSOURCE_DOCUMENT_CODE HEADER_INTERFACE_ID • Encumbrance type IDPO_HEADER_ID VALIDATION_FLAG • User conversion type

• Accounting date• Budget version ID• Reversal period GL_BUDGET_INTERFACEGL_BUDGET_INTERIM

Page 3: Apps All Tables

Reports

User Exits

FND SRWINIT

FND SRWEXIT

FND FORMAT_CURRENCY

FND FLEXIDVAL :p_org_id := TO_NUMBER(fnd_profile.VALUE('ORG_ID'));

FND FLEXSQL :cp_user_name := fnd_profile.VALUE('USERNAME')

FND SRWINIT sets your profile option values and allows Oracle

Application Object Library user exits to detect that they have been

called by an Oracle Reports program. FND SRWINIT also allows your

report to use the correct organization automatically. FND SRWEXIT

ensures that all the memory allocated for Oracle Application Object

Library user exits has been freed up properly.

FND FLEXIDVAL are used to display flex field information like prompt, value etc with dynamic query

FND FLEXSQL

OM Reports

Cancelled Orders Report

Returns by Reason Report

Cancelled Orders Reasons Detail Report

Orders by Item Report

Unbooked Orders Report

Page 4: Apps All Tables

FND FLEXIDVAL are used to display flex field information like prompt, value etc with dynamic query

Page 5: Apps All Tables

• Account combinations

• Periods

• Unbalanced journal entries

• Foreign currency errors

• Budget information

• Encumbrance information

• Other miscellaneous items

select * from PO_REQUISITION_HEADERS_ALL WHERE SEGMENT1 ='5666'

select * from PO_REQUISITION_LINES_ALL WHERE REQUISITION_HEADER_ID = 56622

select * from PO_REQ_DISTRIBUTIONS_ALL WHERE REQUISITION_LINE_ID = 60533

select * from PO_HEADERS_ALL WHERE SEGMENT1 = '326' AND TYPE_LOOKUP_CODE = 'RFQ'

select * from PO_RFQ_VENDORS WHERE PO_HEADER_ID = 32562

select * from PO_HEADERS_ALL WHERE SEGMENT1 = '517' AND TYPE_LOOKUP_CODE = 'QUOTATION'

select * from PO_HEADERS_ALL WHERE SEGMENT1 = '4451' AND TYPE_LOOKUP_CODE= 'STANDARD'

select * from PO_LINES_ALL WHERE PO_HEADER_ID = 32566

select * from PO_LINE_LOCATIONS_ALL WHERE PO_LINE_ID = 37773

select * from PO_DISTRIBUTIONS_ALL WHERE LINE_LOCATION_ID in( 72186)

select * from RCV_SHIPMENT_HEADERS WHERE RECEIPT_NUM = '9616' AND SHIP_TO_ORG_ID = 207

select * from RCV_SHIPMENT_LINES WHERE SHIPMENT_HEADER_ID = 56423

select * from ap_invoices_all where invoice_num = 'AL-346'

select * from ap_invoice_distributions_all where invoice_id = 63253

select * from AP_ACCOUNTING_EVENTS_ALL WHERE source_id = 63253 and source_table = 'AP_INVOICES'

select * from ap_payment_schedules_all where invoice_id = 63253

select * from ap_checks_all where check_number = 2473 --creation_date like sysdate

Page 6: Apps All Tables

select * from AP_INVOICE_PAYMENTS_ALL where invoice_id = 63253

select * from AP_ACCOUNTING_EVENTS_ALL WHERE source_id = 28599 and source_table = 'AP_CHECKS' --ACCOUNTING_EVENT_ID = 77429

Page 7: Apps All Tables

select * from PO_HEADERS_ALL WHERE SEGMENT1 = '517' AND TYPE_LOOKUP_CODE = 'QUOTATION'

select * from PO_HEADERS_ALL WHERE SEGMENT1 = '4451' AND TYPE_LOOKUP_CODE= 'STANDARD'

select * from RCV_SHIPMENT_HEADERS WHERE RECEIPT_NUM = '9616' AND SHIP_TO_ORG_ID = 207

select * from AP_ACCOUNTING_EVENTS_ALL WHERE source_id = 63253 and source_table = 'AP_INVOICES'

Page 8: Apps All Tables

select * from AP_ACCOUNTING_EVENTS_ALL WHERE source_id = 28599 and source_table = 'AP_CHECKS' --ACCOUNTING_EVENT_ID = 77429

Page 9: Apps All Tables

Status Populated Tables Column(status) Value

Entered oe_order_headers_all open_flag Y

oe_order_lines_all

oe_price_adjustments

oe_order_price_attribs

oe_order_holds_all

Booked oe_order_headers_all Booked_flag Y

wsh_delivery_details Released_status R

wsh_delivery_details Released_status S

wsh_picking_batches

(Fully) mtl_reservations

mtl_txn_request_headers

mtl_txn_request_lines

(Partial) wsh_delivery_details S

B

wsh_new_deliveries name

wsh_delivery_assignments

wsh_delivery_details Released_status Y

wsh_delivery_details Released_status C

mtl_material_transactions

wsh_new_deliveries C

Pick Released

mtl_material_transactions_temp

Pick Confirmed

Ship Confirmed

Page 10: Apps All Tables

oe_order_lines_all Shipped_quantity

wsh_delivery_legs

oe_order_headers_all open_flag N

Autoinvoicewsh_delivery_details Released_status I

ra_interface_lines_all

ra_customer_trx_all

ra_customer_trx_lines_all

Page 11: Apps All Tables

Description/transactions Others

1 record created in header table

Lines for particular records

When discount gets applied

If line has price attributes then populated

If any hold applied for order like credit check etc.

Order booked.

Ready to release Pick Release API / Pick Confirm API

No records in wsh_delivery_assignments and

wsh_new_deliveries

Move Order (Creation - Transaction)

After batch is created for pick release.

No records in mtl_material_transactions

Released to warehouse.

Backordered

Line failed to be allocated in Inventory

if Auto-Create is Yes then data populated.

deliveries get assigned

Line has been picked and staged by Inventory

Subinventory to staging area. Packing slip.

On the ship confirm form, check Ship all box

If Defer Interface is checked I.e its deferred then

OM & inventory not updated.

If Defer Interface is not checked.: Shipped

Ship to / Bill to (Order Type) / Price List / Item(Line Type)After Entering / booking -- Proces Order API will be called - This will take care of holds etc

After Awaiting Shipping - Visible Demand Flag is set to Yes

Scheduling will happen -->.1 Soft Reservation 2. MTL Demand record will be inserted (This is input for Planning) -->3. Depending on the ATP rules it will give the Schedule Ship Date

Released to Warehouse (Line has been released to Inventory for processing)

This is only soft reservations. No physical movement of stock

Hard Reservations. Picked the stock. Physical movement of stock

Y To C:Shipped ;Delivery Note get printed Delivery assigned to trip stopquantity will be decreased from staged

Interface Trip Stop--Sales Order Issue Transaction in Material Transaction and reservation is releived

Page 12: Apps All Tables

get populated.

1 leg is called as 1 trip.

1 Pickup & drop up stop for each trip.

147

If all the lines get shipped then only flag N

Need to run workflow background process.

Data will be populated after wkfw process.

After running Autoinvoice Master Program for

specific batch transaction tables get populated

Page 13: Apps All Tables

Query

select * from MTL_INTERCOMPANY_PARAMETERS_V where SHIP_ORGANIZATION_NAME like 'Austra%

select * MTL_INTERCOMPANY_PARAMETERS_V

select max(order_number) from oe_order_headers_all where org_id=912

select * from oe_order_headers_all where org_id=912

select * from org_organization_definitions

Select * from dba_views where view_name like 'BCIWSH_FG_AVAIL_ONHANDS_V'

select * from oe_order_headers_all where order_number=75001141

select * from oe_order_lines_all where header_id= 6354017

select * from wsh_delivery_details where source_header_id= 6354017

select * from wsh_new_deliveries where delivery_id = 12041579

select hr.business_group_id,hr.ORGANIZATION_ID,hr.name,hr.LEGAL_ENTITY_ID, hr.SET_OF_BOOKS_ID,gl.CHART_OF_ACCOUNTS_ID from gl_sets_of_books gl,hr_operating_units hrwhere gl.set_of_books_id=hr.set_of_books_id

select * from wsh_delivery_details where organization_id=4160 and serial_number is not nullselect * from mtl_system_items where inventory_item_id=198

Page 14: Apps All Tables

Details

Intercompany Relations

Intercompany Relations

Latest Order

All in One Ou

All OU / INV Etc

ALL OU/LE/BG Etc

To find the SQl for the View