Hi Srini,
I understand you can manage your requirement by maintaining 180 days in the Total Shelf Life field in the Material Master. Then your Batches should be classified with the Expiration Date.
This way you will never select a Batches that is expired.
This is the SAP Help of the Total Shelf Life field of the Material Master (Plant Data / Stor 1):
Total shelf life
Period for which the material will keep in total, that is, from the date of production to the shelf life expiration date.
Use
- Value entered in the material master record
The system assumes that the date entered upon goods receipt is the material's date of production. It then calculates a shelf life expiration date from the date of production plus the total shelf life.
- No value entered in the material master record
The system assumes that the date entered upon goods receipt is the material's shelf life expiration date.
In both cases, the system updates the shelf life expiration date in the batch master record and in the material document if the goods receipt is accepted.
Dependencies
The period (day, week, month, year) depends on the entry in the Period indicator field.
The shelf life is checked upon goods receipt only if this check has been activated in Customizing for Inventory Management in the activity Set expiration date check.
Kind Regards,
Mariano