Hi,
For Automatic scarping, I think you need to go with custom development.
Search material or stock with date shelf life. Then with help of custom program in back ground, generate quality lot for the material with specific Shelf life date or Stock transfer to other storage location.
From there you can scrap manually or this can also done with same custom development.
Thank you,
Ashish