SAP Function WS_QUERY - OBSOLETE: Execute Query Functions on Presentation Server

Parameter Reference Type Length Default Optional Text
ENVIRONMENT C C 0 X Variable name for environment query ('EN')
FILENAME C C 0 X File name for existence ('FE') and length ('FL')
QUERY C C 0 Query command : 'CD' 'FE' 'FL' 'EN' 'WI' 'WS' ...
WINID C C 0 X Window ID for window query ('WI')

Parameter Reference Type Length Text
RETURN 0 Result of the query

Exception Text
FRONTEND_ERROR
INV_QUERY Incorrect value for parameter QUERY or FILENAME
NO_BATCH Front-End Function Cannot Be Executed in Backgrnd


This module is obsolete. Use the appropriate module from the functiongroup SFES.
Queries the file parameters and environment variables on thepresentation server. The length or the existence of files can bedetermined.
Description varies according to the query command. For thedocumentation, see under QUERY
'CD' : Determine current directory
: RETURN = ''
'EN' : Prompt environment variable ENVIRONMENT
: RETURN = ''
'FL' : Determine length of file FILENAME
: RETURN = ''
'FE' : Check if file FILENAME exists
: RETURN = '0' no '1' yes
'FC' : Check if Ceator(program) FILENAME is installed (Apple only)
: RETURN = '0' no '1' yes
'DE' : Check if directory FILENAME exists
: RETURN = '0' no '1' yes
'WI' : Check if a graphic program is running with ID WINID
: RETURN : '0' no '1' yes
'WS' : Prompt Windows system of presentation server
: 'PM' = OS/2-Presentation-Manager
: 'WN' = DOS-Windows
: 'WN32' = 32-bit front end under Windows NT
: 'WN32_95'= 32-bit front end under Windows 95
: 'WN32_98'= 32-bit front end under Windows 98
: 'WN32_S' = 32-bit front end under Win32S
: 'MF' = Unix-Motif
: 'MC' = Apple Macintosh
'OS' : Prompt operating system of presentation server
: 'OS2' = OS/2
: 'DOS' = DOS / Windows
: 'NT' = Windows NT
: 'MAC' = Apple Macintosh
: 'VMS' = DeC VMS
: = UNIX, result of command 'uname'
: e.g. 'HP-UX', 'OSF1', 'ULTRIX', 'SunOS', ...
'XP' : Determine Execute-Path (Unix only)
: RETURN : Path name
'GM' : GMUX-Version: Internal Use Only
: RETURN : Version