Hi to all..while reading some of the posted message, I have found the below code which is really working.
Now, my question is, how can I or can I redirect or change the source directory 'c:\mypic.gif'(which is my local dir) into sap server directory?
The sap server directory bitmap files, the one I uploaded from SE78 and I want to print it by the below code.
Pls help. Thanks.
DATA: lv_parameter TYPE string.
CONCATENATE '"' 'c:\mypic.gif' '"' INTO lv_parameter.
CONCATENATE '/p' lv_parameter INTO lv_parameter SEPARATED BY space.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'c:\windows\system32\mspaint.exe'
parameter = lv_parameter
synchronous = 'X'
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.