Does your material have a batch classification 022 or 023?
Do your existing batches have a batch classification?
FIFO is usually based on GR date, not on the batch number itself and not on shelf life expiration date (this is called FEFO - first expire, first out)
Please search SCN with have many wikis and documents and discussions that explain step by step with pictures how to setup batch determination.