Skip to Content
author's profile photo Former Member
Former Member

Machine/Host information available to ABAP

Would anyone know how could I find out the specs of the host where an (the current) ABAP program is running?

I know there is the SY-HOST field available to identify the host name, but I couldnÂ’t find any other system fields.

I am interested in the following:

1) OS on machine

2) OS version

3) Memory on machine

But most importantly ...

4) The types of CPU (Brand, Model & speed)

Any help would be great! Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Feb 20, 2005 at 06:38 AM

    Hi,

    check out the class CL_GUI_FRONTEND_SERVICES and the following methods in that class.

    GET_COMPUTER_NAME

    GET_DESKTOP_DIRECTORY

    GET_DRIVE_TYPE

    GET_FREE_SPACE_FOR_DRIVE

    GET_DRIVE_FREE_SPACE_MEGABYTE

    GET_IP_ADDRESS

    GET_PLATFORM

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 04:18 AM

    Hello Sumit,

    If you look at it one way, the solution to your query is quite simple. All the details that you are asking can be found via the menu path System-->Status. Now this menu is there virtually on every screen in SAP. So one would like to think that there ought to be a Function Module for that!! Now if you debug for a few seconds, you will find that the FM is <b>STATUS_ANZEIGEN</b>.

    Of course this FM will have a screen which would be used to display the information. What you need to look at is the code of the FM other than the call to the screen. Just try this piece out.

    DATA: BEGIN OF VERSION_INFO OCCURS 0,
            LINE(80),
          END OF VERSION_INFO.
    
    CALL 'SAPCORE' ID 'ID' FIELD 'VERSION'
                   ID 'TABLE' FIELD VERSION_INFO-*SYS*.
    
    loop at version_info.
      write : / version_info.
    endloop.

    Now just don't ask me to explain you the call to the C-Function. It's a secret !!:-)

    Have fun. And get back if you have trouble.

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 20, 2005 at 06:30 PM

    Mabye there are some function modules starting with TH* which could help you.

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.