Not sure if this is what you are asking but I wil lattach the document on how to create variable substitution messages and use them (I'm sure it was posted somewhere here already and I know you can get it at Oracle but to save you time I will try to attach .. no gaurantee.
If this is not it you need to explain better.
Thanks,
Attachments
111943-Creating a Text Substitution Error Message.doc