Jump to content

read sap username


stef03
 Share

Recommended Posts

Hello,

I need help, I searching to get the username of the active SAP session with autoit. The sap username is different from the windows username .We use one computer with different SAPUSERS and I like to change some options into the script depend the username sap.

Thank you in advance

Sorry for my bad english

Link to comment
Share on other sites

Hello,

I need help, I searching to get the username of the active SAP session with autoit. The sap username is different from the windows username .We use one computer with different SAPUSERS and I like to change some options into the script depend the username sap.

Thank you in advance

Sorry for my bad english

I don't know exactly what you're trying to do, but this should get you started.

#include <SAP.au3>

; Attach to the session with the window titled "SAP Easy Access"
_SAPSessAttach("SAP Easy Access")


$title = WinGetTitle("SAP Easy Access  -  User menu for ", "")

If $title = WinGetTitle("SAP Easy Access  -  User menu for stef03", "") Then 
    MsgBox(0, "Full title read was:", $title)

EndIf
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...