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

Frontend system info.

Former Member
0 Likes
836

Hi everyone.

Is there any function module witch can read workstation system enviroments.

regards Bartek.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
796

Please check out the methods of the class CL_GUI_FRONTEND_SERVICES

What exactly are you looking for?

Regards,

Rich Heilman

Hi everyone.

Is there any function module witch can read workstation system enviroments.

regards Bartek.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
797

Please check out the methods of the class CL_GUI_FRONTEND_SERVICES

What exactly are you looking for?

Regards,

Rich Heilman

Read only

suresh_datti
Active Contributor
0 Likes
796

try GUI_GET_DESKTOP_INFO

Suresh

Read only

0 Likes
796

Here is an example, say you want to find the OS of the workstation being used.




report zrich_0003 .

data: platform type i.

* OS_OTHERS  = 0;
* OS_MAC     = 1;
* OS_WINNT   = 2;
* OS_WIN95   = 3;
* OS_WIN98   = 4;
* OS_WIN2000 = 5;
* OS_OS2     = 6;
* OS_LINUX   = 7;
* OS_HPUX    = 8;
* OS_TRU64   = 9;
* OS_AIX     = 10;
* OS_SOLARIS = 11;

call method cl_gui_frontend_services=>get_platform
  receiving
    platform     = platform
  exceptions
    error_no_gui = 1
    cntl_error   = 2
    others       = 3.


write:/ platform.

Regards,

Rich Heilman

Read only

0 Likes
796

Thank you very much.

Read only

Former Member
0 Likes
796

hi,

<b>CL_GUI_FRONTEND_SERVICES</b> is the class, the below methodds will tell you various parameters of frontend.

GET_COMPUTER_NAME
GET_DESKTOP_DIRECTORY
GET_DRIVE_TYPE
GET_FILE_SEPARATOR
GET_FREE_SPACE_FOR_DRIVE
GET_GUI_PROPERTIES
GET_GUI_VERSION
GET_IP_ADDRESS
GET_PLATFORM
GET_SAPGUI_DIRECTORY
GET_SAPGUI_WORKDIR
GET_SAPLOGON_ENCODING
GET_SYSTEM_DIRECTORY
GET_TEMP_DIRECTORY
GET_UPLOAD_DOWNLOAD_PATH
GET_USER_NAME