Read Status Bar

Reads the message shown in the status bar of the SAP GUI main window. If more than one SAP session is open, the first session of the first connection is read. The activity does not throw errors: if not connected to SAP, if no session is found or if the time runs out, all outputs are returned empty (MessageData an empty array, the others an empty string).


⬅️INPUT

Parameter

Type

Required

Description

Timeout

TimeSpan

❌ No

Maximum time to wait for a response from SAP. If empty, 0 or negative, 30 seconds.


➡️OUTPUT

Parameter

Type

Description

MessageData

String[]

Variable values in the message (e.g. the number of the created document), in order. An empty array if there are no variables.

MessageId

String

Message class (message ID).

MessageNumber

String

Message number.

MessageText

String

Text shown in the status bar.

MessageType

String

Message type: S (success), E (error), W (warning), I (information), A (abort). Empty if there is no message in the status bar.