It seems that a more reliable way to identify voided POs is by searching table POP30100 where the column TRXSORCE value starts with 'POPVT' or where STATGRP is 0 or 1. Run this SQL script, it should return the 132 POs in question: SELECT PONUMBER , POSTATUS , STATGRP , TRXSORCE FROM POP30100 WHERE ( TRXSORCE LIKE 'POPVT%' ) The following script should return the same results of the above script: SELECT PONUMBER , POSTATUS , STATGRP , TRXSORCE FROM POP30100 WHERE STATGRP IN ( 0 , 1 )
↧