Code: Alles auswählen.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
* document = document
application = lc_application " \\IP-Adresse\Ordner\Applikation
parameter = lc_parameter " Zusatzparameter z.B. Dateipfad für Druck
* default_directory = default_directory
* maximized = maximized
minimized = 'X'
* synchronous = 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.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
Code: Alles auswählen.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
* document = document
application = lc_application " \\xxx.xxx.xxx.xxx\ftp_data\print.bat
parameter = lc_parameter "\\xxx.xxx.xxx.xxx\ftp_data\Warenbegleitschein.pdf" "PDFCreator" "PDFCreator" "pdfcmon"
* default_directory = default_directory
* maximized = maximized
minimized = 'X'
synchronous = 'X'
* 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.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
Code: Alles auswählen.
REPORT .
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'CMD'
parameter = '/C ""C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe"" /h /p c:\temp\Doku.pdf'
minimized = 'X'
synchronous = 'X'
EXCEPTIONS
OTHERS = 10.