When I use the above it shows me message as "XXAP_MSG1". Its not pulling in the messages from the application. Its treating "XXAP_MSG1" as a string which is Incorrect. I defined a message by name "XXAP_MSG1" in the application. I am using Forms Builder 10g.
FND_MESSAGE.SET_NAME ('XXAP','XXAP_MSG1'); FND_MESSAGE.SET_TOKEN ('TASK_NUMBER', 'testing'); FND_MESSAGE.ERROR;