Sign in to follow this  
Followers 0
sagarphirke

Help Needed : SAP UDF in _SAPObjValueGet

1 post in this topic

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

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  
Followers 0