We see lots of hanging queues from EWM to ERP system due to the various reasons. Some of these may be resolved with the master data corrections or number ranges just to name a few. There are few related to the transactional data such as posting period closure or duplicate HUs etc.
It is a very tedious activity for the technical/functional team member to clear these failed queues to keep both the systems in sync..
If these failed queues can't be resolved using the standard procedures, then last option is debug the code in the production environment and change the value during the runtime. This is not a good practice but no other options.
To overcome this issue, SAP has provided a simple solution to edit the failed queues. The queue contents can be edited or deleted based on the settings provided. The changes can be done at the field level where in the deletion happens at the table level.
The user with having the relevant roles can edit the queues and make the changes. Once the changes are saved, the system processes the same again.
This blog post explains in brief related to hanging queues editing in SAP ERP from SAP EWM which are failing in ERP system.
Note: Important tables to get the fields which can be edited.
Whitelist for Editing of Queues from EWM: System- /SPE/TMQWLCMP_S
Whitelist for Editing of Queues from EWM: Components - /SPE/TMQWLCMP_C
Whitelist for Editing of Queues from EWM: System Settings - /SPE/TMQWLPAR_S
- Editing the field Settings
Note : The field name list is predefined and can't be changed.
- Deleting the Table/Structure Settings from the queue contents.
Note : Delete option will not have field level selections.
Note: The above steps can be skipped in Emergency Mode in Production system by using the transaction code '/SPE/MQWL_APPL'.
Note: Only the relevant steps are shown here. The errored
- Editing the fields in the hanging/failed queue.
Note: 'Replace' button saves the changes and the 'Replace and Execute' will perform the saves and executes the queue in a single step.
The system replace the original TID with a new one
- Deleting the tables/structure in the hanging/failed queue. Deletion of HU details
After deletion:
Note: The above steps can be performed using the warehouse monitor.
Note: All the scenarios were tested in SAP S/4 2021 system.
Thanks to Author Shivakumar Hosaganiger