SAP Function WS_EXECUTE - OBSOLETE: Execute External Programs on Presentation Server

Parameter Reference Type Length Default Optional Text
CD 0 SPACE X Working directory
COMMANDLINE 0 SPACE X Parameters (command line) for the external program
DOCUMENT 0 SPACE X Indicator as document
EXEC_RC 0 SPACE X Dialog parameters
INFORM 0 SPACE X Activate the feedback from external program
OSMAC_CREATOR 0 SPACE X Interpret PROGRAM as Apple creator
OSMAC_SCRIPT 0 SPACE X Interpret COMMANDLINE as Apple script
PROGRAM 0 SPACE X Path + name of the program to be started
STAT 0 SPACE X Dialog parameters
WIN16_EXT 0 SPACE X
WINID 0 SPACE X Dialog parameters

Parameter Reference Type Length Text
RBUFF 0 Dialog parameters

Exception Text
FRONTEND_ERROR Error occurred in SAPGUI
GUI_REFUSE_EXECUTE
ILLEGAL_OPTION OSMAC* or WIN16_EXT at incorrect frontend
NO_BATCH Front-End Function Cannot Be Executed in Backgrnd
PROG_NOT_FOUND Program not found or not in executable form


This module is obsolete. Use the appropriate module from the functiongroup SFES.
Any (non-SAP) program (for example, editor, table calculation, etc.)can be started on the presentation server.
NOT USED ANYMORE
Working directory for the program that has been started.
Example:
You want to start the program Excel with the file 'DEMO.XLS', which isin the directory 'C:/PRIV/XLS'. Excel itself is installed in the path.
PROGRAM = 'EXCEL' COMMANDLINE = 'C:/PRIV/XLS/DEMO.XLS'
As with all other SAP graphics modules, however it is notdifferentiated whether data should be sent. No data can be sent to anexternal program. The data must first be transported out of the SAPSystem by calling the function module 'WS_DOWNLOAD'.
If INFORM <> SPACE, the ABAP program waits until the external programhas finished.
Example 1: The program Excel is to be started. Excel is installed inthe path on the presentation server.
Required parameter provision: PROGRAM = 'EXCEL'
Example 2: The program XY is to be started, however it is not in thepath. XY is installed under '/usr/priv'.
Required parameter provision: PRGRAMM = '/usr/priv/XY'
The use of upper/lower case letters is relevant for the program namesand the path.
As with all other SAP Graphics modules, however it is notdifferentiated whether the data should be sent. No data can be sent toan external program. It must first be transported out of the SAP Systemby calling the function module 'WS_DOWNLOAD'.
An external program, which is to send a message to the ABAP whenfinished, must give an ID in order to recognize the program that hasbeen ended upon completion. (Important when several programs have beenstarted, or when an external program is started when mixed with'normal' graphics programs). If no WINID is specified then the programname is used.

1444941Mapping of GMUX CALLS to CL_GUI_FRONTEND_SERVICES
554492Procedure for using the ITS to execute programs
780995ITS up/down: Blank characters in file path with ITS_Execute
186315MF50/MC94: Excel --> changing the default file path
81763MS Word & Excel in transactions
77075Example: Executing functions on the frontend
3467Run-time error SET_PARAMETER_MEMORY_OVERFLOW