壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2872|回复: 13

AP月结检查脚本

[复制链接]
发表于 2008/3/12 09:46:10 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
我经常用,省时省力。
--Check receipt but Pay on Receipt not run
SELECT DISTINCT rcv.organization_id, poh.segment1, rsh.receipt_num
           FROM apps.rcv_transactions rcv,
                apps.po_headers_all poh,
                apps.rcv_shipment_headers rsh
          WHERE rcv.destination_type_code = 'RECEIVING'
            AND rcv.invoice_status_code <> 'INVOICED'
            AND rcv.po_header_id = poh.po_header_id
            AND rsh.shipment_header_id = rcv.shipment_header_id
            AND poh.pay_on_code = 'RECEIPT'
            --AND rcv.transaction_type <> 'RETURN TO VENDOR'
            AND rcv.transaction_type = 'RECEIVE' ---modified line
            AND.....
            
            
--AP Interface Error
select invoice_num, ORG_ID, status from apps.ap_invoices_interface where status='REJECTED' and ....

--Unposted Invoice Distributions
select distinct invoice_id, accounting_date,
period_name, posted_flag, org_id, set_of_books_id
from apps.ap_invoice_distributions_all
where posted_flag = 'N'
and ...
--Unposted Payment Distributions
select invoice_id, accounting_date,
period_name, posted_flag, org_id, set_of_books_id
from apps.ap_invoice_payments_all
where posted_flag = 'N'
and org_id= ....
--Untransfered Journal Entries
select accounting_event_id, accounting_date, org_id,
PERIOD_NAME, gl_transfer_flag, set_of_books_id
from apps.ap_ae_headers_all
where gl_transfer_flag <> 'Y'
and ....
--Unconfirmed Payment Batch
select checkrun_name, org_id
from apps.ap_inv_selection_criteria_all
where STATUS NOT IN ('CONFIRMED','CANCELED','QUICKCHECK'  )
and (org_id is null) and ....
--AP bill qty <> Receipt Qty
SELECT distinct poh.segment1, poh.org_id
FROM apps.po_headers_all poh, apps.po_lines_all pol, apps.po_line_locations_all poll, apps.rcv_shipment_headers rsh, apps.rcv_transactions trx
WHERE poh.po_header_id = pol.po_header_id AND pol.po_line_id = poll.po_line_id
AND trx.po_header_id = poh.po_header_id AND trx.transaction_type = 'RETURN TO VENDOR'
AND trx.shipment_header_id = rsh.shipment_header_id
AND poll.quantity_received < poll.quantity_billed AND ...
--Ungenerated Intercompany AP
select rah.interface_header_attribute4, rah.trx_number from apps.ra_customer_trx_all rah
where rah.interface_header_context='INTERCOMPANY' and rah.trx_number not in (
select invoice_num from apps.AP_EXPENSE_REPORT_HEADERS_ALL) and rah.customer_trx_id in
(select distinct customer_trx_id from apps.ra_customer_trx_lines_all where EXTENDED_AMOUNT<>0)
and .....
发表于 2008/3/12 17:26:29 | 显示全部楼层
看下,到底是做什么用的~~
发表于 2008/3/12 17:27:39 | 显示全部楼层
确实好东西,谢谢楼主
发表于 2008/3/13 09:34:11 | 显示全部楼层
不明白是什么意思啊?
发表于 2008/3/14 23:35:42 | 显示全部楼层
这是11版的
发表于 2008/3/18 21:37:15 | 显示全部楼层
说不定用的着,顶下,别沉了
发表于 2009/5/21 17:09:16 | 显示全部楼层
谢谢,好玩意
发表于 2009/6/2 19:30:56 | 显示全部楼层
收藏下
发表于 2009/6/11 23:09:26 | 显示全部楼层
:/guzhang
发表于 2009/6/12 12:01:31 | 显示全部楼层
mark下,以后再看。
发表于 2009/10/8 16:30:02 | 显示全部楼层
^^   
发表于 2009/10/31 23:26:17 | 显示全部楼层
楼主第一QUERY : Check receipt but Pay on Receipt not run
是不是检查那些,REICEPT HAS BEEN RECEIVED , BUT NOT BE INVOCIED IN AP
JUST WANT TO CONFIRM
我也做月结,但AP 这块我们是不做的,所以想请教下楼主
发表于 2009/11/25 14:37:45 | 显示全部楼层
的确不错    好东西
发表于 2009/11/25 16:22:19 | 显示全部楼层
學習一下!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 05:08 , Processed in 0.021944 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表