Saturday, October 4, 2014

How to Kill a work process in SAP




Description

You may see a work process in SAP in hung state thru SM50 transaction code. The following steps will explain you the detailed process on dealing with the killing it.

Procedure:

1. Try to kill it in SM50. Select the work process, and in the Process menu, select either Kill with core, or without core option.


2. Use transaction SM04 using the Sessions button. Try to end all the sessions of the user.

Flowchart: Sequential Access Storage: SM04Flowchart: Sequential Access Storage: Click on Session Flowchart: Sequential Access Storage: Click on End SessionFlowchart: Sequential Access Storage: Select USER ID16-Point Star: 416-Point Star: 3
1
16-Point Star: 216-Point Star: 1

3. If killing the process via the SAP instance fails, you will need to kill it from the Operating system level. Identify the PID of the work processes enter a kill -9 from a Unix command prompt.
Incase of Windows, you can do it from Windows Task manager.

4. On NT, if everything else has failed, there should be an executable called sapntkill in your \usr\sap\\SYS\exe\run directory. Use the PID with it.


You can also use the RSBDCOS0 program, incase if the issue is not resolved.
However, the most important thing to remember when killing a WP in SM50 is Change to restart option to No as otherwise the session can jump back in sometimes as most of its memory is not actually living in the WP.

Allow 5-10 minutes of time to stop, there is no need to do it many times. 

http://www.saptechies.com/how-to-kill-a-work-process-in-sap/

No comments:

Post a Comment