Field help (CODNUM) 

It is mandatory that the code a sequence number counter associated with the defined order type be entered, whether the number assignment is automatic or manual.
Is it recommended to first define a sequence number counter in the Sequence number definition table. You can access this table by clicking the Actions icon on this field.