Computer Name to be retrieved

Hi All,
How to retrieve the computer name of the user who is working on a SAP System.
Pointers would be helpful.
Thanks,
Best regards,
Prashant

hi prashant ,
just execute this code and see if it suffice ur need .
regards,
TVK.
DATA SI LIKE RFCSI.
CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION 'SAPGUI'
    IMPORTING
        RFCSI_EXPORT = SI.
WRITE:
/ 'RFC log version:', SI-RFCPROTO,
/ 'Character set (SAP name):', SI-RFCCHARTYP,
/ 'Integer format (1 / 2 = little / big endian):', SI-RFCINTTYP,
/ 'Floating point format (1=IEEE, 2=IBM/370 format):', SI-RFCFLOTYP,
/ 'Logical destination (specified when calling function):', SI-RFCDEST,
/ 'Host:', SI-RFCHOST,
/ 'System: SAP System ID:', SI-RFCSYSID,
/ 'System: SAP System ID:', SI-RFCDATABS,
/ 'Database host name:', SI-RFCDBHOST,
/ 'System: Database system:', SI-RFCDBSYS,
/ 'System: SAP Release:', SI-RFCSAPRL,
/ 'RFC: SAP machine ID:', SI-RFCMACH,
/ 'System: Operating system:', SI-RFCOPSYS,
/ 'Time zone (difference from UTC in seconds):', SI-RFCTZONE,
/ 'Summertime active ? (''daylight saving time''):', SI-RFCDAYST,
/ 'IP address:', SI-RFCIPADDR.
skip 3.
DATA: W_HOSTADDR LIKE  MSXXLIST-HOSTADR,
        W_TERMINAL(30) TYPE C,
        w_1 type i,
        w_2 like w_1,
        w_3 like w_1,
        w_4 like w_1.
  CALL FUNCTION 'TH_USER_INFO'
       IMPORTING
            HOSTADDR            = W_HOSTADDR
            TERMINAL            = W_TERMINAL
       EXCEPTIONS
            OTHERS              = 1.
  IF SY-SUBRC = 0.
    w_1 = W_HOSTADDR(1).
    w_2 = W_HOSTADDR+1(1).
    w_3 = W_HOSTADDR+2(1).
    w_4 = W_HOSTADDR+3(1).
    WRITE: / 'IP address:', w_1,'.',w_2,'.',w_3,'.',w_4,
           / 'Terminal  :', W_TERMINAL.
  ELSE.
    WRITE / 'Unknown Error.'.
  ENDIF.

Similar Messages

  • How can I retrieve a lost computer name, needed to log in. I know my Apple ID and password.

    Lost computer name, or ID, needed to log in to locked MacBook Pro

    If you are trying to log in using a password you can't remember, try booting off the installation DVD and under Utilities you should see an option to reset password.

  • Computer name in R3 when call function RFC from CRM to R3

    Hi all,
    i nead the computer name in R3 when I  come to R3 from  CRM .
    In R3  i call function 'TERMINAL_ID_GET'  in R3   but I don't retrieve the computer name.
    i tried also to  call function 'TERMINAL_ID_GET'  in destination 'CRM'   but I don't retrieve the computer name.
    The code in R3:
    CALL FUNCTION 'TERMINAL_ID_GET' DESTINATION 'R3GETCRM'
          EXPORTING
            username             = sy-uname
          IMPORTING
            terminal             = l_terminal_usr41
          EXCEPTIONS
            multiple_terminal_id = 1
            no_terminal_found    = 2
            OTHERS               = 3.
    This function works ok when i call her direct from R3 or direct from CRM,
    but not give me in R3 the computer name when i came to R3 From CRM. 
    Thanks for your cooperation.
    dany

    thats because 'TERMINAL_ID_GET'  is not a RFC (check the attributes tab of the FM from SE37)
    if you dont find a RFC to do t his you can wrap this FM with a custom RFC and use it.
    if you want all the logged on users info (computer name and other info) then you can use THUSRINFO FM which a RFC
    Raja

  • Difficulty changing computer name and domain name

    I have a working Xserve with the latest Snow Leopard Server and am having difficulty reconfiguring it from its keyboard.
    I would like to edit the computer name and domain name and maintain all other server settings. I would prefer to do this off-line. However Server Admin appears not to work off-line and any attempt to change computer name or domain name removes all server settings from view including the serial number. I can recover everything by reinstating computer name etc and restarting on-line.
    Is the serial number tied to the computer name and/or domain name?
    Is there any way to retain my existing server settings for a different domain?
    Is there any way to progress any of this off-line?

    This has now been resolved. This note is to assist others who have the same problem.
    1 - I had been changing the computer name in the place I had always done it - System Preferences/Sharing. This confused Server Admin. Reverting to the original name and changing computer name and location within Server Admin resolved the issue. That is System Preferences/Sharing is updated by Server Admin but not vice versa.
    2 - Playing with these things can corrupt Server Admin plist resulting in a restarted Server Admin not seeing the edited server even with the server otherwise fully functioning. Trashing Server Admin plist resolved this for me without loss of server settings.
    3 - Having set it up off-line I experienced difficulty as soon as I went on-line. This was resolved by changing the server from 'local' to its full domain name. I have no explanation for this as the same settings had previously worked with 'local'.
    4 - Server Admin can take a long time to find settings and occasionally failed to do so until after a restart.
    The result can be seen here: http://links.open.ac.uk/ - Since Apache refuse to provide hit counter support (there are several public posts of mine on the subject) I use JavaScript to retrieve the count from an old QPQ server running on a G3 with OS 9.

  • NetBIOS name/IP address retrieval

    Could I programmatically retrieve the NetBIOS name and IPaddress of the local
    machine in LabVIEW 6 under Windows NT?

    I've found that that simplest way to get the local IP address is wire the
    output of the String to IP function to the input of the IP to String. Both
    of these can be found in the Communications/TCP pallette. Leaving the input
    of String to IP blank will retreive the local machine. On my computer and
    with my company's network, the registry doesn't store the IP address since
    it is assigned dynamically. You can also use these functions to return the
    computer name but it can be slow while it does the name resolution. The G
    Toolbox from George Zou (http://george-zou.sinacity.com/) has a function
    that returns the computer name.
    "Craig Graham" wrote:
    >>Peter Vijn wrote in message>news:39f6b583@newsg
    roups.ni.com...>>>>
    Could I programmatically retrieve the NetBIOS name and IPaddress of the>local>>
    machine in LabVIEW 6 under Windows NT?>>In the registry, look at the keys
    under the following;>>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveCompu>terName>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerNam>e>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters>>

  • Set NetBios name to Computer Name

    Hello.
    Is it possible, via Terminal, to set the Netbios name of a system to the computer's current name as set in the Sharing panel? I have a ton of computers to configure, and this would make my job much faster.
    Regards, Andrew.

    Hi,
    the actual computer name is stored in a system variable named HOSTNAME. Just type echo $HOSTNAME to retrieve that value:
    ---------------snip-------------
    $ echo $HOSTNAME
    pronto-macpro
    ---------------snap-------------
    If there is a NetBIOSName already configured, the value is stored in /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist:
    ---------------snip-------------
    $ defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName
    Pronto-MacPro1
    ---------------snap-------------
    With this informations you should be able to set the NetBIOSName equal to the hostname by using the command (type the following in one line!):
    ---------------snip-------------
    $ sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName $HOSTNAME
    ---------------snap-------------
    To verify if it works just type the defaults read command again:
    ---------------snip-------------
    $ defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName
    pronto-macpro
    ---------------snap-------------
    Hope that helps
    Bye Tom
    Message was edited by: prontosystems

  • File sharing afp:// address not computer name

    Just setting up my new iMac and the file sharing afp:// address does not match the computer's name (Brute Squad), it's pulled in my old PowerBook's name (Alumen). I'm assuming it came from my Apple/iCloud account since that was the only computer I had registered when I set the iMac up. Restarting didn't help. Any ideas?

    You can change the computer name in the System Preferences > Sharing pane, change the name at the top.
    Best of luck.

  • How to change the computer name

    I need to change the computer name but after this I cannot access to the historical data (printing alarms).
    I have already changed the settings in Options->System and restarted the system.
    With MAX 3.0 I can see that all the alarm records are stored with the old computer name \\computer name\process\....
    How can I do to read the old alarms with the new computer name?
    Thank you
    Michael

    Hi,
    When you change the computer name in Options>>System, you are not changing the name of the computer. Rather, you are telling Lookout to log to either a remote or local system. Here are the specifics:
    1. Computer Name: Name you want the traces to appear with (\\computer_name\process\...)
    2. Default Computer: Computer you want to log to. If the name listed here is different than your computer's name (as seen by Windows), then it will attempt to log directly to that remote machine.
    3. Default Path: Directory on either your local or remote machine that you want to log to.
    To change the name of your local computer, you will need to do that in Windows. If you have WinXP, you can do this by right-clicking on My Computer and selecting Computer Name.
    Go
    od Luck
    Mike

  • System Informatio​n - Can Labview tell me the Computer Name/Hardw​are/System Performanc​e

    Hi there,
    Can labview look at the Computer that the program is running on and tell me the system infomation??
    Like, computer name, System performance etc.
    I have it looking at the hard drives and sending me an e-mail to say when they get full.
    But it would be nice to include some system information so i can try to keep track of its health as well.#
    Any ideas??
    Pete

    Do a google search for environment variables inside windows.
    Here is one website.
    http://vlaurie.com/computers2/Articles/environment​.htm
    I also downloaded this file recently from the NI site.
    Attachments:
    windows info.zip ‏829 KB

  • How to get a computer name in teststand step ?

    how to get a computer name in teststand step ?

    Hi,
    Use an ActiveX Automation Adapter with the following settings,
    ActiveX Reference : RunState.Engine
    Automation Server: TestStand API (depends on your version)
    Object Class: Engine (IEngine)
    Action: Get Property
    Property: ComputerName
    Then set your Parameters: to pickup the String ComputerName.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can I see which computers (computer name) Creative Cloud is installed on?

    How can I see which computers (computer name) Creative Cloud is installed on?

    Hi Arno ten Hagen,
    To check for activation you need to go to all the machines in which you have installed CC apps, launch any of the CC software, go to help and you will see the email address mentioned by which you are logged in to that machine.
    Kb: http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html .
    Regards,
    Romit Sinha

  • I bought a new laptop with Windows 7. My computer name in Windows has changed, and now, my Ipad can't find Itunes

    I bought a new laptop with Windows 7. My computer name in Windows has changed, and now, my Ipad can't find Itunes, and Itunes can't find my Ipad. [email protected]

    Ok, if reinstalling iTunes as suggested above does not resolve the issue of iTunes recognising the iPad then try this -
    Firstly, make sure that your device is not hidden (left hand pane). If it just reads device then toggle between SHOW and HIDE.
    Secondly, try all the other ports on your computer, even a number of times.
    Thirdly, make sure your lead /connections are no faulty.
    Fourthly, if you have another computer try plugging your device into it without taking any action, give it a moment, remove it and try it back in your other computer again.
    Failing all that, see here - http://support.apple.com/kb/TS1538
    And failing all that put the device into Recovery mode. See here and note the paragraph 'If you restore from a different computer.... ' down near the bottom of the page -
    http://www.apple.com/support/ipad/assistant/itunes/
    As for making your new laptop your 'home computer' follow these instructions -
    1. Without connecting your iPad to your computer -
    A) Install iTunes / make sure the latest version of iTunes is installed.
    B) Go to the Store tab and click on "Authorise This Computer".
    C) Go to Edit, click on Preferences [iTunes and Preferences on Macs] and click on Devices. Put a check mark in the box next to "Prevent  iPods/iPhones/iPads from syncing automatically". Click OK and close iTunes.
    2.  Connect your iPad to your computer -
    A) Start iTunes (it will not start automatically because of the action at 1(C) above).
    B) Right click on your iPad under Devices in the left column. Select "Transfer purchases".
    C) When the transfer has completed, right click on your iPad again and select "Backup".
    D) When the backup has completed, left click on your iPad, click on the Apps tab, and put a check mark in the box next to "Sync Apps", and then click on "Apply" (bottom right).
    E) Unless you want to always do a manual sync (as I do), go back to Edit, Preferences [iTunes and Preferences on Macs] and uncheck the box next to "Prevent your iPod.....".
    F) Finally, on your iPad, check that everything is syncing properly. If not, go back to iTunes and check all settings.
    NB You should not lose any apps. However, any 'purchased' missing apps can be downloaded again FOC. As with updates, this must be done with the Apple ID under which they were originally 'purchased'.
    Also see here as to moving your music to your new computer -
    http://support.apple.com/kb/HT4527

  • WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network

    The Exchange Management Shell fails to connect in Exchange 2013 environment, this is a DAG environment and previously it indicates another error message, which is in my another thread. We fixed that error by delete the retired proxy entry in the server registry,
    after that the error is gone but changed to below one, anyway the EMS still fails to connect to all servers:
    VERBOSE: Connecting to NSWVIP999WTMBX.air.abc.au.
    New-PSSession : [NSWVIP999WTMBX.air.abc.au] Connecting to remote server NSWVIP999WTMBX.air.abc.au failed with the
    following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that
    the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows
    access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote
    computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed
    Failed to connect to an Exchange server in the current site.
    Enter the server FQDN where you want to connect.:
    Then it just show can't connect to all the exchange servers, from the wording it seems pointing to the Windows firewall settings for winRM, but when I look at the windows firewall found it's turned off. We use Sophos enterprise for the security, but all
    other 3 exchange servers didn't have the same issue.

    Hi Lynn,
    Thanks for your analyst and reply, I run the command as you suggested and checked accordingly to Task Manager, but seems none of them indicates a firewall or anti-virus.
      TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       4
     TCP    0.0.0.0:808            0.0.0.0:0              LISTENING       2260
     TCP    172.17.2.123:444       172.16.2.127:8050      ESTABLISHED     4
     TCP    172.17.2.123:444       172.16.2.127:8069      ESTABLISHED     4
     TCP    172.17.2.123:444       172.17.2.127:8053      ESTABLISHED     4
     TCP    172.17.2.123:10952     172.16.2.68:80         ESTABLISHED     3296
     TCP    172.17.2.123:11185     172.16.2.90:8080       SYN_SENT        468
     TCP    172.17.2.123:11190     172.16.2.90:8080       SYN_SENT        15268
     TCP    172.17.2.123:11330     172.16.2.90:8080       SYN_SENT        1296
     TCP    [::]:80                [::]:0                 LISTENING      
    4
     TCP    [::]:808               [::]:0                 LISTENING      
    2260
     TCP    [::1]:6001             [::1]:8028             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8029             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8030             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8031             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8032             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8033             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8034             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8035             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8036             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8037             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8040             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8041             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8048             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8049             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8059             ESTABLISHED     4764
     TCP    [::1]:6001             [::1]:8060             ESTABLISHED     4764
     TCP    [::1]:8028             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8029             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8030             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8031             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8032             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8033             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8034             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8035             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8036             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8037             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8040             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8041             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8048             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8049             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8059             [::1]:6001             ESTABLISHED     9980
     TCP    [::1]:8060             [::1]:6001             ESTABLISHED     9980
     TCP    [fe80::9054:e8f5:f885:8105%20]:808  [fe80::9054:e8f5:f885:8105%20]:9901
     ESTABLISHED     2260
     TCP    [fe80::9054:e8f5:f885:8105%20]:9901  [fe80::9054:e8f5:f885:8105%20]:808
     ESTABLISHED     4868
    This is the full result, among them
    4 -- System -- NT Kernel & System
    468 -- There is no process associated with PID 468
    1296 -- svchost.exe -- Host Process for Windows Service
    2260 -- SMSvcHost.exe -- SMSvcHost.exe
    3296 -- CcmExec.exe -- CCM Executive
    4764 -- Microsoft.Exchange.RpcClientAccess.Service.exe -- Microsoft.Exchange.RpcClientAccess.Service.exe
    4868 -- Microsoft.Exchange.ServiceHost.exe -- Microsoft.Exchange.ServiceHost.exe
    9980 -- w3wp.exe -- IIS Worker Process
    15268 -- ServerManager.exe -- Server Manager

  • I can't connect to other computers on my network with computer names. Any suggestions?

    i can't connect to other computers on my network with computer names. Any suggestions?

    In what way are you trying to connect? File sharing? Printer sharing? Screen sharing? Something else?
    How are your computers connected to this network? What happens when you try to connect to them?
    Best of luck.

  • Can you make Sysprep on Windows 8.1 and Server 2012 R2 Prompt for a Computer Name

    Hi guys,
    Our Windows 7 Unattend.xml has always made Sysprep prompt for Computer Name. I'm struggling to achieve that with Windows 8.1 and Svr 2012 R2.
    Firstly: Is it still possible?
    Secondly: If so, How?
    Thanks

    OOBE will only hide pages that contain the answers in the XML. So if you want OOBE to prompt for a computer name, make sure your XML does not contain the ComputerName object.

Maybe you are looking for

  • FTP on Safari?

    i am trying to bookmark an ftp download site for my website that is of the form: ftp://[email protected]//[email protected] i know this is a mouthful but it is the correct url and when i enter it into Safari it kicks it out into Firefox which I also

  • Keynote audio yes, video no

    I was digging up a keynote file I made a while back which contains many video clips dragged into it. However when I play the videos, some of them have sound, but no video. This is very frustrating and doesn't make any sense. Has this happened to anyo

  • ERROR = C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]

    Dear experts, can anybody give me a hint about the error mentioned above? I found the SAP Note 1049778 but this is not applicable. Yes, we do have this error in some workprocess trace-files and it seems to be produced during printing SAPScript. But i

  • Fb60 issue

    Respected gurus, while i am making payment to vendor in fb60 it gives the following error,i.e, "posting is possible only with zero balance" regards jana

  • ORA-00471: DBWR process terminated with error when running mrua.pl

    we are upgrading to Portal 10.1.4 from 10.2.0.2. Right in the middle of the upgrade scripts running get ORA-00471: DBWR process terminated with error... Any suggestion? TIA