Messages


1) Explanation of messages
Messages are language-dependent software components and are, therefore, maintained by language. The message code, however, is the same for all languages. Messages are used in program scripts and functions, and are linked to domains, tables, table fields, and form fields.
When scripts or functions are being programmed, it is possible to include messages. Consequently, once the scripts are compiled and the objects are executed, the matching messages can be displayed. 
1.1) Message types
Messages are named after the type of software component to which they are linked, namely:
Domain range message
This type of message is displayed when a value outside the specified range for that specific domain is entered.
Table update reference message
This type of message is displayed when an attempt is made to change the primary key to which another table refers.
Table delete reference message
This type of message is displayed when an attempt is made to delete the primary key to which another table refers.
Table field reference message
This type of message is displayed when a given value does not correspond with a record in the reference table.
Form field message
This type of message is displayed at the bottom line of the screen when the cursor is on this field.
1.2) Message codes
Each message is identified by a unique message code. For example:
2) Customizing and developing messages
Prerequisites
To be able to create new messages or customize existing ones, a number of prerequisites must be met, namely:

  • a working environment consisting of a user, company, package combination, and a current package VRC must be set up
  • a developer must be defined.
3) Maintain Messages (ttadv4151m000)
The Maintain Messages (ttadv4151m000) session is activated from the messages and questions menu and is used to define messages for program scripts, functions, domains, tables, and form fields. For each message code, a message description is specified.
Message descriptions can contain such codes as %s, %d, and %e to substitute strings, digits, and exponents. To handle formatted expressions, the sprintf$ function is used.


People who read this post also read :



0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More