已知接受號,如何查這筆接受傳到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 提供,在此謝過!