Check the routine assigned at the field Qty Proposal at SPRO->Logistics-Genearl->batch management ->batch determination and batch check ->strategy types -> define sales and distribution strategy types. Here select the strategy type used and go to details. Then check the routine assigned here. You may need to copy the routine and create a new one with additional logic to filter the in-valid batches. Discuss with an ABAP'er on your requirements.
Regards,