You are on page 1of 13

Distribution and Manufacturing Commonly used tables

Inv Items mtl_system_items_b mtl_item_revisions Item Categories mtl_categories_b mtl_category_sets_b mtl_item_categories Item Costs cst_item_costs cst_cost_types Organization hr_all_organization_units org_organization_definitions hr_locations_all mtl_parameters Transactions mtl_material_transactions mtl_transaction_types Subinventories mtl_secondary_inventories Lot and Serial Numbers mtl_serial_numbers mtl_lot_numbers Location and On Hand Qty mtl_item_locations mtl_onhand_quantities Interfaces Transactions Interface mtl_transactions_interface SOURCE_CODE SOURCE_LINE_ID SOURCE_HEADER_ID PROCESS_FLAG TRANSACTION_MODE TRANSACTION_INTERFACE_ID INVENTORY_ITEM_ID ITEM_SEGMENT1 to ITEM_ SEGMENT20 TRANSACTION_QUANTITY TRANSACTION_UOM TRANSACTION_DATE TRANSACTION_SOURCE_ID DSP_SEGMENT1toDSP_ SEGMENT30

Po Po po_headers_all po_lines_all po_line_locations_all po_distributions_all Buyers po_agents Document and Line Types po_document_types_all_b po_line_types_b Releases po_releases_all Requisitions po_requisition_headers_all po_requisition_lines_all po_req_distributions_all Vendors po_vendors po_vendor_sites_all po_vendor_contacts Receiving rcv_transactions rcv_shipment_headers rcv_shipment_lines Requisitions Interface po_requisitions_interface_all po_req_dist_interface_all INTERFACE_SOURCE_CODE DESTINATION_TYPE_CODE AUTHORIZATION_STATUS PREPARER_ID/NAME QUANTITY CHARGE_ACCOUNT_ID/SEGMENTS DESTINATION_ORGANIZATION_ID DELIVER_TO_LOCATION_ID/CODE DELIVER_TO_REQUESTOR_ID/Name DISTRIBUTION_NUMBER DESTINATION_ORGANIZATION_ID INTERFACE_SOURCE_CODE CHARGE_ACCOUNT_ID ORDER_QUANTITY_UOM REQUEST_ID Purchasing Documents interface po_headers_interface INTERFACE_HEADER_ID

Om Orders oe_order_headers_all oe_transaction_types_all OE_ORDER_LINES_HISTORY oe_order_lines_all Agreements oe_agreements_b Order Sources oe_order_sources Transaction types oe_transaction_types_all Pricing qp_list_headers_b qp_list_lines qp_pricing_attributes Shipping wsh_new_deliveries wsh_delivery_details wsh_delivery_assignments WSH_PACKED_CONTAINERS wsh_picking_batches

AP Payable Incoives AP_INVOICES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Payments to Invoice AP_PAYMENT_DISTRIBUTIONS_ALL AP_PAYMENT_HISTORY_ALL AP_PAYMENT_SCHEDULES_ALL AP_INVOICE_PAYMENTS_ALL AR AR_CASH_RECEIPTS_ALL AR_CASH_RECEIPT_HISTORY_ALL AR_AGING_BUCKETS AR_AGING_BUCKET_LINES_B AR_MISC_CASH_DISTRIBUTIONS_ALL AR_RECEIVABLES_TRX_ALL RA_CUSTOMER_TRX_ALL RA_CUSTOMER_TRX_LINES_ALL RA_CUST_TRX_LINE_GL_DIST_ALL Customers hz_parties hz_cust_accounts hz_cust_acct_sites_all hz_cust_site_uses_all hz_party_sites hz_locations GL GL_DAILY_RATES GL_BALANCES GL_ACCOUNT_HIERARCHIES GL_BUDGET_ASSIGNMENTS GL_ENCUMBRANCE_TYPES GL_JE_BATCHES GL_JE_HEADERS GL_JE_LINES AP AP_INVOICES_INTERFACE AP_INVOICES_INTERFACE AR RA_CUSTOMERS_INTERFACE_ALL

Order Import oe_headers_iface_all REJECT_FLAG ERROR_FLAG ORIG_SYS_DOCUMENT_REF OPERATION_CODE oe_lines_iface_all ORDER_SOURCE_ID ORIG_SYS_DOCUMENT_REF ORIG_SYS_LINE_REF ORIG_SYS_SHIPMENT_REF INVENTORY_ITEM REQUEST_DATE DELIVERY_LEAD_TIME DELIVERY_ID ORDERED_QUANTITY oe_price_adjs_interface ORIG_SYS_DOCUMENT_REF ORIG_SYS_LINE_REF ORIG_SYS_SHIPMENT_REF ORIG_SYS_DISCOUNT_REF

Anil Kumar R V 5/6/2012Interfaces

Distribution and Manufacturing Commonly used tables

TRANSACTION_SOURCE_NAME ACTION TRANSACTION_TYPE_ID DOCUMENT_TYPE_CODE mtl_transactions_lot_interfaceVENDOR_DOC_NUM LOT_NUMBER po_lines_interface LOT_EXPIRATION_DATE INTERFACE_LINE_ID TRANSACTION_QUANTITY INTERFACE_HEADER_ID TRANSACTION_INTERFACE_ID po_interface_errors SERIAL_TRANSACTION_TEMP_ID Receiving Interface mtl_serial_numbers_interface rcv_headers_interface TRANSACTION_INTERFACE_ ID HEADER_INTERFACE_ID FM_SERIAL_NUMBER GROUP_ID Item Interface PROCESSING_STATUS_CODE MTL_SYSTEM_ITEMS_INTERFACE RECEIPT_SOURCE_CODE PROCESS_FLAG VENDOR_NAME TRANSACTION_TYPE VENDOR_NUM SET_PROCESS_ID VENDOR_ID ORGANIZATION_CODE VALIDATION_FLAG ITEM_NUMBER rcv_transactions_interface INTERFACE_TRANSACTION_ID GROUP_ID MTL_INTERFACE_ERRORS TRANSACTION_TYPE MTL_ITEM_CATE_INTERFACE TRANSACTION_DATE MTL_ITEM_REVI_INTERFACE PROCESSING_STATUS_CODE PROCESSING_MODE_CODE TRANSACTION_STATUS_CODE QUANTITY UNIT_OF_MEASURE ITEM_DESCRIPTION RECEIPT_SOURCE_CODE VENDOR_ID VENDOR_NUM VENDOR_NAME AUTO_TRANSACT_CODE SOURCE_DOCUMENT_CODE PO_HEADER_ID

DISCOUNT_ID RA_INTERFACE_DISTRIBUTIONS_ALL DISCOUNT_LINE_ID RA_INTERFACE_DISTRIBUTIONS_ALL DISCOUNT_NAME RA_INTERFACE_DISTRIBUTIONS_ALL OPERATION_CODE oe_credits_interface GL ORDER_SOURCE_ID GL_DAILY_RATES_INTERFACE ORIG_SYS_DOCUMENT_REF GL_INTERCOMPANY_ACCTS_V ORIG_SYS_LINE_REF GL_INTERFACE_CONTROL ORIG_SYS_SHIPMENT_REF GL_INTERFACE_GROUPS_V ORIG_SYS_CREDIT_REF GL_INTERFACE_HISTORY PERCENT GL_INTERFACE_SOURCES_V OE_LOTSERIALS_INTERFACE GL_INTERFACE OPERATION_CODE JE_SOURCE_NAME. ORDER_SOURCE_ID STATUS ORIG_SYS_DOCUMENT_REF SET_OF_BOOKS_ID ORIG_SYS_LINE_REF USER_JE_SOURCE_NAME ORIG_SYS_LOTSERIAL_REF USER_JE_CATEGORY_NAME QUANTITY ACCOUNTING_DATE OPERATION_CODE CURRENCY_CODE OE_RESERVTNS_INTERFACE o Not Enter any value D oe_actions_interface TRANSACTION_DATE ORIG_SYS_DOCUMENT_REF JE_BATCH_ID OPERATION_CODE JE_HEADER_ID JE_LINE_NUM CHART_OF_ACCOUNTS_ID Validations Set of books Period name Source name Journal entry name Currency code Category name DOCUMENT_NUM Actual flag HEADER_INTERFACE_ID Encumbrance type ID VALIDATION_FLAG User conversion type Accounting date Budget version ID Reversal period GL_BUDGET_INTERFACE GL_BUDGET_INTERIM

Anil Kumar R V 5/6/2012Interfaces

Reports User Exits FND SRWINIT FND SRWEXIT FND FORMAT_CURRENCY FND FLEXIDVAL FND FLEXSQL

:p_org_id := TO_NUMBER(fnd_profile.VALUE('ORG_ID')); :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

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 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

HECKS' --ACCOUNTING_EVENT_ID = 77429

Status

Populated Tables

Column(status)

Value

Entered

oe_order_headers_all oe_order_lines_all oe_price_adjustments oe_order_price_attribs oe_order_holds_all

open_flag

Booked

oe_order_headers_all wsh_delivery_details

Booked_flag Released_status

Y R

Pick Released

wsh_delivery_details wsh_picking_batches mtl_reservations mtl_material_transactio ns_temp mtl_txn_request_headers mtl_txn_request_lines wsh_delivery_details

Released_status

(Fully)

(Partial)

S B name

wsh_new_deliveries wsh_delivery_assignments Pick Confirmed

wsh_delivery_details

Released_status

Ship Confirmed

wsh_delivery_details mtl_material_transactions wsh_new_deliveries

Released_status

C C

oe_order_lines_all wsh_delivery_legs

Shipped_quantity

oe_order_headers_all Autoinvoice wsh_delivery_details ra_interface_lines_all ra_customer_trx_all ra_customer_trx_lines_all

open_flag Released_status

N I

Description/transactions

Others 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

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 No records in wsh_delivery_assignments and wsh_new_deliveries Released to Warehouse (Line has been released to Inventory for processing) After batch is created for pick release. This is only soft reservations. No physical movement of stock No records in mtl_material_transactions

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 Pick Release API / Pick Confirm API

Move Order (Creation - Transaction)

Released to warehouse. Backordered Line failed to be allocated in Inventory if Auto-Create is Yes then data populated. deliveries get assigned Hard Reservations. Picked the stock. Physical movement of stock Line has been picked and staged by Inventory Subinventory to staging area. Packing slip. Y To C:Shipped ;Delivery Note get printed Delivery assigned to trip stop quantity will be decreased from staged On the ship confirm form, check Ship all box If Defer Interface is checked I.e its deferred then Interface Trip Stop--Sales Order Issue Transaction in Material Transaction and reservation is releived

OM & inventory not updated. If Defer Interface is not checked.: Shipped 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

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 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 hr where gl.set_of_books_id=hr.set_of_books_id select * from wsh_delivery_details where organization_id=4160 and serial_number is not null select * from mtl_system_items where inventory_item_id=198 Select * from dba_views where view_name like 'BCIWSH_FG_AVAIL_ONHANDS_V' select select select select * from * from * from * from oe_order_headers_all where order_number=75001141 oe_order_lines_all where header_id= 6354017 wsh_delivery_details where source_header_id= 6354017 wsh_new_deliveries where delivery_id = 12041579

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

You might also like