cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I am tired of searching and finding no clear answers.

So here is the situation. I have a vbscript file that automates the SAP GUI. My issue is that I need to get the status text from the status bar after every input is made.

I have tried using findById("wnd[0]/sbar").text, but it does not capture every warning or error message.

Does the status bar object have any other properties besides text?

Any type of response would be greatly appreciated.

-Thanks

0 Likes
View Entire Topic
Former Member
0 Likes

Hi there -
the Statusbar has also some "Status" Tags like "Warning, Error, Information"

This can be captured by using this little script:

Set sStatusBar = sapsession.findById("wnd[0]/sbar")

If sStatusBar.Messagetype = "W" Or sStatusBar.Messagetype = "E" Then 'Warning or Error

' Do Something

end if

Set sStatusBar = Nothing

Secondly every Message shoul have an ID

This can be handled by sStatusbar.MessageID and returns Integer Value

Greetings

Thomas B