Please try using the validation below
Pre-req
BKPF-BLART = 'ZZ' AND ( BSEG-BUKRS = 'AAAA' OR BSEG-BUKRS =
'BBBB' )
Check
BSEG-HKONT in SETABC
Message Error
in this case, when ever its a doc type ZZ in comp code AAAA or BBBB it will only posting only to GL accounts defined in set SETABC
regarding BTE's:
check 1020 or 1025
http://scn.sap.com/community/abap/connectivity/blog/2013/01/07/btes--business-transaction-events
do let me know if it works
Thanks
-N