03-27-2009 12:43 AM
Dear All,
I have a external EXE file ,I need use ABAP to run this EXE file.
I know used below code can run external on current user computer,But I want to run the FILE in SAP server ,not user computer client.How to Upload this file to SAP Server? Is it T-CODE:FILE?
CALL FUNCTION 'GUI_EXEC'
EXPORTING
command = 'C:\TEST.EXE'
PARAMETER = P_DATA
IMPORTING
RETURNCODE = RETURNCODE .
Thanks
Sun
03-27-2009 1:08 AM
03-27-2009 1:08 AM
03-27-2009 1:20 AM
hi,J@Y
thanks ,
but how can i upload the EXE file to SAP SERVER?
GUI_UPLOAD ?
03-27-2009 1:25 AM
03-27-2009 1:27 AM
it is very easy :
- 1. copy the program into your server .
- 2. goto sm69 and define the command
- 3. try below abap program
<< Cut and paste without attribution from http://www.sap-basis-abap.com/sapbs029.htm removed; points unassigned >>
carlos
Edited by: Rob Burbank on Mar 27, 2009 6:08 PM
03-27-2009 6:10 AM
thanks very much.
close this issue and assigned point to every one.
03-27-2009 1:58 AM
03-27-2009 2:18 AM
hi,zhan zhaoxin
Thanks a lot.
the CG3z is upload
CG3y is download.
Sun
03-27-2009 2:55 AM
Dear all,
our company have no basis to help upload this file.
so i used CG3z upload the TEST.EXE to G:\usr\sap\MND\SYS\global\test,when i use
CL_GUI_FRONTEND_SERVICES->EXECUTE
CALL METHOD Z_CL_GUI_FRONTEND_SERVICES->EXECUTE
EXPORTING
DOCUMENT = 'test.exe'
APPLICATION = 'G:\usr\sap\MCD\SYS\global\test.exe'
PARAMETER = PARA
MAXIMIZED = ''
MINIMIZED = ''
SYNCHRONOUS = 'X'
OPERATION = 'OPEN'.
it said no file in 'G:\usr\sap\MCD\SYS\global\test.exe',i don't konw how to call the EXE file on sap server?
Could you give me some help ?
Thanks
Sun
03-27-2009 4:36 AM
CL_GUI_FRONTEND_SERVICES->EXECUTE will only run applications on the presentation server
Use the method provided by Carlos few posts ago