Skip to Content
0

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

May 04, 2017 at 06:17 AM

146

avatar image

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Stefan Schnell
May 04, 2017 at 11:33 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded