由错误信息可知:AP模块中仍有没过到GL中的帐.
1.查apps.ap_ae_headers_all是否有没传送
select distinct c.gl_transfer_flag
from apps.ap_ae_headers_all c
where c.gl_transfer_flag='N'
(结果有,)
2.查没传送的明细帐
select d.*
from apps.ap_ae_headers_all c,
apps.ap_ae_lines_all d
where c.gl_transfer_flag='N'
and c.ae_header_id=d.ae_header_id
(结果有,)
3.查到GL中日记帐中是否有2中查询到的明细
SELECT ff.*
FROM gl.gl_je_lines ff,
(SELECT d.entered_dr, d.code_combination_id, d.reference5
FROM apps.ap_ae_lines_all d
WHERE d.ae_header_id IN (SELECT c.accounting_event_id
FROM apps.ap_ae_headers_all c
WHERE c.gl_transfer_flag = 'N')
AND d.entered_dr IS NOT NULL) aa
WHERE ff.code_combination_id = aa.code_combination_id
AND ff.reference_5 = aa.reference5
(结果有,)
如果没有,查询结果请转到第5步
4.更新apps.ap_ae_headers_all中的gl_transfer_flag,('N'--->'Y')
update apps.ap_ae_headers_all c
set c.gl_transfer_flag='Y'
where c.gl_transfer_flag='N'
(commit)
5.更新会计分录(由于系统某种原因,生成会计分录的时候出现故障)
故障原因:
在应用出现问题时,在没有通知在线用户时,就关闭应用导致.
阅读(2542) | 评论(0) | 转发(0) |