Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get machine user name

Former Member
0 Likes
1,553

friends, I need to know how to get the name of the user's machine

There are some functions for this ..?

example :

var = Get_ machine_user_name

thanks

8 REPLIES 8
Read only

Pawan_Kesari
Active Contributor
0 Likes
1,394

check table USR41 (terminal id with IP address during last logon)

or use FM TERMINAL_ID_GET

Edited by: Pawan Kesari on May 26, 2009 9:06 PM

Edited by: Pawan Kesari on May 26, 2009 9:08 PM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,394

Hello,

You can use the method GET_COMPUTER_NAME of the class CL_GUI_FRONTEND_SERVICES. Please note that you can use this in online mode only.

BR,

Suhas

Read only

Former Member
0 Likes
1,394

Hi trampo,

I can help you in getting the IP Address adn as far as the User or system name I am currently working on it .Once I get it i shall respond to your query.

You can even find out how to get the System name based on IP Address.

Function Module: ARFC_GET_TID will return the IP address of the terminal in hex.

Just try with the above function module

Revert if u get an additional info in this regard

Thanks and Regards

Srikanth.P

Read only

0 Likes
1,394

Check the Function Module TH_USER_LIST . It gives out the Terminal name.

Regards,

Trikanth Basetty

Read only

Former Member
0 Likes
1,394

Try to use the function module Terminal_ID_Get.

Give the input as your user name. It will give you the terminal ID.

Import parameters Value

USERNAME D021845

Export parameters Value

TERMINAL 0.0.0.0-APPC-TM

Regards

Ramesh Sundaram

Read only

Former Member
0 Likes
1,394

Hi,

You can use the FM "TERMINAL_ID_GET" which return the terminal id.

Regards,

Jayanth G

Read only

Former Member
0 Likes
1,394

Hi,

a function you can also use is TH_LONG_USR_INFO.

Input var = user name.

The function returns a table with all details (up to session-details & terminal) for this specific user-ID.

Hope this helps!

Martijn

Read only

Former Member
0 Likes
1,394

Hi,

You may use GUI_GET_DESKTOP_INFO with parameter TYPE = '1'.

Regards

Raju Chitale