01-08-2016 2:29 PM
Hi
Don´t know very to ask GuiXT questions - but i will try here:
I have an requirement to read the value of a SAP system field (SY-MSGTY) in the script. Anyone who know how?
01-08-2016 2:57 PM
Hi,
you can read it from Status bar.
Set StatusBar = session.findById("wnd[0]/sbar")
If StatusBar.Messagetype = "E" Then
MsgBox ("Error")
Good luck
01-12-2016 12:54 PM
Hi Serhiy
Tried it but no luck (also i think the syntax is a little different from my usual GuiXT syntax?). I get this error:
I found that there is a system var called _msgtype and have tried with
if &V[_msgtype]=W
But i still get an error?
Any ideas?
Note: i want to check on message type W, i know im using E from yuur example but this was just to check the syntax...
01-18-2016 2:33 PM
Hi Jacob,
the syntax for GuiXT script is as follows:
if V[_msgtype=W]
Regards,
ScriptMan