2006 Jan 18 3:24 PM
Hi everyone.
Is there any function module witch can read workstation system enviroments.
regards Bartek.
2006 Jan 18 3:27 PM
Hi everyone.
Is there any function module witch can read workstation system enviroments.
regards Bartek.
2006 Jan 18 3:27 PM
2006 Jan 18 3:27 PM
2006 Jan 18 3:31 PM
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
2006 Jan 18 4:07 PM
2006 Jan 18 3:30 PM
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