‎2006 Aug 03 3:35 PM
Hello,
Can anybody tell me the syntax to kill a windows application (an application to view archived documents) in an ABAP program. The class CL_GUI_FRONTEND_SERVICES has only a method to execute an application, but not to stop it.
Probably it will run with function module SXPG_COMMAND_EXECUTE, but I don't know the command to kill the application with DOS. The command NET STOP <servicename> wasn't successful yet.
How it can be done, and where can I get some information on it?
Best Regards,
Dominik
‎2006 Aug 03 3:43 PM
Hi dominik,
1. In windows, there is no direct
dos command
to kill a process.
regards,
amit m.
‎2007 Feb 05 1:52 PM
Hi Amit,
for project reasons I continued to work on the problem no more than a day ago. The solution is below-mentioned .
MOVE 'TASKKILL /IM ALVIEWER.EXE' TO ld_command.
CALL FUNCTION 'GUI_EXEC'
EXPORTING
COMMAND = ld_command
PARAMETER =
IMPORTING
RETURNCODE = ld_return .
Best regards,
Dominik