Order confirmation: MESSAGE_TYPE_NOT_VALID

[] [] [] [] [] [] [] [] [] [] []

Symptom
When you confirm process orders, the system terminates with the ABAP dump “MESSAGE_TYPE_NOT_VALID”.
Other terms
MESSAGE_TYPE_NOT_VALID, CORK, BS033, BS 003, confirm order
Reason and Prerequisites
There is a program error.
Solution
Implement the attached correction.