You've to make settings for batch determination and batch check, then define batch strategies for searching batch managed material based on SLED and remaining shelf life time. Please explore the setting using the following function,
Spro --> Logistics General --> Batch Management --> Batch determination and Batch check.