This article discusses how SAP can automatically determine which batch to use when creating a delivery based on the shelf life of the material. This is useful for industries like pharmaceuticals where batches closer to expiration should be delivered first. The document provides steps to configure SAP including importing standard characteristics, creating a class, setting up the material master, goods receipt, and multiple batches. It also demonstrates testing the configuration with a sales order, delivery, and billing document.