A comment can be created for every available field on a panel. If a comment already exists for a field, the content of the field will be displayed in blue by default.
The following routines are provided by the COMMOD module:
Name | Type | Argument | Description |
---|---|---|---|
ComSaveText | Sub | ./. | Stores the entered comment in the table CMT. |
EditComment | Function | ./. | Displays the window for editing a comment. |
GetFldDesc | Sub | in arg text | Displays the field description of the current field in the title bar of the window for editing a comment. |
Implementing the comment function into a transaction requires three steps:
1. Adding the module COMMOD to the transaction.
2. Setting the arguments for COMMOD.
Argument | Type | Content |
---|---|---|
OBJINR | Argument | TRNMOD\TRN\INR |
OBJTYP | Constant | TRN |
OBJPATH | Constant | TRNMOD |
3. Setting the argument for the module MTABUT, which is integrated into the COMMOD module.
Argument | Type | Content |
---|---|---|
MTABUT | Constant | MTABUT |
In the field TAGCOMSTR (type “Stream”) all comments for the respective OBJTYP and OBJINR are available for other processes. In which way the content will be read out and used has to be decided and implemented individually.
The user can call the comment function for a field by right-clicking the mouse to select the respective context menu in the specific field.