Purpose With StatusMessage  you can display status messages during the processing of an InputScript. With the first StatusMessage command, all system messages (including warnings and error messages) are also automatically included in the status message listbox.
Examples StatusMessage title="Creating material"

A listbox with the title  "Creating material" is displayed. All system messages and your own status messages are displayed during the processing of your InputScript.

StatusMessage addString="creating sales data..."

Adds a new line "creating sales data..." to the listbox.

Format StatusMessage  
title= A title should be given in the first StatusMessage command. You can change it later on if  necessary.
addString= A new text to be added to the listbox
stopRequest= If "StopRequest" is specified the text will be shown in the menu window. As soon as the user clicks on the menu entry, the internal status "StopRequest" is invoked and the InputScript can be queried by means of if Q[StopRequest], e.g. after Enter or during processing prior to display of a new sentence. The InputScript can then terminate various functions (e.g. close files) and terminate processing altogether.
Size of the listbox in lines and columns. If one of the values is given as 0, the previous value will be retained.
position= Position of the listbox in lines and columns, or in symbolic form. Examples:

... position=(10,40)

... position=[Company code]+(2,10) 

-resetContent Resets the content of the listbox
-remove Removes the listbox from screen
toText= Puts all messages into a text variable. Example: Put the command at the beginning of an InputScript

StatusMessage toText="msg"

and display all messages at the end

if text[msg]
Message "&text[msg]"

-setMsgId Displays the message id (application area and message number) for all SAP messages
systemMessages= Controls the inclusion of system messages into the status message window. You select the message types E (Error),  W (Warning), or I (Information) , or On / Off. Examples:

systemMessages=On         // All system messages (default)
systemMessages="E,W,I"    // same: all system messages (default)

systemMessages=Off        // No system messages
systemMessages=""         // same: no system messages

systemMessages="W"        // Warnings only

& Tricks
  • You can include variables in the  addString= parameter. Example:  with
    StatusMessage title="&V[_title]"
    you can display the title of the screen that you are processing.
Components GuiXT + InputAssistant