Many standard APEX themes and templates contain a region where process success or failure messages are displayed. This area is also used to display validation failure errors.
You can provide custom messages in this area using the apex_application package.
The syntax is shown below :
apex_application.g_print_success_message := 'custom message goes here';