if you click the where-used button for message F5 193, then SAP shows you program MF05AFB0_BELEGDATUM_PRUEFEN and if you open this program by double click onto the short description, then you can see this coding:
if xgjahr ne bkpf-gjahr.
message w193.
endif.
And this means it is a hard coded warning message, because there is no selection on the table for variable error messages and no alternative message handling in the code.
So you can only modify this program to get an error message.