sagarphirke Posted January 20, 2014 Posted January 20, 2014 Hi; I wanted to check the error message that is shown in the Status Bar of the SAP Screen in particular Transaction. I tried below code.But every time it returns "0". Can anyone let me know why this is happening ? It seems the message text in the Status-bar is not being read. Below is my script. #include <SAP.au3> _SAPSessAttach("Reverse Meter Reading") If @error Then MsgBox(0, "ERROR !", "Press OK to Save File and Exit") EndIf ConsoleWrite("""Status bar"" = " & _SAPObjValueGet("sbar") & @CRLF) Below is the output which I got. --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop "Status bar" = 0 +>15:15:53 AutoIt3.exe ended.rc:0 >Exit code: 0 Time: 1.448 Please help. regards; sagar
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now