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_member709020
Participant
0 Likes

BTW...

I created an error trap which resolved to show the SAP status bar text just fine.  You could just as well direct this a txt log file:

On Error GoTo errSAP

~~your code~~

errSAP:

errMessage = session.FindById("wnd[0]/sbar").Text

MsgBox errMessage