SAP Message 8A255 - Could not find lot for company code &1 and document &2

Diagnosis
The system was not able to determine which lot the document belongs to.

Procedure
Check the Customizing settings for your prenumbered documents.