ORACLE EBS常用表
call fnd_global.APPS_INITIALIZE(1318,50583,401)
select fnd_profile.VALUE('ORG_ID') FROM DUAL
select * from hr_operating_units hou where hou.organization_id=204
--fnd
select * from fnd_application
select * from fnd_application_tl where application_id=101
select * from fnd_application_vl where application_id = 101
----值集
select * from fnd_flex_value_sets
select * from fnd_flex_values
select * from fnd_flex_values_vl
----彈性域
select * from fnd_id_flexs
select * from fnd_id_flex_structures where id_flex_code='GL#'
select * from fnd_id_flex_segments where id_flex_code='GL#' and id_flex_num=50671
select * from fnd_profile_options_vl
select * from fnd_concurrent_programs 程式表
select * from fnd_concurrent_requests 請求表
select * from fnd_concurrent_processes 程序表
--inv
select * from org_organization_definitions 庫存組織
select * from mtl_parameters 組織引數
select * from mtl_system_items_b where inventory_item_id = 171 and organization_id=204 物料表
select * from mtl_secondary_inventories 子庫存
select * from mtl_item_locations 貨位
select * from mtl_lot_numbers 批次
select * from mtl_onhand_quantities 現有量表
select * from mtl_reserviations 保留量表
select * from mtl_serial_numbers 序列
select * from mtl_material_transactions 物料事務記錄
select * from mtl_transaction_accounts 會計分錄
select * from mtl_transaction_types 事務型別
select * from mtl_txn_source_types 事務來源型別
select * from mfg_lookups ml where ml.LOOKUP_TYPE = 'MTL_TRANSACTION_ACTION'
--po
select * from po_requisition_headers_all 請求頭
select * from po_requisition_lines_all 請求行
select * from po_headers_all 訂單頭
select * from po_lines_all 訂單行
select * from po_line_locations_all
select * from po_distributions_all 分配
select * from po_releases_all 傳送
select * from rcv_shipment_headers 採購接收頭
select * from rcv_shipment_lines 採購接收行
select * from rcv_transactions 接收事務處理
select * from po_agents
select * from po_vendors 訂單
select * from po_vendor_sites_all
--oe
select * from ra_customers 客戶
select * from ra_addresses_all 地址
select * from ra_site_uses_all 使用者
select * from oe_order_headers_all 銷售頭
select * from oe_order_lines_all 銷售行
select * from wsh_new_deliveries 傳送
select * from wsh_delivery_details
select * from wsh_delivery_assignments
--gl
select * from gl_sets_of_books 總帳
select * from gl_code_combinations gcc where gcc.summary_flag='Y' 科目組合
select * from gl_balances 科目餘額
select * from gl_je_batches 憑證批
select * from gl_je_headers 憑證頭
select * from gl_je_lines 憑證行
select * from gl_je_categories 憑證分類
select * from gl_je_sources 憑證來源
select * from gl_summary_templates 科目彙總模板
select * from gl_account_hierarchies 科目彙總模板層次
--ar
select * from ar_batches_all 事務處理批
select * from ra_customer_trx_all 發票頭
select * from ra_customer_trx_lines_all 發票行
select * from ra_cust_trx_line_gl_dist_all 發票分配
select * from ar_cash_receipts_all 收款
select * from ar_receivable_applications_all 核銷
select * from ar_payment_schedules_all 發票調整
select * from ar_adjustments_all 會計分錄
select * from ar_distributions_all 付款計劃
--ap
select * from ap_invoices_all 發票頭
select * from ap_invoice_distributions_all 發票行
select * from ap_payment_schedules_all 付款計劃
select * from ap_check_stocks_all 單據
select * from ap_checks_all 付款
select * from ap_bank_branches 銀行
select * from ap_bank_accounts_all 銀行帳號
select * from ap_invoice_payments_all 核銷
========================華麗的分割線=========================
INV庫存
organization 兩個含義:
1. 經營單位,A/B/C分公司,A下面有A1,A2等工廠,主題目標是為了獨立核算此組織
ORG,ORG_ID;
2. 庫存組織,例如製造商的倉庫,例如A1,A2等工廠
Organization_id;
HR_ORGANIZATION_UNITS -
Org_organization_definitions
Mtl_subinventory_ 庫存組織單位
MTL_PARAMETERS -庫存組織引數(沒有用ID,直接用name)
MTL_SYSTEM_ITEMS_b -物料資訊(同上,應用了庫存組織name)
MTL_SECONDARY_INVENTORIES -子庫存組織 -
MTL_ITEM_LOCATTIONS -貨位 - SUBINVENTROY_CODE
Mtl_Material_Transactions - (庫存)物料事物表
成本 mtl_transaction_accounts
transaction_cost是事物成本;
ACTUAL_COST是通過成本演算法計算出來的實際成本,主計量單位
現有量
彙總歷史記錄(正負合計)
Mtl_Material_Transactions
MTL_ONHAND_QUANTITIES現有量表,組織/子庫存/貨位/物品 summary可能按照挑庫先進先出統計,如果設定了"不允許負庫存",這樣就不可能出現負數
PO
請購單頭表
Po_Requisition_Headers_all
行表
Po_Requisition_lines_all
採購訂單
PO_HEADER_ALL
PO_LINES_ALL
採購接收-退貨/組織間轉移/正常狀態 都需要使用這個模組
RCV_TRANSACTIONS
1. 接收100單位貨物,放入“待質檢”貨位
2. 接受/拒絕
3. 庫存/退回
有三個不同的狀態!例如:接收100個,80個接受入庫,20個退回,那麼有80個接受事務/20個退回事物
select TRANSACTION_TYPE,DESTINATION_TYPE_CODE from RCV_TRANSACTIONS
可以看出以下階段:
A1.RECEIVE – RECEIVING
A2.ACCEPT – RECEIVING
A3.DELIERY – INVETORY(影響庫存現有量)
如果按照正常模式,最後會觸發產生MTL_MATERIAL_TRANSACTIONS
銷售訂單
OE_ORDER_headers_all
SOLD_FROM_ORG_ID
SOLD_TO_ORG_ID 就是客戶層
SHIP_FROM_ORG_ID
SHIP_TO_ORG_ID 就是客戶收貨層
INVOICE_TO_ORG_ID 就是客戶收單層
DELIVER_TO_ORG_ID
和客戶結構有關
客戶 RA_customers
客戶Address Ra_Addresses
Address 貨品抵達 site RA_SITE_USES_ALL
Address 發票抵達 site
OE_ORDER_LINEs_all
GL憑證
gl_je_batches
憑證日期: DEFAULT_EFFECTIVE_DATE
會計期間: DEFAULT_PERIOD_NAME
原幣種憑證批借貸方彙總: RUNNING_TOTAL_DR/CR 比如美元
本位幣憑證批借貸方彙總: RUNNING_TOTAL_ACCOUNTED_DR/CR
gl_je_headers日記賬頭資訊
批號: JE_BATCH_ID
會計期間: PERIOD_NAME
幣種: CURRENCY_CODE
匯率型別: CURRENCY_CONVERSION_TYPE
匯率日期: CURRENCY_CONVERSION_DATE
帳套: SET_OF_BOOKS_ID 參考 GL_SETS_OF_BOOKS
憑證型別: JE_CATEGORY 參考 GL_JE_SOURCES
憑證來源: JE_SOURCE
gl_je_lines日記賬體資訊
CODE_COMBINATION_ID 科目組合編號
GL_BALANCES 總帳餘額
PERIOD_NET_DR/CR 淨值
BEGIN_BALANCE_DR/CR 期初額
AR應收發票
RA_CUSTOMER_TRX_ALL
CUSTOMER_TRX_ID 發票編號
BILL_TO_SITE_USE_ID 客戶收單方編號
PRIMARY_SALES_ID銷售員
REFERENCE是Oracle提供的外部編號輸入框,但是由於版本問題和長度(<=30),不建議使用者使用,如果要使用外部編號,請使用說明性彈性域
RA_CUSTOMER_TRX_LINES_ALL
LINE_ID 行號
INVENTORY_ITEM_ID 可以為空,比如非物料的服務,只在DE script ION中出現 /稅行
DE script ION
QUANTITY_INVOICE 開票數量
LINE_TYPE 行型別 (一般/稅)
EXTEND_PRICE 本行金額
注意:稅行是隱藏行,所以至少會有兩行
收款情況
AR_CASH_RECEIPTS_ALL(還包含了非收款資訊)
CASH_RECEIPT_ID 內部code
RECEIPT_NUMBER 收款號
RECEIPT_DATE 收款日期
AMOUNT 總額
RECEIPT_TYPE 現金/雜項 Cash/Misc
FUNCTIONAL_AMOUNT 本位幣計量金額
UI上為RECEIPTS
核銷關係不是一一對應,也不是一次核銷100%,UI上右下方的Application 按鈕
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
AP
應付帳款(是我方人員按照供應商提供的紙張發票資訊錄入)UI 上的invoice
AP_INVOICES_ALL
實際付款PAYMENT
AP_CHECKS_ALL
核銷關係 同AR,右下方的Payment 按鈕
AP_INVOICE_PAYMENTS_ALL客戶餘額表,情況比較複雜:比如兩個使用者合併,應收應付差額,預付款
資產資訊FA_ADDITIONS
名稱
編號
分類
數量
資產類別
FA_CATEGORIES
資產帳簿
FA_BOOK_CONTROLS 和會計帳簿有什麼關係?
FA_BOOKS
UI中的Inquiry
Mothed是折舊方法(直線法/產量法)
FA_DISTRIBUTION_HISTORY分配assignment,給什麼部門使用多少
LOCATION_ID 部門 聯查FA_LOCATIONS
折舊資訊(分攤方法)
FA_DEPRN_DETAIL
period_counter 折舊期間編號
折舊事務(新增、重建、轉移、報廢)
FA_TRANSACTION_HEADERS
========================華麗的分割線=========================
fnd_user --- 系統使用者表
po_vendors --- 供應商資訊表
po_vendor_sites --- 供應商地點資訊表
hr_organization_units --- 組織及庫存組織表
per_people_f --- 員工表
wip_entities --- 作業名資訊表
wip_discrete_jobs --- 離散作業表
wip_requirement_operations --- 作業名物料需求發放表
po_headers_all --- 採購訂單頭表
po_lines_all --- 採購訂單行表
po_line_locations_all --- 採購行地點表
rcv_transactions --- 接收交易表
bom_bill_of_materials --- 物料清單表
bom_inventory_components --- 物料清單構成表
mtl_system_items --- 物料主表
mtl_onhand_quantities --- 庫存資料表
mtl_item_locations --- 專案貨位表
mtl_material_transactions --- 出入庫記錄表
mtl_supply --- 供應表
mtl_demand --- 需求表
----=====================-下面的是用於修改表單註冊情況========-------
select * from FND_FORM_VL where form_name='出貨資訊' order by last_update_date desc
update FND_FORM set form_name='OUTINVINFO' where form_id=58864
select * from fnd_form where form_name='出貨資訊'
commit;
-------===========================-----------
select item as 物料,subinventory as 子庫存,locator as 貨位,results_transaction_uom as 單位 from MTL_TXN_REQUEST_HEADERS_V
select lot_number as 批次,LOT_EXPIRATION_DATE as 到期日,pimary_quantity as 數量 from MTL_TXN_REQUEST_LINES_V
/*==================物料傳送請求行檢視==================================*/
select * from MTL_TXN_REQUEST_LINES_V
select * from MTL_TXN_REQUEST_HEADERS_V
-----其他資訊從OE上取
---------organization_id = :parameter.org_id ----------
select * from MTL_ONHAND_LOCATOR_V
select * from MTL_MATERIAL_TRANSACTIONS_TEMP
select * from MTL_SERIAL_NUMBERS_TEMP
select * from MTL_TRANSACTION_LOTS_TEMP
---------------------------------------------------------
通過PO, 找點收單號:
===========================================================
通過PO, 找點收單號:
作者: moonsoft(http://moonsoft.itpub.net)
發表於: 2006.05.08 16:20
分類: 分銷
出處: http://moonsoft.itpub.net/post/15182/86513
---------------------------------------------------------------
select rsh.receipt_num
from po_headers_all poh,
rcv_shipment_headers rsh,
rcv_shipment_lines rsl,
po_lines_all pol,
po_line_locations_all poll
where
poh.segment1='20600021'
and
poh.po_header_id=pol.po_header_id
and
pol.po_line_id=poll.po_line_id
and
poll.line_location_id=rsl.po_line_location_id
and
rsh.SHIPMENT_HEADER_ID=rsl.shipment_header_id
/*--------------------------//接收事務處理------------------------************/
select * from RCV_TRANSACTIONS_V
select * from RCV_TRANSACTIONS_INTERFACE
select * from MTL_TRANSACTION_LOTS_TEMP
select * from MTL_SERIAL_NUMBERS_TEMP ----------條碼-----------
select * from QA_RESULTS_V
select * from ic_lots_mst
select * from mtl_serial_numbers ----------條碼錶-----------
select * from wms_license_plate_numbers
select * from rcv_lots_supply
select * from oe_lot_serial_numbers ----------銷售訂單批次條碼---------------
select * from rcv_transactions -----//接收事務處理----
select * from sy_reas_cds
select * from mtl_serial_numbers_all_v
select * from qa_plan_char_value_lookups
select * from mtl_lot_numbers
select * from mtl_serial_numbers-------------序列號
select * from wip_operations_all_v
select * from cs_counter_values
select * from wip_discrete_jobs_all_v
select * from cs_incidents
select * from qa_ahl_mr
select * from cs_counters
select * from qa_csi_item_instances
select * from mtl_system_items_kfv
select * from wms_lpn_contents
select * from ic_item_mst
select * from ic_tran_pnd
select * from ic_loct_inv
select * from ic_loct_mst
select * from hr_employees------------人事人員
select * from pjm_projects_all_v
select * from PA_TASKS_EXPEND_V
select * from wip_osp_jobs_val_v
select * from mtl_kanban_cards
select * from hr_locations_all --------人事組織檔案-----
select * from hr_locations_all_tl -------同上
select * from mtl_serial_numbers_all_v ---------序列檢視
select * from hz_parties----------
select * from po_pos_val_v
select * from rcv_transactions_interface
select * from PO_LINE_LOCATIONS
select * from PO_REQUISITION_LINES
select * from wip_discrete_jobs_all_v
select * from oke_k_headers_lov_v
select * from oke_k_lines_full_v
select * from oke_k_deliverables_vl
select * from OE_SOLD_TO_ORGS_V ------------
select * from cst_cost_groups --------
select * from rcv_shipment_headers ----------發運頭
select * from rcv_shipment_lines --------發運體
select * from rcv_transactions_interface
select * from oe_order_lines_all -----------訂單
select * from oe_order_headers_all ---------訂單
select * from oe_transaction_types_all ------訂單處理\交易型別
select * from MTL_TRANSACTION_TYPES-------交易的型別--
select * from oe_transaction_types_tl -------訂單處理型別
select * from rcv_transactions ------接收事務處理
select * from rcv_supply -----------
select * from oe_transaction_types
select * from oe_po_enter_receipts_v
select * from mtl_customer_items_all_v
select * from mtl_lot_issues_val_v ------------
select * from mtl_uom_conversions -----------
select * from mtl_uom_class_conversions --------------
select * from po_lines_supplier_items_v
select * from per_all_people_f ---------------
select * from financials_system_parameters
select * from org_freight ------運輸組織--------
select * from mtl_supply -------------物料供給
select * from org_organization_definitions --------------庫存組織定義
select * from po_vendor_sites
select * from rcv_sources_both_val_v ----------------
select * from rcv_suppliers_val_v -----------
select * from hr_locations_all ---------
select * from hr_locations_all_tl ------------
select * from mtl_item_revisions -----------
select * from mtl_system_items_kfv ----正規ID編碼,------
select * from po_requisition_lines
select * from financials_system_parameters
select * from po_lookup_codes ----------------
select * from po_requisition_headers
select * from rcv_shipment_lines---------
select * from rcv_transactions------------
select * from po_line_locations
select * from hr_locations_all_tl -----------
select * from po_releases
select * from po_pos_all_v
select * from po_pos_val_v
select * from per_all_people_f ------------
select * from rcv_transactions_interface
select * from mtl_serial_numbers ------------------SERIAL----------
select * from mtl_transaction_lots_temp
select * from mtl_employees_view ----------
select * from po_suppliers_val_v ---------------
select * from mtl_employees_current_view -------------
select * from mtl_item_status -------------------物料項狀態基礎表---------
select * from org_organization_definitions ------------
select * from mtl_secondary_inventories -----子庫存組織---------
select * from mtl_transaction_types ------------
select * from mtl_txn_source_types -----------
select * from mtl_system_items_vl ------------
select * from mtl_system_items_kfv --------
select * from mtl_category_sets_vl ---------
select * from mtl_physical_inventories_v ----------
select * from mtl_kanban_cards
select * from mtl_item_sub_inventories
select * from fnd_folders -------
select * from fnd_user --------系統使用者
select * from so_order_types_all ----------銷售訂單型別
select * from oe_order_headers_all ---------
select * from qa_customers_lov_v ---------
select * from qa_sales_orders_lov_v-----------
select * from PO_VENDORS -----採購供貨方-----
select * from po_shipments_all_v
select * from po_lines_val_v
select * from po_pos_val_v
select * from mtl_task_v
select * from pjm_projects_all_v
select * from qa_customers_lov_v ---
select * from mtl_item_revisions ----
select * from mtl_category_sets----
select * from wip_operations_all_v
select * from wip_first_open_schedule_v
select * from wip_discrete_jobs_all_v
select * from wip_lines_val_v
select * from mtl_item_uoms_view -----
select * from bom_resources_val_v
select * from bom_departments_val_v
select * from qa_plan_char_value_lookups ---------
select * from qa_plans-------
select * from qa_specs_v
select * from qa_specs_val_v
select * from po_lookup_codes -----
select * from hr_employees_current_v --------
select * from po_quality_codes
select * from mtl_transaction_reasons --庫存相關接轉資訊----
select * from mtl_uom_conversions_val_v ----
select * from mtl_uom_class_conversions ----
select * from hr_locations_all --------
select * from hr_locations_all_tl --------
select * from hz_locations -------
select * from hz_party_sites ---------
select * from hz_cust_site_uses_all --------
select * from hz_cust_acct_sites_all ---------
select * from hz_cust_accounts -----------
select * from oe_order_lines_all -----------
select * from oe_drop_ship_sources
select * from rcv_trx_int_lots_v
select * from mtl_rma_serial_temp
select * from rcv_trx_int_serials_v
select * from po_distributions
select * from pjm_projects_all_v
select * from po_distributions
select * from hr_locations_all_tl-----------
select * from hr_employees_current_v -------
select * from po_lookup_codes -----------
select * from pjm_projects_all_v
select * from pa_tasks_expend_v
select * from mtl_kanban_cards
select * from qa_plans_val_v ---------
------------------------------------------簽證分類
select t.meaning from fnd_lookup_values_vl t Where t.lookup_type='CUX_FC_QZYY'
-- 任務ID
Select Distinct A.Task_Number,A.Task_Name From pa_tasks A
---------------------------//發運------------------------------
select * from wsh_new_deliveries_v
select * from mtl_txn_request_lines_v
select * from oe_order_headers_v
select * from wsh.wsh_delivery_details
-------------------------//出貨資訊--------------------------
select * from oe_lot_serial_numbers ----訂單批次與序列號
select * from ic_lots_mst
select * from mtl_serial_numbers---------序列號
select * from rcv_transactions ---------接收處理
select * from gml_recv_trans_map
select * from ic_tran_pnd
select * from ic_loct_inv
select reason_code,reason_desc1 from sy_reas_cds order by 1
select * from MTL_MATERIAL_TRANSACTIONS--是物料交易表,
---------它存放著相關庫存物料的每一筆交易,或庫存更新的每一筆資料
----物料處理,(庫存)物料事物表
select * from MTL_CONSUMPTION_TXN_TEMP
select * from hr_locations_all -------------收貨地點檔案----------------
select * from hz_locations------交貨地點
select * from wms_lpn_contents
select * from mtl_subinventories_val_v ------------子庫----------------
select * from mtl_object_genealogy
select * from mtl_lot_numbers-----------物料批號
select * from mtl_lot_issues_val_v -----------物料批號發出
select * from wms_license_plate_numbers
select * from cst_cost_groups
select * from mtl_item_sub_val_v
select * from mtl_subinventories_trk_val_v----------
select * from mtl_item_sub_trk_val_v
select * from mtl_item_sub_exp_val_v
select * from mtl_sub_exp_val_v
select * from mtl_so_rma_interface
select * from mtl_system_items-------庫存、工程和採購物料的明細-物料資訊--
select * from mtl_item_revisions----------修訂
select * from bom_departments
select * from wip_lines_all_v
select * from wip_entities
select * from wip_discrete_jobs_all_v
select * from wsh_inv_delivery_details_v---------庫存存貨發放明細
select * from mtl_txn_request_lines--------請求
select * from mtl_material_transactions_temp
select * from mtl_transaction_types------物料處理型別
select * from pjm_unit_numbers_lov_v
select * from mtl_sales_orders----------------銷售訂單
select * from mtl_secondary_inventories ---------
select * from mtl_lot_numbers----------
select * from pjm_tasks_v
select * from pjm_projects_v
select * from pjm_project_parameters
select * from fnd_user --------------系統使用者
select * from mtl_txn_request_headers-------------頭
select * from mtl_txn_request_lines------------體
select * from mtl_onhand_quantities_detail----物料的庫存明細--------
select * from fnd_folders------------
select * from mtl_item_sub_inventories
select * from mtl_kanban_cards-------物料看板
select * from mtl_physical_inventories_v------物理庫存
select * from mtl_category_sets_vl---物料類別
select * from mtl_system_items_vl
select * from mtl_txn_source_types
select * from mtl_transaction_types---處理型別
select * from org_organization_definitions------庫存組織 where or
select * from mtl_item_status-----物料狀態
select * from mtl_employees_current_view------員工
select * from po_suppliers_val_v--------------採購供應商檢視
select * from mtl_employees_view-----------------員工
select * from mtl_transaction_lots_temp
select * from pa_projects_expend_v
select * from pa_tasks_expend_v
select * from pa_organizations_expend_v
select * from mtl_onhand_quantities_detail---------物料現存量明細
select * from mtl_lot_numbers----物料批號
select * from mtl_transaction_reasons------------物料處理原因
select * from mtl_item_uoms_view--------------物料單位mtl_units_of_measure
select * from mtl_so_rma_interface
select * from mtl_system_items------------物料項
select * from mtl_item_sub_ast_trk_val_v
select * from mtl_lot_issues_val_v-------------批次-
select * from mtl_so_rma_interface
select * from mtl_sub_ast_trk_val_v ---------------子庫
select * from pa_expenditure_types
select * from MTL_TXN_REQUEST_LINES_V--------------傳送請求
select * from MTL_SERIAL_NUMBERS_TEMP
select * from MTL_TRANSACTION_LOTS_TEMP
select * from MTL_MATERIAL_TRANSACTIONS_TEMP
select * from MTL_ITEM_LOCATTIONS---------------貨位
Select * from Po_Requisition_Headers_all------------請購單頭表
Select * from Po_Requisition_lines_all----------體表
Select * from PO_HEADER_ALL---------採購訂單頭
Select * from PO_LINES_ALL---採購訂單體
select * from wsh_pick_slip_v
select * from mtl_system_items_vl msi -- bug# 3306781
select * from wsh_delivery_details wdd
select * from mtl_txn_request_lines mtrl
select * from mtl_txn_request_headers mtrh
select * from wsh_delivery_assignments wda
select * from wsh_new_deliveries wnd
select * from oe_order_lines_all oola
select * from oe_sets os
select * from wsh_pick_grouping_rules wpgr
select * from hz_locations -------交貨位置表
select * from hr_locations_all-------收貨位置表
Select flex_value_set_id From apps.fnd_flex_value_sets
select * from MTL_TXN_REQUEST_LINES_V --查詢物料搬運單
SELECT
TRANSACTION_TYPE_NAME,TRANSACTION_TYPE_ID,TRANSACTION_ACTION_ID,
TRANSACTION_SOURCE_TYPE_ID,LINE_ID,REQUEST_NUMBER,HEADER_ID,
MOVE_ORDER_TYPE,MOVE_ORDER_TYPE_NAME,LINE_NUMBER,ORGANIZATION_ID,
INVENTORY_ITEM_ID,REVISION,FROM_SUBINVENTORY_CODE,FROM_LOCATOR_ID,
TO_SUBINVENTORY_CODE,FROM_SUB_LOCATOR_TYPE,TO_LOCATOR_ID,TO_ACCOUNT_ID,
LOT_NUMBER,SERIAL_NUMBER_START,SERIAL_NUMBER_END,UNIT_NUMBER,UOM_CODE,
QUANTITY,REQUIRED_QUANTITY,QUANTITY_DELIVERED,QUANTITY_DETAILED,DATE_REQUIRED,
REASON_ID,REFERENCE,REFERENCE_ID,REFERENCE_TYPE_CODE,PROJECT_ID,TASK_ID,
TRANSACTION_HEADER_ID,LINE_STATUS,STATUS_DATE,LAST_UPDATED_BY,
LAST_UPDATE_LOGIN,LAST_UPDATE_DATE,CREATED_BY,REQUEST_ID,CREATION_DATE,
PROGRAM_APPLICATION_ID,PROGRAM_ID,PROGRAM_UPDATE_DATE,ATTRIBUTE1,ATTRIBUTE2,
ATTRIBUTE3,ATTRIBUTE4,ATTRIBUTE5,ATTRIBUTE6,ATTRIBUTE7,ATTRIBUTE8,ATTRIBUTE9,ATTRIBUTE10
,ATTRIBUTE11,ATTRIBUTE12,ATTRIBUTE13,ATTRIBUTE14,ATTRIBUTE15,ATTRIBUTE_CATEGORY,
TO_SUB_LOCATOR_TYPE,FROM_SUB_ASSET,FROM_SUB_QUANTITY_TRACKED,FROM_SUB_MATERIAL_ACCOUNT,
TXN_SOURCE_ID,TXN_SOURCE_LINE_ID,TXN_SOURCE_LINE_DETAIL_ID,PRIMARY_QUANTITY,
TO_ORGANIZATION_ID,PICK_STRATEGY_ID,PUT_AWAY_STRATEGY_ID,SHIP_TO_LOCATION_ID
FROM MTL_TXN_REQUEST_LINES_V
WHERE organization_id = '117' AND -1=-1
and ( mtl_txn_request_lines_v.move_order_type != 6
AND mtl_txn_request_lines_v.request_number between '4009' AND '4009'
AND mtl_txn_request_lines_v.line_status in (3,7,9) ) and (REQUEST_NUMBER='4009')
order by REQUEST_NUMBER,MOVE_ORDER_TYPE_NAME,LINE_NUMBER
------哪個使用者鎖定了哪個表的SQL----
SELECT c.owner
,c.object_name
,c.object_type
,fu.user_name locking_fnd_user_name
,fl.start_time locking_fnd_user_login_time
,vs.module
,vs.machine
,vs.osuser
,vlocked.oracle_username
,vs.SID
,vp.pid
,vp.spid AS os_process
,vs.serial#
,vs.status
,vs.saddr
,vs.audsid
,vs.process
FROM fnd_logins fl
,fnd_user fu
,v$locked_object vlocked
,v$process vp
,v$session vs
,dba_objects c
WHERE vs.SID = vlocked.session_id
AND vlocked.object_id = c.object_id
AND vs.paddr = vp.addr
AND vp.spid = fl.process_spid(+)
AND vp.pid = fl.pid(+)
AND fl.user_id = fu.user_id(+)
--AND c.object_name LIKE '%' || UPPER('&tab_name_leaveblank4all') || '%'
AND NVL(vs.status
,'XX') != 'KILLED';
--------------
select * from oe_ra_cust_trx_hdr_v
select * from ar_payment_schedules_all
select * from oe_ra_customers_v-----------客戶名稱
select * from OE_PO_REQUISITION_LINES_V
------------==================
select
fyhzt.delivery_detail_id,
fyhzt.source_code as 源單類,
fyhzt.source_line_id as 源單行號,
fyhzt.source_header_id as 源單頭號,
fyhzt.header_number as 單據號,
fyhzt.line_number as 行號,
fyhzt.ship_method_code as 發運方式,
fyhzt.inventory_item_id as 物料ID,
fyhzt.requested_quantity as 請求數量,
fyhzt.shipped_quantity_uom as 發運單位,
fyhzt.shipped_quantity as 已發運,
fyhzt.requested_quantity_uom as 請求單位,
fyhzt.ship_set_id,
fyhzt.line_number as 批次號,
fyhzt.serial_number as 序列號從,
fyhzt.pick_status as 挑庫狀態,
fyhzt.pick_meaning as 挑庫狀態名稱,
fyhzt.delivery_id,
fyhzt.delivery_name,
fyhzt.delivery_status,
fyhzt.delivery_status_meaning as 發運狀態,
fyhzt.organization_id as 公司,
fyhzt.initial_pickup_location_id as 地點ID,
fyhzt.initial_pickup_location as 地點,
fyhzt.ultimate_dropoff_location_id,
fyhzt.ultimate_dropoff_location,
fyhzt.date_shipped,
fyhzt.date_received,
fyhzt.to_serial_number as 序列號止
from WSH_DELIVERY_LINE_STATUS_V fyhzt-------發運行狀態
-------------------------
select * from OE_ORDER_HEADERS_V
-------付款方式
select distinct t.name, t.description from ra_terms t order by t.name
--------收單地點
select * from hz_cust_site_uses_all
-------業務員
select * from JTF_RS_DEFRESOURCES_VL
-----------公司 名稱
select * from HR_ALL_ORGANIZATION_UNITS where organization_id=103