Oracle EBS 根据FA事务处理追溯SLA到GL脚本

Oracle EBS 根据FA事务处理追溯SLA到GL脚本

注意:此脚本如果不满足业务场景,追加判断条件即可

SELECT fth.asset_id

     ,fth.transaction_header_id

     ,fav.asset_number

     ,xah.period_name

     ,xla_gcc.segment1

     ,xla_gcc.segment2

     ,xla_gcc.segment3

     ,xla_gcc.segment4

     ,xla_gcc.segment5

     ,xla_gcc.segment6

     ,xla_gcc.segment7

     ,xla_gcc.segment8

     ,gjh.name               je_name

     ,gjb.name               batch_name

  FROM fa_transaction_headers      fth

     ,fa_additions_v             fav

     ,fa_books_v                fbv

     ,xla.xla_transaction_entities xte

     ,xla.xla_ae_headers         xah

     ,xla.xla_ae_lines           xal

     ,gl_import_references        gir

     ,gl_je_headers              gjh

     ,gl_je_lines               gjl

     ,gl_code_combinations        gcc

     ,gl_code_combinations       xla_gcc

     ,gl_je_batches              gjb

 WHERE fth.transaction_header_id = xte.source_id_int_1

   AND fth.asset_id = fav.asset_id

   AND fav.asset_id = fbv.asset_id

   AND fth.book_type_code = fbv.book_type_code

   AND xte.application_id = 140

   AND xte.entity_code = 'TRANSACTIONS'

   AND fav.asset_number = &p_asset_number

   AND fbv.book_type_code = &p_book_type_code

   AND xah.entity_id = xte.entity_id

   AND xah.ledger_id = xte.ledger_id

   AND xah.period_name =&p_period_name

   AND xah.ae_header_id = xal.ae_header_id

   AND xal.application_id = '140'

   AND xal.gl_sl_link_id = gir.gl_sl_link_id

   AND gjh.je_header_id = gjl.je_header_id

   AND gjl.code_combination_id = gcc.code_combination_id

   AND gir.je_header_id = gjh.je_header_id

   AND gir.je_line_num = gjl.je_line_num

   AND gjb.je_batch_id = gjh.je_batch_id

   AND xal.code_combination_id = xla_gcc.code_combination_id

;

--刘轶鹤

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值