StatusMessage

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 
Options
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=
(Lines,Columns)
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]"
endif

-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   &nbs
p;   
// 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

Tips
&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.

StatusMessage