Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

GuiXT issue

jakob_steen-petersen
Active Participant
0 Kudos

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?

3 REPLIES 3

maryshchak_conti
Explorer
0 Kudos

Hi,

you can read it from Status bar.

Set StatusBar = session.findById("wnd[0]/sbar")

  If StatusBar.Messagetype = "E" Then

    MsgBox ("Error")

Good luck

0 Kudos

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

0 Kudos

Hi Jacob,

the syntax for GuiXT script is as follows:

if V[_msgtype=W]


Regards,

ScriptMan