SAP Message 9J040 - Doc. type & does not allow recipient category & (&) as intrmdte recipient

Diagnosis
Document type &V1& does not allow entry of an intermediate recipient
in combination with recipient category &V2& &V3&.

Procedure
Maintain the appropriate indicator in the "Maintain RecipientCategories per Document Type" table in Customizing.
IF &DEVICE& = 'SCREEN'
Execute function
ENDIF