SAP Message 9J521 - You cannot enter equipment or materials for this document type

Diagnosis
The "allowed resources" indicator has not been maintained for documenttype &V1&.

Procedure
Check whether you have entered the correct document type or maintainthe "allowed resources" indicator in Customizing.
IF &DEVICE& = 'SCREEN'
Execute function
ENDIF