Skip to Content
Author's profile photo Former Member

Transfer Order stuck with Zero Quantity – Not able to Delete / confirm -Stuck in RFC Gun

The error happens sometimes when the Transfer Order is created through a RFC gun . The TO is created but the line item has zero quantity ( Red Dot ). This is a tricky situation as the TO cannot be cancelled or confirmed and the TO is stuck in the RFC gun .


The line item has to be cancelled for the TO to be processed with .

Steps .

1.Go to SE11 enter LTAP and enter the TO number along with the Warehouse Info .

2.Change to layout to Standard List and double click on the TO to display the details

3.Trigger the debugger using /H press enter . Then press enter again to open the debugger .

4. The variable CODE would have value SHOW  change it to EDIT and press enter .Then Press F8

5. The values in the list would now be open for  editing

Note : Please make sure that you take a snap shot of all the values in the DB before you make any changes as these steps should be taken as the last

          resort .

6. Change the values for the below fields .

7.      pquit =

8.      qdatu = sy-datum
9.      vorga = ‘ST’

10.    vsolm = 1
11.    vdifm = -1
12.    nsola = 1

13.    passd = ‘X’

Save the changes .

After this if you go into the Transfer Order you will see that the line items has been deleted and you can proceed.

If all lines items are zero quantity and appear with a red dot then repeat the steps above for all the line items and also do the steps below.

14. Go to SE11  enter LTAK and enter the TO number with the Warehouse Info .

15. Repeat the steps from 3 to 5 .

Note : Please make sure that you take a snap shot of all the values in the DB before you make any changes as these steps should be taken as the last

          resort .

16.     kquit = ‘X’
17.     qdatu = sy-datum
18.     passd = ‘X’  .

Save the changes . The TO is now deleted as all the lines items will have the bin symbol next to it . If a  delivery exits the WH status would be set to C .

If the TO is stuck in the Gun then do the next steps in the LTAK table .

19 . queue = ‘ ‘

Save the changes .

This completes the exercise and please email me if you have any doubts .

Thank you

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Mauricio Tello Gelpud
      Mauricio Tello Gelpud


      We have an ABAP program which creates TR and then it creates the corresponding TO in background. I'm having the same situation as you presented in this post. I have applied the solution you suggested and it worked just fine. However, the situation is still happening once per week so I have to apply those steps again and again.

      Do you know if there is a definitively solution? Maybe a SAP Note?

      Should I add a sentence in the program in order to apply the steps you gave?

      Thanks for your answer.

      Author's profile photo Former Member
      Former Member
      Blog Post Author


      Yes i have applied this steps manually but i am not sure whether a SAP note exists as this issue has not come up . But i have written an abap program that does this for me that the warehouse people run in case they come across this issue.

      So all i am trying to say is what i tried to is develop a program that the warehouse guys will put the TO number in and it will change the values in the db.

      I am not suggesting this to be a good solution as we are making direct changes to the db but this was a short fix . if you come across a better solutions please let me know