Why does system show error ‘Cannot insert null in cctr code’ while confirming misc debit note

Cause :System will not allow to confirm the misc dr note if the costcenter code is kept blank. System will show message ‘VTBLCCTRCD Blank Cost Center Code Please enter Cost Center Code, It can not be blank.’
Remedies:
Users should check if the costcenter code is selected and then confirm the record.