SAP Message 8A256 - Could not book for company code &1 and document number &2

Diagnosis
Could not determine which book the document belongs to.

Procedure
Check the Customizing settings for your prenumbered documents.