Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch windows user in ABAP

anvesh_kumar3
Explorer
0 Kudos
347

Dears,

I want to fetch windows user within ABAP. For example in below path on my laptop "AnveshKuma" is the user.

"C:\Users\AnveshKumar\AppData\Local\Packages\SPIEInfoGraph-GISMobilGmb.GISMobilTMGA_zvbb3d808av1t\LocalState\das"

is this posssible in ABAP? Thanks!

3 REPLIES 3

gregorw
SAP Mentor
SAP Mentor
0 Kudos
297

Can you describe why you would need the windows username?

Marissa
Product and Topic Expert
Product and Topic Expert
0 Kudos
297

As this is not S/4HANA CE system, I removed tag SAP S/4HANA Cloud ABAP Environment.

FredericGirod
Active Contributor
0 Kudos
297

You could perform local command "whoami"