SAP Message 8A251 - Cannot determine branch for company code & and shipping point &

Diagnosis
There is an official document class assigned to the delivery type. Thisassignment triggers an official numbering for this delivery, but it isactually not possible to determine an issuing branch.

System Response
The system will not be able to determine an official document number.

Procedure
Please ensure that the customizing is done in the right way. It is alsopossible to maintain the subsidiary on the document header level in the'General data'-screen.