cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the current user SAP user name (logon ID) in vbscript

Former Member
0 Kudos

Hi,

Im searching for a way to get the users login name and use it to create a query with it.

Login name like: SMITHA

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_schnell
Active Contributor
0 Kudos

Hello Paul,

you can use the User property of the GuiSessionInfo class:

UserName = session.Info.User
MsgBox UserName

Now you can use the variable UserName in your query.

Cheers
Stefan