Skip to end of metadata
Go to start of metadata

EXECUTE

Any (non-SAP) program (for example, editor, table calculation, etc.) can be started on the presentation server.

WS_EXECUTE is now obsolete and it is suggested to do not use it anymore.

CALL FUNCTION 'WS_EXECUTE'
* EXPORTING
* DOCUMENT = ' '
* CD = ' '
* COMMANDLINE = ' '
* INFORM = ' '
* PROGRAM = ' '
* STAT = ' '
* WINID = ' '
* OSMAC_SCRIPT = ' '
* OSMAC_CREATOR = ' '
* WIN16_EXT = ' '
* EXEC_RC = ' '
* IMPORTING
* RBUFF =
* EXCEPTIONS
* FRONTEND_ERROR = 1
* NO_BATCH = 2
* PROG_NOT_FOUND = 3
* ILLEGAL_OPTION = 4
* GUI_REFUSE_EXECUTE = 5
* OTHERS = 6
.

Now you have to use method EXECUTE that it is really simple to use.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
* EXPORTING
* DOCUMENT =
* APPLICATION =
* PARAMETER =
* DEFAULT_DIRECTORY =
* MAXIMIZED =
* MINIMIZED =
* SYNCHRONOUS =
* OPERATION = 'OPEN'
* EXCEPTIONS
* CNTL_ERROR = 1
* ERROR_NO_GUI = 2
* BAD_PARAMETER = 3
* FILE_NOT_FOUND = 4
* PATH_NOT_FOUND = 5
* FILE_EXTENSION_UNKNOWN = 6
* ERROR_EXECUTE_FAILED = 7
* SYNCHRONOUS_FAILED = 8
* NOT_SUPPORTED_BY_GUI = 9
* OTHERS = 10
.

  • No labels