Jump to content
Sign in to follow this  

Help Needed : SAP UDF in _SAPObjValueGet

Recommended Posts



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")

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.




Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.