cancel
Showing results for 
Search instead for 
Did you mean: 

How get Windows username in WDA through BSP?

Former Member
0 Kudos

Hi

I need get Windows username for Web Dynpro application. But I read many articles, but in WDA is it impossible.

I found article about BSP where is possible http://scn.sap.com/thread/963234

Is it possible from WDA run BSP (on background) and get data (username) from this application?

How?

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197475
Active Contributor
0 Kudos

Hi Smoula,

Have you checked this thread

Hope it gets you through in.

BR,

RAM.

Former Member
0 Kudos

Hi Ramakrishnan Murugan

I create BSP application who give username to form.

But I don't know how read data from this application in Web Dynpro?

How run BSP in WDA (on background)?

Best regards

Former Member
0 Kudos

With new SAP Releases, you can use JavaScript within WebDynpro. You can check if this elements are available in your System.

Former Member
0 Kudos

Hi Christopher B.

It was awesome when I can use JavaScript in WDA. Can you tell (or send link) more about this?

Best regards

Former Member
0 Kudos

Google is your friend...

Former Member
0 Kudos

I found only example WDR_TEST_HTML_CONTAINER

and I see in MIME a script

But I don't found how call JS Function and assign value to WDA Context variable

Former Member
0 Kudos

I can use this syntax for return UserName in JavaScript? (I think WBA have a different syntax how JS)

GetUserName : function ( )

{

    var wshell = new ActiveXObject("WScript.Shell");

    return wshell.ExpandEnvironmentStrings("%USERNAME%");

};

I can use HTMLIsland (is client - I think this) or HTMLContainer?