Quantcast
Channel: SCN : All Content - Business Server Pages (BSP)
Viewing all articles
Browse latest Browse all 296

ASSIGN JAVA VARIABLE TO ABAP VARIABLE IN BSP

$
0
0

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.


Viewing all articles
Browse latest Browse all 296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>