SAP Message 9J031 - Could not find document type &

Diagnosis
The document type &V1& entered has not been defined in tableJ_3GBLARTT.

Procedure
This document type has to be created in Customizing.
Execute function