SAP Message 9J348 - Error whilst determining class type for catalog &

Procedure
You can set the message type in Customizing.
IF &DEVICE& = 'SCREEN'
Execute Function
ENDIF