oracle ebs 资产类别查询sql_骑驴闲逛的博客-爱代码爱编程
Oracle EBS 资产类别界面配置,决定资产创建、折旧、报废等一些列过程默认账户,而且一旦有资产引用相关类别,部分则不可以在进行修改(技术手段可以进行修改)。所以配置一定要严谨可以通过如下SQL进行检查配置内容:
SQL:SELECT fcv.segment1,
fcv.segment2,
fcb.book_type_code,
(SELECT gcc.concatenated_segments
FROM gl_code_combinations_kfv gcc
WHERE 1 = 1
AND gcc.code_combination_id = fcb.asset_cost_account_ccid) 资产成本,
(SELECT gcc.concatenated_segments
FROM gl_code_combinations_kfv gcc
WHERE 1 = 1
AND gcc.code_combination_id = fcb.asset_clearing_account_ccid) 资产结算,
(SELECT gcc.concatenated_segments
FROM gl_code_combinations_kfv gcc
WHERE 1 = 1
AND gcc.code_combination_id = fcb.deprn_expense_account_ccid) 折旧费用,
(SELECT gcc.concatenated_segments
FROM gl_code_combinations_kfv gcc
WHERE 1 = 1
AND gcc.code_combination_id = fcb.reserve_account_ccid) 累计折旧,
(SELECT gcc.concatenated_segments
FROM gl_code_combinations_kfv gcc
WHERE 1 = 1
AND gcc.code_combination_id = fcb.bonus_expense_account_ccid) 附加费用,
(SELECT gcc.concatenated_segments
FROM gl_code_combinations_kfv gcc
WHERE 1 = 1
AND gcc.code_combination_id = fcb.bonus_reserve_acct_ccid) 附加准备金,
fcbd.deprn_method 折旧方法,
trunc(fcbd.life_in_months / 12) 年限,
fcbd.life_in_months - trunc(fcbd.life_in_months / 12) * 12 月数,
fcbd.prorate_convention_code 折旧惯例,
fcbd.retirement_prorate_convention 报废惯例,
fcbd.percent_salvage_value * 100 || '%' 残值
FROM fa_categories_vl fcv,
fa_category_books fcb,
fa_category_book_defaults fcbd
WHERE 1 = 1
AND fcv.category_id = fcb.category_id
AND fcb.category_id = fcbd.category_id
AND fcb.book_type_code = fcbd.book_type_code
AND fcb.book_type_code IN ('资产账簿名称')
ORDER BY 3,
1,
2;
执行结果如图: