一、
應付帳款
--發票分錄
select
ai.invoice_num, xal.*
from
ap_invoices_allai,
xla_transaction_entities xte,
xla_eventsxe,
xla_ae_headersxah,
xla_ae_linesxal
where
ai.set_of_books_id =
2027
andai.set_of_books_id = xte.ledger_id
andai.invoice_id = xte.source_id_int_1
andai.invoice_num =
'4600060381@2012_1500000511_2'
andxte.entity_id = xe.entity_id
andxe.event_id = xah.event_id
andxal.ae_header_id = xah.ae_header_id
--付款分錄
select
ac.check_number, xal.*
from
ap_invoices_allai,
ap_invoice_payments_all aip,
ap_checks_all ac,
xla_transaction_entities xte,
xla_eventsxe,
xla_ae_headersxah,
xla_ae_linesxal
where
ai.set_of_books_id =』&sob_id』
andai.set_of_books_id = xte.ledger_id
andac.check_id = xte.source_id_int_1
andai.invoice_num =
'&invoice_num'
andxte.entity_id = xe.entity_id
andxe.event_id = xah.event_id
andxal.ae_header_id = xah.ae_header_id
andai.invoice_id=aip.invoice_id
andaip.check_id=ac.check_id 二、
應收帳款 三、
資產 fa_deprn_detail_h
折舊回滾表
fa_deprn_events 折舊事件表
注:r12回滾是基於資產卡片,r11i回滾是基於資產帳簿
--資產折舊
select
fa.tag_number, fdp.period_name, xal.*
from
fa_additions_bfa,
fa_deprn_detailfdd,
fa_deprn_periodsfdp,
xla_transaction_entities xte,
xla_eventsxe,
xla_ae_headersxah,
xla_ae_linesxal
where
fa.tag_number =
'&tag_number'
andfa.asset_id = fdd.asset_id
andxte.source_id_int_1 = fdd.asset_id
andxte.source_id_char_1 = fdd.book_type_code
andxte.source_id_int_2 = fdd.period_counter
andxte.source_id_int_3 = fdd.deprn_run_id
andfdp.book_type_code = fdd.book_type_code
andfdp.period_counter = fdd.period_counter
andxte.entity_id = xe.entity_id
andxah.event_id = xe.event_id
andxah.ae_header_id = xal.ae_header_id
--資產事務
select
xe.event_type_code,xah.event_type_code,xal.*
from
fa_transaction_headers fth,
xla_transaction_entities xte,
xla_eventsxe,
xla_ae_headersxah,
xla_ae_linesxal
where
fth.transaction_header_id=xte.source_id_int_1
andxte.entity_id = xe.entity_id
andxah.event_id = xe.event_id
andxah.ae_header_id = xal.ae_header_id
andfth.asset_id=
15008335
fa_asset_history
description:
historical information about asset reclassifications and unit adjustments
四、成本管理
--庫存
select
xe.event_type_code, xah.event_type_code, xal.*
from
mtl_transaction_accounts mta,
xla_transaction_entities xte,
xla_eventsxe,
xla_ae_headersxah,
xla_ae_linesxal
where
mta.organization_id =
277
andmta.transaction_id = xte.source_id_int_1
andmta.organization_id = xte.source_id_int_2
andmta.transaction_source_type_id = xte.source_id_int_3
andmta.transaction_id =
9871318
andxte.entity_id = xe.entity_id
andxe.event_id = xah.event_id
andxah.ae_header_id = xal.ae_header_id
--接收
select
xte.entity_code, xah.event_type_code, rae.event_source, xal.*
from
rcv_transactionsrt,
rcv_accounting_eventsrae,
xla_transaction_entities xte,
xla_eventsxe,
xla_ae_headersxah,
xla_ae_linesxal
where
rae.rcv_transaction_id = xte.source_id_int_1
andrae.accounting_event_id = xte.source_id_int_2
andrt.organization_id = xte.source_id_int_3
andrt.transaction_id =
498557
EBS R12中文公升級補丁
from method 2 1,解壓11.5.10 nls pack cd oracle stage11i oranls disk1 nls stage adcrptop.sh oracle stage11i oranls patch 需要先建立 patch目錄 2,檢查資料庫的字符集 sqlplu...
7 20 刪除字串中的子串(20 分)
輸入2個字串s1和s2,要求刪除字串s1中出現的所有子串s2,即結果字串中不能包含s2。輸入在2行中分別給出不超過80個字元長度的 以回車結束的2個非空字串,對應s1和s2。在一行中輸出刪除字串s1中出現的所有子串s2後的結果字串。tomcat is a male ccatat cattom is ...
7 4 刪除字串中的子串(20 分)
輸入2個字串s1和s2,要求刪除字串s1中出現的所有子串s2,即結果字串中不能包含s2。輸入在2行中分別給出不超過80個字元長度的 以回車結束的2個非空字串,對應s1和s2。在一行中輸出刪除字串s1中出現的所有子串s2後的結果字串。tomcat is a male ccatat cattom is ...