查询FA折旧Accounting资料

 

以下查询透过SLA的几张table(xla_events/xla_transaction_entities/xla_ae_headers/xla_ae_lines),来查询资产具体折旧传票状况,包括折旧金额,是否抛转等信息。

Select fab.asset_number

       ,xah.period_name

       ,xe.event_type_code

       ,xe.event_status_code

       ,xe.process_status_code

       ,xah.gl_transfer_status_code

       ,xah.gl_transfer_date

       ,xah.accounting_entry_status_code

       ,gcc.segment1||'-'||gcc.segment2||'-'||gcc.segment3||'-'||gcc.segment4 account_name

       ,xal.gl_transfer_mode_code

       ,xal.gl_sl_link_id

       ,xal.gl_sl_link_table

       ,xal.accounting_class_code

       ,xal.ledger_id

       ,xal.currency_code

       ,xal.entered_dr

       ,xal.entered_cr

       ,xal.accounted_dr

       ,xal.accounted_cr     

From xla_events xe

     ,xla.xla_transaction_entities xte

     ,fa_books fb

     ,fa_additions_b fab

     ,xla_ae_headers xah

     ,xla_ae_lines xal

     ,gl_code_combinations gcc

Where xe.entity_id= xte.entity_id

      And xte.source_id_int_1=fb.asset_id

      And fb.asset_id = fab.asset_id

      And fb.book_type_code='AP ASSET BOOK'

      And xe.event_id=xah.event_id

      And xah.ae_header_id=xal.ae_header_id

      And xal.code_combination_id=gcc.code_combination_id

      And xe.event_id=6581336;

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值