已知接受号,如何查这笔接受传到GL的分录?
1)可否在用户界面查找?
2)能否在后台通过关联GL_SL_LINK_ID来查找?
RCV_RECEIVING_SUB_LEDGER中的gl_sl_link_id <------> GL_JE_LINES中的gl_sl_link_id
把上面两表进行关联查询
其实RCV_RECEIVING_SUB_LEDGER表就是接收生成的会计分录信息,在生成这个的同时,也会传一份到gl_interface.
share一个SQL SCRIPTS
================================
select l.*
from gl.gl_je_lines l,
gl.gl_je_headers h,
po.rcv_receiving_sub_ledger rs,
po.rcv_transactions rt,
po.rcv_shipment_headers rsh
where h.set_of_books_id='&sob' --输入自己的sob
and h.je_header_id= l.je_header_id
and h.je_source='Purchasing'
and h.PERIOD_NAME='APR-09' ----修改成自己的期间
and l.gl_sl_link_id=rs.gl_sl_link_id
and rs.rcv_transaction_id=rt.transaction_id
and rsh.shipment_header_id=rt.shipment_header_id
and rsh.receipt_num='&receipt_num' --接收号
----此段代码由ITPUB上 richardliu1123 提供,在此谢过!