Table of Contents

Comment Function in Business Transactions

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.

How to Implement the Comment Function into a Transaction

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

Using Comments

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.

Calling the Comment Function by the User

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.