Support Package Manager – Reset Queue
Occassionally, when loading Support Packages or SPAM/SAINT Updates, the Support Package Manager (transaction SPAM) can get a bit ‘confused’. A colleaugue had this problem recently, where she was attempting to update the SPAM tool on a 4.6C system. The result was that the Support Package Manager was reporting Queue_Not_Empty .
Some times the cause is simply forgetting to confirm / finish the last SPAM/SAINT update. Once you’ve eliminated this, you need to start checking what the TMS mechanism thinks has happened. To check what is in the TMS buffers, logon to the Operating System, change directories to /usr/sap/trans/bin and execute the following:
tp SHOWBUFFER
Basically you need to reset the SPAM Queue to match the TMS buffers. To remove entries from the internal SPAM Queue, uUse the function module (transaction SE37) OCS_RESET_QUEUE. Execute it with parameters IV_TOOL=SPAM, IV_FORCE=X. To remove entries from the TMS buffer, execute the following command (change directory to /usr/sap/trans/bin first), where SAPKXXXXX is the 'offending' Support package or SPAM/SAINT Update:
tp delfrombuffer SAPKXXXXX
Before restarting the Support Package import, ensure that you've removed all files from \usr\sap\trans\tmp and make sure there is no other TP process or R3trans process running in the system at Operating system level.
Usefull Links:
Errors During Support Package Manager Phases
SAP Patch Manager (SPAM) PDF

December 27th, 2008 at 3:27 pm
This is helpful. I wish I've known of your blog when I was still working on an SAP project. Look forward in getting more insight hereon and refer this to SAP user friends too. Cheers!
December 28th, 2008 at 7:44 pm
Thanks for the kind words, Gary
June 18th, 2009 at 10:22 pm
Was very information which is useful. Thanks~
November 12th, 2009 at 4:50 am
Excellent dudee thanks for your post which is really helped me to solve my issue
November 12th, 2009 at 12:50 pm
Excellent dudee thanks for your post which is really helped me to solve my issue