SAP Message RU166 - Error in number assignment for error document (goods movement)

Diagnosis
When assigning a number for the document for the incorrect goodsmovement in client &V1& an error occurred. It is possible that thenumber range has not been fully maintained.

Procedure
You should check the definition of the number range 01 for the numberrange object AFFW_NR.
Start transaction SNUM, supply field NRIV-OBJECT with AFFW_NR.