Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Kill viewer-application

Former Member
0 Likes
619

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

2 REPLIES 2
Read only

Former Member
0 Likes
472

Hi dominik,

1. In windows, there is no direct

dos command

to kill a process.

regards,

amit m.

Read only

0 Likes
472

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