Skip to Content
avatar image
Former Member

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

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 04, 2017 at 11:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded