get windows user in bsp

Nov 26, 2016 at 11:24 AM


avatar image
Former Member


I want to get windows user in BSP , I used this source :

<%@page language="abap"%>

<%@extension name="htmlb" prefix="htmlb"%>

<input type="text" name="curruser" id="curruser" disabled="disabled" value="[UserName]">

<script language="javascript" type="text/javascript">

function getWindowsUserName()


var WinNetwork = new ActiveXObject("WScript.Network");

var UserName = ( WinNetwork.UserName );

document.getElementById('curruser').value = UserName;




but new ActiveXObject dosen't work in bsp but in notebad and save html is it true.

are there any way to get windows user ?

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

0 Answers

Skip to Content