comment

The comment command creates blue-colored comments on the current SAP screen.

The comment command creates blue-colored text, indicating that the text in question is a comment. The on-screen position of the text can also be specified with the comment command. The syntax for the command is as follows:

comment([startRrow,startCol],  "text");

Options

The comment command takes the following option.

left

The left option draws a line from the comment to the closest input control or dropdownlist located to the right of the text. The syntax is as follows.

{"left":true}

Examples

We will demonstrate how comment works on the VA01 initial screen. The default screen appears as follows:



  1. Open the SAPMV45A.E0101.sjs script file. Create it if does not exist.
  2. Add the following code to the script file:

    comment([0,1], "Please fill out all required fields!");
  3. The screen will now appear as shown below:



  4. To demonstrate the 'left' option, please open the Easy Access script file and input the following code. We are placing a comment on the screen and an inputfield to the right.

    comment([3,3], " This is Text", {"left":true});
    inputfield([3,20], "Test 1", [3,30], {"left":true});
  5. Save your changes and refresh the SAP GUI screen. The Easy Access screen will now appear as shown below.