SAP Function TB_LIMIT_WS_EXECUTE - Execute External Programs on Presentation Server

Parameter Reference Type Length Default Optional Text
CD ANY A 0 SPACE X Working Directory
COMMANDLINE ANY A 0 SPACE X Parameters (Command Line) for the External Program
DOCUMENT ANY A 0 SPACE X Indicator as Document
PROGRAM ANY A 0 SPACE X Path + name of the program to be started

Exception Text
FRONTEND_ERROR Error occurred in SAPGUI
GUI_REFUSE_EXECUTE
ILLEGAL_OPTION OSMAC* or WIN16_EXT at incorrect frontend
PROG_NOT_FOUND Program not found or not in executable form


Any (non-SAP) program can be started on the presentation server (such aseditor, table calculation, and so on).
Working directory for the program started.
Example:
You want to start the Excel program with the file 'DEMO.XLS', which isin the directory 'C:/PRIV/XLS'. Excel itself is in installed in thepath:
PROGRAM = 'EXCEL' COMMANDLINE = 'C:/PRIV/XLS/DEMO.XLS'
Example 1: The Excel program is to be started. Excel is installed in thepath on the presentation server.
Necessary parameter entry: PROGRAM = 'EXCEL'
Example 2: The program XY is to be started, which is not in the path. XYis installed under '/usr/priv'.
Necessary parameter entry: PRGRAMM = '/usr/priv/XY'
The program names and the path are case-sensitive.