Sign in to follow this  
Followers 0
stef03

read sap username

2 posts in this topic

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

Share this post


Link to post
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

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