Hello SAP,
I am trying to get the windows user id in WDA.
I am unable to do it in WDA.
So , I started developing BSP to get the windows user id.
I write the java code where we can get the windows user id.
But, This vale I am unable to capture into abap variable.
Could you please let me know solution for this.
<%@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;
}
window.onload=getWindowsUserName;
</script>
here User name is java variable.