Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

How to detect SAP Message Numbers

$
0
0

Im sharing mainly so I don't forget.

 

Detecting the SAP Feedback in a script from the status bar attributes.

 

'Error Area = Session.findById("wnd[0]/sbar/").MessageId

'Error Number = Session.findById("wnd[0]/sbar/").MessageNumber

'Error Type = Session.findById("wnd[0]/sbar/").MessageType

 

the MessageId will be padded with allot of spaces IE: "EL                  "

 

if anyone has a more elegant method of detecting these messages, let us all know.

 

Cheers

Daniel


Viewing all articles
Browse latest Browse all 8950

Trending Articles