Skip to Content

Not able to find the a Window Id (NT-Accound Id) from ACTIVX directory used in BSP applictions

Mar 09, 2017 at 12:54 PM


avatar image

My target is to display Window Userid when a BSP page open after execution i.e when we execute the link of bsp page in the first page the user window id has to come automatically.

No to fullfill this requirement I have already written below code but once I execute the bsp page with this code its not giving me the USERID in the output...Any help will highly Appreciable

  1. <%@page language="abap" %>
  2. <%@extension name="htmlb" prefix="htmlb" %>
  3. <htmlb:contentdesign="design2003">
  4. <htmlb:pagetitle="User name in Windows">
  5. <formname="form1"method="POST">
  6. <BR><BR>
  7. <input type="text" name="user" type="text" value="<%= user%>">
  8. </form>
  9. script language="vbScript">
  10. Dim uname
  11. Set ows = CreateObject("WSCRIPT.Network")
  12. uname = ows.UserName
  13. document.form1.user.value = uname
  14. </script>
  15. </htmlb:page>
  16. </htmlb:content>

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

0 Answers